Skip to main content

Python bindings for libxmtp (XMTP v3)

Project description

xmtp-bindings

Python bindings for libxmtp (XMTP v3) generated via UniFFI.

Install-time build

The Python package now builds the libxmtp native library during install. This requires:

  • Rust toolchain (cargo)
  • git

Environment overrides:

  • XMTP_LIBXMTP_PATH: use an existing libxmtp checkout instead of cloning
  • XMTP_LIBXMTP_REF: git ref (tag/branch/commit) to checkout
  • XMTP_LIBXMTP_REPO: override the libxmtp git URL
  • XMTP_BINDINGS_SKIP_BUILD=1: skip native build (requires a prebuilt libxmtpv3 next to xmtpv3.py)
  • XMTP_BINDINGS_FORCE_BUILD=1: rebuild even if a native library already exists

If XMTP_LIBXMTP_REF is not set, builds default to the pinned ref stored in src/xmtp_bindings/libxmtp.ref.

During builds, the UniFFI Python bindings (xmtpv3.py) are regenerated from the same libxmtp checkout used to build the native library to keep the wrapper and shared library in sync.

Manual build

These bindings are generated from the libxmtp Rust workspace. To regenerate manually:

# Clone libxmtp into .deps if needed
mkdir -p .deps
[ -d .deps/libxmtp ] || git clone --depth 1 https://github.com/xmtp/libxmtp .deps/libxmtp

# Build the native library
cd .deps/libxmtp
cargo build -p xmtpv3 --release

# Generate Python bindings
cd bindings/mobile
cargo run --bin ffi-uniffi-bindgen --release --features uniffi/cli generate \
  --library ../../target/release/libxmtpv3.so \
  --out-dir ../../../../bindings/python/src/xmtp_bindings \
  --language python

# Copy the shared library next to the generated module
cp ../../target/release/libxmtpv3.so ../../../../bindings/python/src/xmtp_bindings/

Notes

  • The generated xmtpv3.py expects libxmtpv3 to sit next to it.
  • This package is intended to be consumed by the higher-level python-sdk.

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

xmtp_bindings-0.1.6.tar.gz (66.6 kB view details)

Uploaded Source

Built Distributions

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

xmtp_bindings-0.1.6-cp313-cp313-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.13Windows x86-64

xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.6-cp313-cp313-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xmtp_bindings-0.1.6-cp312-cp312-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.12Windows x86-64

xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.6-cp312-cp312-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xmtp_bindings-0.1.6-cp311-cp311-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.11Windows x86-64

xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.6-cp311-cp311-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

xmtp_bindings-0.1.6-cp310-cp310-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.10Windows x86-64

xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.6-cp310-cp310-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file xmtp_bindings-0.1.6.tar.gz.

File metadata

  • Download URL: xmtp_bindings-0.1.6.tar.gz
  • Upload date:
  • Size: 66.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xmtp_bindings-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cc5c20e5fd17068fe7f21fa32636dcf8317e8e66d8457fa950af1ca90cf4eb30
