{"id":28433992,"url":"https://github.com/byteface/forku","last_synced_at":"2025-06-30T07:31:56.855Z","repository":{"id":57431914,"uuid":"405748585","full_name":"byteface/forku","owner":"byteface","description":"push patches when working from another project","archived":false,"fork":false,"pushed_at":"2021-09-13T13:44:36.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T01:52:02.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byteface.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-12T20:40:09.000Z","updated_at":"2025-01-01T06:09:19.000Z","dependencies_parsed_at":"2022-08-30T11:52:04.182Z","dependency_job_id":null,"html_url":"https://github.com/byteface/forku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byteface/forku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fforku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fforku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fforku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fforku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteface","download_url":"https://codeload.github.com/byteface/forku/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fforku/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262731404,"owners_count":23355347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-05T18:32:51.818Z","updated_at":"2025-06-30T07:31:56.841Z","avatar_url":"https://github.com/byteface.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    forku\n    \u003cbr\u003e\n    \u003csup\u003e\u003csub\u003e\u003csup\u003equickly push a patch\u003c/sup\u003e\u003c/sub\u003e\u003c/sup\u003e\n    \u003cbr\u003e\n\u003c/h1\u003e\n\n\n## forku\n\nIf you patch a python lib in your local virtual env. \nforku (\"fork you\") tries to fork the repo and apply the patch.\n\n(This only works if a repo can be found for that library.)\n\n\nTHIS PROJECT REQUIRES GITHUB CLI INSTALLED\n\nhttps://cli.github.com/\n\n\n## requirements\n\nforku requires the following:\n\n- python3\n- git\n- gh (github cli) : https://cli.github.com/\n- virtualenv\n\n\n### install\n\n```bash\npython3 -m pip install forku\n```\n\n### usesage\n\nPass forku the library you have patched. i.e. `python3 -m forku -l theirlib`\n\n```bash\ncd someproject\n. venv/bin/activate\npython3 -m forku -l domonic\n```\n\ni.e. This would fork the domonic library from github, then move the patches you made to venv/lib/python3.9/site-packages/domonic to the fork and push it back to github.\n\n\n#### status\n\nIt currently makes a lot of assumption, so wont work for many cases.\n\n- assumes git\n- assumes latest version of lib. Careful. If not this could result in reverting code in the target library.\n- assumes you have virtualenv\n- assumes you are in the correct directory\n- assume a dist-info folder exists with METADATA with a Home-page\n- assumes you have a github account \n- assumes linux?? not sure\n\nSee README.md for more information.\n\n\n### TODO -\n    - add support for other git repos like bitbucket\n    - add support for other python libs\n    - add support for other os\n    - add support for other packing systems\n\n\n## Disclaimer\n\nThis is a work in progress. use at your own risk.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fforku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteface%2Fforku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fforku/lists"}