Skip to main content

A thin wrapper to distribute https://github.com/cli/cli via pip.

Project description

pybin

This project was inspired by how Maturin packages rust binaries. The key observation is that in the wheel format, the distribution-1.0.data/scripts/ directory is copied to bin, which means we can leverage this to seamlessly copy binaries into a user's PATH.

Combined with Python's platform-specific wheels, this allows us to use pip as a "cross-platform package manager" for distributing single-binary CLI applications.

This is the list of tools bundled this way, which can be installed with pip install $TOOLNAME-bin.

Wheel Building Process

The core of the logic lies in the buildlib.py module.

  • A mapping from download URL (often github releases) to pypi platform tag is required.
  • For each platform:
    • Download the release & extract the binary.
    • Set file permissions and place into scripts directory within wheel archive.
    • Create the METADATA and WHEEL files within wheel archive.
    • Place wheel into dist/ folder.
  • Once all wheels are constructed, the distribution is uploaded to PyPI.

CICD is configured to automatically recognize new PyPI releases by looking for a diff on the PYPI_VERSION. When this happens, a build-and-release cycle is performed for that release version.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gh_bin-2.67.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (12.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64musllinux: musl 1.1+ ARM64

gh_bin-2.67.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (13.1 MB view details)

Uploaded Python 3manylinux: glibc 2.12+ x86-64musllinux: musl 1.1+ x86-64

gh_bin-2.67.0-py3-none-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

gh_bin-2.67.0-py3-none-macosx_10_9_x86_64.whl (13.6 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file gh_bin-2.67.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for gh_bin-2.67.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 6185850427b901b17547149e9a1f8742dea3955a9dda0989e5fa943b529fbc0d
MD5 3e4328c60fd04cf9c5cb292245619109
BLAKE2b-256 36fbb9e62c6dfe9ab99e606dca89e77ea99c2cea368b77042f64df131ad03047

See more details on using hashes here.

File details

Details for the file gh_bin-2.67.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for gh_bin-2.67.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8a880b85d8e88a3141fea0e2f774c3c18d85fbc7ed13c9faa8d12c304cdb87a5
MD5 bad15abd6a91a22782cb255c32b14c62
BLAKE2b-256 0be7b82b00f5038b0793bfa9a60d8ab36e23d9010386581168a8ad9a5ece19a7

See more details on using hashes here.

File details

Details for the file gh_bin-2.67.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gh_bin-2.67.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6147f6420613c221e7b71cad11a349bbb7bfe67c011be1549434d1fecded2ef0
MD5 bc4614ded9e516a8e8a200b5adf45b98
BLAKE2b-256 c39067bc9954747905f0068ebc580794b2ae23e76ee3373b9f44af8756dd5c66

See more details on using hashes here.

File details

Details for the file gh_bin-2.67.0-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gh_bin-2.67.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 538930e7578ba722bb50958e79b0882ece6ebe59d5cf7ccc0b4ca0ca6283feca
MD5 03845a02c3bc9543906f0f0e06d0e7b9
BLAKE2b-256 6d1658196d6ed1c39208e1c5ee087093f538612d8edcf60ff6323d75f6cbd452

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