Skip to main content

CLI to replace HTTP GET on GitHub API with clones

Project description

GHAPI-conversion

Python version range License Linting, testing, coverage, and release Tested OSs, others may work Documentation coverage codecov Code style: black Imports: isort PyPi: release

CLI to replace HTTP GET on GitHub API with clones.

Why

In GitHub Actions the macOS machines share the same IP range, meaning that users will come against the GitHub quota often. https://github.com/actions/virtual-environments/issues/602

To overcome this issue, use this tool instead of pip install -r. This tool clones rather than GETs:

  • https://api.github.com/repos/<org>/<repo>/zipball#egg=<package_name>
  • https://raw.githubusercontent.com/<org>/<repo>/<branch>/<file>

Additionally, it reuses already cloned repos.

Install package

PyPi

pip install GHAPI-conversion

Development

Install dependencies

pip install -r requirements.txt

Install package

pip install -e .

Usage

$ python -m ghapi_conversion --help

usage: __main__.py [-h] [--version] -r FILE

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -r FILE, --requirement FILE
                        Install from the given requirements file. This option
                        can be used multiple times.

Alternatives

  • Manually replace current setup with clones, non GitHub API—or authed—hosted alternatives
  • Pack dependencies and download and extract this archive from non GitHub API—or authed—hosted alternative
  • Seamlessly do what ghapi_conversion does, by self-hosting a proxy server

License

CC0.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the CC0 license, shall be licensed under CC0, without any additional terms or conditions.

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

ghapi_conversion-0.0.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghapi_conversion-0.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file ghapi_conversion-0.0.1.tar.gz.

File metadata

  • Download URL: ghapi_conversion-0.0.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ghapi_conversion-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3c0d21294e8a5b1c9b37d8d13919664d2c6a642745232f896c26c334e26860c9
MD5 ac22ea8dc1619ed5df41e4bf4b2795b1
BLAKE2b-256 a6216797339c458847fef2a7aa8af8a4097f5b8d7187336ac993e00b806f3420

See more details on using hashes here.

File details

Details for the file ghapi_conversion-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ghapi_conversion-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ghapi_conversion-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5304962368ed7cfd78a684a4466168ae4c51007a7d0eb14cdfdf85effacfd8e
MD5 421f783445fd14ab3ee429f913a61ed0
BLAKE2b-256 eeac739e055f127c410590d521a91b78a333d62b4c6fd74dd81b5dad192e52fc

See more details on using hashes here.

Supported by

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