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.16-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (38.7 MB view details)

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

usql_bin-0.19.16-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (54.7 MB view details)

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

usql_bin-0.19.16-py3-none-macosx_11_0_arm64.whl (49.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

usql_bin-0.19.16-py3-none-macosx_10_9_x86_64.whl (54.1 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for usql_bin-0.19.16-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 92364bba10dc5f7702730928b34f9ab7e6f2a365a84899b0b86f6ee646fa9d7f
MD5 29067481c44c7b674e85ac246fffd033
BLAKE2b-256 fc8c170f0369ca607ee2bd149c6ac2b1dc244061e1752933ae64ac458e43e40f

See more details on using hashes here.

File details

Details for the file usql_bin-0.19.16-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.16-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cc6058cf8ff05d926cd5413041de960b7efc7c4bf26aa98b37700e0dd8cecdf8
MD5 2c22d725d47eff78e73436d8e0bbffe8
BLAKE2b-256 3334920facd6690699c754da0a75432a6aca1ba024a9be976713e962f7ef67ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for usql_bin-0.19.16-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7274ea010d0ddecdded6b234e7e3f3674558e7afa4614795fa8138144635a0c8
MD5 f518ee0315f2990379e3ca274de7b90e
BLAKE2b-256 f4ee028c8f022fea6c871c75088f4f951b21210827eb21057dfc31964cb05435

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for usql_bin-0.19.16-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 46251b03b892143916aadfb5d40c514a91189d63c0b371733ef07bf8bf8d8461
MD5 ace9a9323884f6ba372e68dca2d900b6
BLAKE2b-256 ad0892f2eb90ce3c6b45af859b87f5270fb169ea75fcae75753cb2b7d234f1bb

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