MD5 300c7f1b94fbe2b1a462539179e8e750
BLAKE2b-256 e286565bc15adf0f18190813263998ef4b0b360bd59de9fe93350bca740a08a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6.tar.gz:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 35ea4a9913e5a8477af3d9b8374d726d4ebc00016c655241e0e63557a78a96dc
MD5 6b03139fcb0bd31ce20da94a80fafdbb
BLAKE2b-256 8791663a1894c5122a70f3f3c3075eb11cd3bd78470253aae7c8f17325405795

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23912d05b0d18fd203c8ab0c5275a694f6b51bcef1a78aadd674424512da7b03
MD5 46efa1af37202683f9251ad03692f13f
BLAKE2b-256 dbe987e2e1d56263b1bc986d8222c3b7faf9d10523296ab7c276a7d6dd7473e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 443b7bb80451b3d01b4053c0117e41a226feb6cf0c17c3d50ce34fef46f00732
MD5 abbbcaa36313eaba824337995183aa49
BLAKE2b-256 29b236b6425762d352082c04e930ba38c4b7efbfd72438028dbd27647881975b

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6469a2d54e22cd5dde8b1edfd66a0242a9e064a10b71f5ed8429a0c173785803
MD5 9e99c97c69a920de76c112b2646329af
BLAKE2b-256 5e5aadcfeedd80f633acfea8d948e7ba59ad9fb754147b379055844b5c31b5e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4a2ebbaac97e55a601b862457e5bcabf67a91dd736ebf466924ba8f47cf13cfd
MD5 7fbe6e360ed72a4695fab9e92657a44e
BLAKE2b-256 19c4cdd08c30f89ce5d5f719e3ec098521fee43818c873d33b5a66f91f8f6561

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3993c05379ccc51ee0776828ac4f334b18f9710fc2fda8ef44c0cc4bab39c1b6
MD5 f581e1024840d3735509d814ffa2e509
BLAKE2b-256 335b214ab711561ea78a9680ad47b781b21c570ae9db6fe9179b43f00bdcea80

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 46f657feaf5157987e7c2d61f3e5111feaf2c3b366316065aa83a713c17775fc
MD5 f29e163df6b4abc06ea78ad5a2a5ff2d
BLAKE2b-256 d549ec19a6ac057af1f90981580b1f19f8190024f56e917aad8b8df742089778

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7440bfa2654e5e80269c6c6bdd32bcd6ede2c8fffbcab7dd24ed17a95b5049ce
MD5 e1ae33e5387195c09bce6a5ec3f578c8
BLAKE2b-256 2a8e4a84ba6c3152e860d072e22ca259ac1e671316373678088bc7258aef3498

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 82d1909a30e16ee13ab19744f97da2b895faf1bcf36e545965fdcf7685f4a75d
MD5 0f9b6f323eef9a94f0d06f2b4e8d8847
BLAKE2b-256 0d49d24860b310aa0862b47e9178b422d5b470bc2652ab557524243a7328ec61

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2c355c65790e5c4783d6f4cb2142b986d15e1f3ad1fd002a35e93d6f63c63de
MD5 11b4a44af66afcc996f3dd5176aee4b6
BLAKE2b-256 2d9b60d10606fdf2c7f53aefaf25e4f543d3fc3937ef36280b7456a9c497cc48

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 99b33e42ab76fdc709cb6aa6ecfb7d16fcce69d5755a750b7cfa77400612aaa5
MD5 ff297a38203334fc21702e257ebddafe
BLAKE2b-256 896e5c1d1fc274d360a318619ec396680eca53ccc60da58afef2f94d5305d456

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4e6de27a7e501f34acbc47305ea7f7a49340f0dc39799ba25e49ad55ff72f05
MD5 ea913118e3b7a52959496b61079bb617
BLAKE2b-256 6339c7ea106a0e40a6a437da0eb244ff8962cddb35c49934f0749d8f49a0d181

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 51dd54bb507ff4803c32bb8d526001c04cc9176c9953f45cb24fef0b4e745bc6
MD5 2da968ec674af2f16a54c9216891355a
BLAKE2b-256 c3bb1d2ed8cfd6a3280c9962db28ec7d741dc002533ed530eb41895607c797a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp310-cp310-win_amd64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41f84c1b0ccfc4a13b90fd823517f77f6b2aa36a28a3773f2ca700be136395f5
MD5 b988c383707f99304510aa38e906835f
BLAKE2b-256 fc3d9beda00ac066c12db2d2db1b075e533bc1ebbd6475d14366e00b92369aab

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7cd8149510474a66bc14747693cf0e9efb6a8d92cfc6090d07863819b16d9f24
MD5 8ff6f638ae6ce60f263f927c95621fd0
BLAKE2b-256 4300ef6fd57077780f6a5723a325d5b76455753644f6c74d4cb9f253d799ee8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmtp_bindings-0.1.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c8d9be83f4e3186c57caf274663882fb901bc44f1a335c8faf976094e9ec473
MD5 4d002494518856ddfd3438c1c9150fc7
BLAKE2b-256 62a0579edac400b7dbb85865633a491c6a6ccea3dd43b79a27fc4f4428c60d4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.6-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish.yml on pierce403/xmtp-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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