superfork
Fork or sync a repo or user/organization's repos on GitHub to GitHub
Features
- From the command line, you want to fork a repo to a account you control on GitHub
Let's say your GitHub username is mona and you want to fork the repo willf/superfork to your account
superfork mona willf/superfork
- From the command line, you want to sync or fork all of the repos of a user or organization to an account you control on GitHub
Let's say your GitHub username is mona and you want to sync all of the repos of the user willf to your account
superfork mona willf
You can specify multiple users or organizations to sync
superfork mona willf willf2 willf/superfork
Note: To avoid overwhelming GitHub (and thus hitting API limits), this program will only attempt to fork a repo every 30 seconds. If you are syncing a large number of repos, it may take a while to complete.
THe command has the following options:
--sync: Sync when repository already exists (default)--no-sync: Don't sync when repository already exists--include-private: Include private repositories (of course, you need to be able to access the private repos)--include-forks: Include repositories which were originally forked (default: don't include)--include-dot-github: Include .github repository if found (default: don't include)--dry-run: Don't actually do anything, but check status of repositories--without-sleeping: Don't sleep between requests (default: sleep 30 seconds between fork requests)
Only use --without-sleeping if you just have a few forks to do, otherwise you may hit GitHub (undocumented) API limits.
Installation
This can installed using pipx or uv:
$ pipx install superfork
or
$ uv tool install superfork
Usage
$ superfork --help
Usage: superfork [OPTIONS] TO [SOURCE]...
[TO]: destination user or organization
[SOURCE]: source user or organization, or repository (one or more)
A valid GITHUB_TOKEN must be set in the environment, or in a .env file in
the current directory, or in a .env file in the user's home directory.
To get a GITHUB_TOKEN, see https://docs.github.com/en/authentication
Options:
--sync / --no-sync Sync when repository already exists [default: sync]
--include-private Include private repositories
--include-forks Include repositories which were originally forked
--include-dot-github Include .github repository if found
--dry-run Do not actually do anything, but check status of repositories
--without-sleeping Do not sleep between requests
--help Show this message and exit.
Metadata
Release files for superfork 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| superfork-0.0.4.tar.gz | 9.0 kB | Without provenance | Details for superfork-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| superfork-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for superfork-0.0.4-py3-none-any.whl |
Total release size: 16.6 kB
Release files / superfork-0.0.4.tar.gz
| Download URL | superfork-0.0.4.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e89963ea1049b92baf8a0f97466eb8fcc6e2c6375bb04247e65b8e92a63f0809
|
|
BLAKE2b-256 checksum How to use checksums |
2a90142ae0a363b6950b462f37c669fdf6cbb7ba593b9dc334a08eb2f9064caf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / superfork-0.0.4-py3-none-any.whl
| Download URL | superfork-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5a4233d7ed85127e42b312d533f08833e6697fae45bfaee398632dba3be0f2b
|
|
BLAKE2b-256 checksum How to use checksums |
9586c0bd3d41fa53c1801ad16119a9aeb9b278c669bf3004245cf528ca9780a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Security for superfork 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.