Skip to main content

A tool to clone efficiently all the repos in an organization

Project description

cloner

A tool to clone efficiently all the repos in an organization

CodeQL CI Known Vulnerabilities codebeat badge Generic badge

Current status of the project -> here

Requirements

  • pyenv
  • pyenv-virtualenv
  • Virtual env created with Python 3.10 (supported version)
  • Install requirements with make install

Usage

With the virtualenv active:

Usage: cloner [OPTIONS] GITHUB_ORGANIZATION

  Clones all visible repositories for a given organization.

Options:
  --version                       Show the version and exit.
  --token TEXT                    GitHub token to read private repos.
  --threads INTEGER               Number of threads and processes to use.
                                  [default: 4]
  --logging [ERROR|WARNING|INFO|DEBUG]
                                  Logging level  [default: INFO]
  --help                          Show this message and exit.

Running Tests

With the virtual env active:

make install-dev
make unit

Contributing

Check the CONTRIBUTING.md file.

Security

If a security issue is found, please follow the instructions in the SECURITY.md file.

License

MIT

Makefile and setup.py based on Skyscanner cfripper.

Other & Troubleshooting

Multithreading doesn't work to clone repos, since the os.system call is 1 for each PID. The splitting is done with multithreading, the cloning with multiprocessing. Same amount of threads and processes.

Windows usage and support

Stargazers over time

Stargazers over time

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wr-cloner-0.0.1a0.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

wr_cloner-0.0.1a0-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page