Skip to main content

Clone GitHub namespace

Clone an organization's repos.

Clone an organization's repos. Clone all repos in an organization or some by language used.

    $ clone-org -o kubernetes-client -p https -f ~/dev/kub-client-repos -l python,go

A common situation that folks find themselves in when starting to work with an organization is the ability to check out all the code and essentially familiarize themselves with the code base and even grep the code base looking for things. clone-org is designed to lessen the pain and give you a one-stop clone the organization toolkit. This module queries the GitHub graphql endpoint.

Clone-org uses the installed version of git on your machine and executes shell commands.

Currently, clone-org only supports GitHub and other cloud providers will be tested in the future.

For https remotes

You must have 'GITHUB_TOKEN' defined in your environment for the organization to be queried. The clone may be optionally either https or ssh

For ssh remotes

You must have your ssh keys set up in current shell.

Installing

    $ pip install clone-org

A Simple Example

    $ clone-org -o kubernetes-client -p https -f ~/dev/kub-client-repos

Help

    $ clone-org -h
usage: clone-org [-h] [-o ORGANIZATION] [-l LANGUAGES] [-p {https,ssh}]
                 [-f FOLDER] [-c] [-d] [-v]

Clone an organization's repos. A common situation that folks find themselves in when starting to work with an organization is the ability to check out all the code and essentially familiarize themselves with the code base and even grep the code base looking for things. clone-org is designed to lessen the pain and give you a one-stop clone the organization toolkit. This module queries the GitHub graphql endpoint.

Clone-org uses the installed version of git on your machine and executes shell commands.

Currently, clone-org only supports GitHub and other cloud providers will be tested in the future.

For https remotes

You must have 'GITHUB_TOKEN' defined in your environment for the organization to be queried. The clone may be optionally either https or ssh

For ssh remotes

You must have your ssh keys set up in current shell.

options:
  -h, --help            show this help message and exit
  -o ORGANIZATION, --organization ORGANIZATION
                        The organization in Github that you wish to clone all
                        the repositories for
  -l LANGUAGES, --languages LANGUAGES
                        Github classes languages with well known names such as
                        Python, Go, shell etc. You may pass a filter -l python
                        and it will compare it to the given primary language
                        assigned to the repo. Comma separated strings such as
                        python,java,javascript are also accepted. Names are
                        defined by github in the github/linguist repo.
  -p {https,ssh}, --protocol {https,ssh}
                        The protocol to use either https , which will require
                        GITHUB_TOKEN to be defined in your environment
                        variables. Or ssh which will require that you have
                        your ssh keys set up in current shell.
  -f FOLDER, --folder FOLDER
                        The target folder should be a fully qualified name and
                        the directory structures tested are OSx and Linux. An
                        example would be -f /home/Users/alice/dev/
  -c, --create          To create the target folder set this flag and the
                        directory structure will be created if possible An
                        example would be clone-org -o your_org_name -p https
                        -f ~/temp/my_repos -c
  -d, --dry-run         The user may simply wish to query the organization
                        before cloning. The dry run option will print out the
                        repositories in the organization specified and exit.
  -v, --version         Print version and exit

Metadata

Release files for clone-org 1.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clone-org 1.0.13
File Size Uploaded Provenance Actions
clone_org-1.0.13.tar.gz 77.2 kB Without provenance Details for clone_org-1.0.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clone-org 1.0.13
File Interpreter ABI Platform Actions
clone_org-1.0.13-py3-none-any.whl Python 3 none any Details for clone_org-1.0.13-py3-none-any.whl

Total release size: 158.2 kB

Release files / clone_org-1.0.13.tar.gz

Download URL clone_org-1.0.13.tar.gz
Size 77.2 kB
Tags Source
SHA-256 checksum
How to use checksums
69a5c0370c9cf10b3ff32c57b5bcef7103fb6ce7a38b0a95b5992c649cd9d4f4
BLAKE2b-256 checksum
How to use checksums
9c98fab02559120fe73a65035ff8e07da0548c14041b38c23b681b34301481d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

Release files / clone_org-1.0.13-py3-none-any.whl

Download URL clone_org-1.0.13-py3-none-any.whl
Size 81.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86b99ebaa184ac80df04cacba55edbf8eefd4bee7907d5a5579cd6c6e3e1ba76
BLAKE2b-256 checksum
How to use checksums
a567a87de50180da91a753b5ac340894dc748b78c62c057260933702f8c35a85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

Security for clone-org 1.0.13

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page