Skip to main content

Download prebuilt libraries from Binary Builder

Command line

usage: jbb.py [-h] [-b ABI] [-a {aarch64,armv6l,armv7l,i686,powerpc64le,x86_64}] [-d OUTDIR] [-l {glibc,musl}] [-o {linux,windows,macos}] [-p PROJECT] [-z {memory}] [-s] [-c] [-q] package [package ...]

Download prebuilt libraries from Binary Builder

positional arguments:
  package               package/GitHub tag to download

options:
  -h, --help            show this help message and exit
  -b --abi ABI          ABI type if Linux
  -a --arch {aarch64,armv6l,armv7l,i686,powerpc64le,x86_64}
                        target machine
  -d --outdir OUTDIR
                        output directory
  -l --libc {glibc,musl}
                        libc type if Linux
  -o --os {linux,windows,macos}
                        operating system
  -p --project PROJECT  GitHub project (user/repo)
  -z --sanitize {memory}
                        sanitizer type
  -s, --static          copy .a files
  -c, --clean           start with clean output directory
  -q, --quiet           suppress output

For example:

# python3 jbb.py libcurl -d /tmp/libcurl 
Getting libcurl
- Downloading Project-libcurl.toml
- Downloading Artifacts-libcurl.toml
- Downloading LibCURL.v8.9.1.x86_64-linux-gnu.tar.gz
- Extracting LibCURL.v8.9.1.x86_64-linux-gnu.tar.gz
Getting LibSSH2
- Downloading Project-LibSSH2.toml
- Downloading Artifacts-LibSSH2.toml
- Downloading LibSSH2.v1.11.2.x86_64-linux-gnu.tar.gz
- Extracting LibSSH2.v1.11.2.x86_64-linux-gnu.tar.gz
Getting OpenSSL
- Downloading Tags_OpenSSL.bin
- Downloading Project-OpenSSL.toml
- Downloading Artifacts-OpenSSL.toml
- Downloading OpenSSL.v3.0.15.x86_64-linux-gnu.tar.gz
- Extracting OpenSSL.v3.0.15.x86_64-linux-gnu.tar.gz
Getting nghttp2
- Downloading Project-nghttp2.toml
- Downloading Artifacts-nghttp2.toml
- Downloading nghttp2.v1.63.0.x86_64-linux-gnu.tar.gz
- Extracting nghttp2.v1.63.0.x86_64-linux-gnu.tar.gz
Getting Zlib
- Downloading Project-Zlib.toml
- Downloading Artifacts-Zlib.toml
- Downloading Zlib.v1.3.1.x86_64-linux-gnu.tar.gz
- Extracting Zlib.v1.3.1.x86_64-linux-gnu.tar.gz
Downloaded to /tmp/libcurl
/tmp/libcurl/libcurl/lib:/tmp/libcurl/LibSSH2/lib:/tmp/libcurl/OpenSSL/lib:/tmp/libcurl/nghttp2/lib:/tmp/libcurl/Zlib/lib

# export LD_LIBRARY_PATH=`python3 jbb.py libcurl -d /tmp/libcurl -q`
# echo $LD_LIBRARY_PATH
/tmp/libcurl/libcurl/lib:/tmp/libcurl/LibSSH2/lib:/tmp/libcurl/OpenSSL/lib:/tmp/libcurl/nghttp2/lib:/tmp/libcurl/Zlib/lib

Since 0.1.7 the download cache is scoped per GitHub project and tag. Packages still extract to <outdir>/<Package> and are re-extracted when the project or tag changes, so mixing versions or projects in one output directory is safe.

Since 0.1.8 a Windows artifact tagged libc = "msvcrt", or with no libc key, is used for the default Windows target; a libc = "ucrt" artifact is not selected. Artifacts marked lazy = true (for example build/extract logs) are skipped.

API

import os

import jbb

jbb.jbb(
    package = "zlib",
    outdir=os.path.join(os.getcwd(), "zlib"),
    arch="x86_64",
    os="linux",
    libc="musl",
    quiet=False
)

Metadata

Release files for jbb 0.1.8

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

Source distribution (sdist)

Source distribution for jbb 0.1.8
File Size Uploaded Provenance Actions
jbb-0.1.8.tar.gz 11.0 kB Without provenance Details for jbb-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jbb 0.1.8
File Interpreter ABI Platform Actions
jbb-0.1.8-py3-none-any.whl Python 3 none any Details for jbb-0.1.8-py3-none-any.whl

Total release size: 19.7 kB

Release files / jbb-0.1.8.tar.gz

Download URL jbb-0.1.8.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dc48825533797853a2ec73c294834735cc292079f2eafb56106bccc010abf1fb
BLAKE2b-256 checksum
How to use checksums
d2fd3724271b6f4cd5b3ed01b255c3d212fe95ef2b4fa12b4705bd3ffb0ac882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / jbb-0.1.8-py3-none-any.whl

Download URL jbb-0.1.8-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed007273624d0e0c613ec1b273ae4564adfd90fb4873c4879bea2979306e55f6
BLAKE2b-256 checksum
How to use checksums
ca8badf9f35558a1d6841d84bccee0f46c648e50dae23c8867622437348f3d93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for jbb 0.1.8

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