Skip to main content

A thin wrapper to distribute https://github.com/xo/usql 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.

usql_bin-0.19.17-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (38.9 MB view details)

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

usql_bin-0.19.17-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (54.9 MB view details)

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

usql_bin-0.19.17-py3-none-macosx_11_0_arm64.whl (50.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

usql_bin-0.19.17-py3-none-macosx_10_9_x86_64.whl (54.3 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file usql_bin-0.19.17-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for usql_bin-0.19.17-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 055dfb4c54da9e30ff5e77b774d298ea0dc9662052ecdccc53965caf5aeca2ea
MD5 1eb3bb7b78f60e0401a98a1f0110fc67
BLAKE2b-256 ad09cc2785ae35eb73490528882d491405dde865a53efb3e0535c412d2a85d8e

See more details on using hashes here.

File details

Details for the file usql_bin-0.19.17-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for usql_bin-0.19.17-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0d584a627c73009b2c5f3cee9dfb11b0515f3a74b78326afcc5f99675a5630a3
MD5 26c3dba192a2d5407edbb815e025594e
BLAKE2b-256 d509a33ee4a97c1a2db918b07b279648bd42d3a77701f4be4e6d00e3de22d554

See more details on using hashes here.

File details

Details for the file usql_bin-0.19.17-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for usql_bin-0.19.17-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7968c131241ce812b85b899eb1f6e3b1b3ade5abd16c98d542ceb7806decbf54
MD5 0e88fdd78668105213ffdbcb26231c1c
BLAKE2b-256 9f371fcfa6a7367508a1887d0479c94c98d432fbccf1bd5a9e4a29250b3545ab

See more details on using hashes here.

File details

Details for the file usql_bin-0.19.17-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for usql_bin-0.19.17-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d325d7f80cce5d8a4427f0e58dea1790355b4ce46a6a5d62a0eb0a2fccdd5e56
MD5 dc58728350bb1e7e0aff0b174e7b7ca0
BLAKE2b-256 f3ad070dcb1561e869859435bdefafdeb9a13c47da74f607322c7481cc9473a7

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