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_ffi
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.5.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.5-cp313-cp313-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.13Windows x86-64

xmtp_bindings-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.5-cp313-cp313-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xmtp_bindings-0.1.5-cp312-cp312-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.12Windows x86-64

xmtp_bindings-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xmtp_bindings-0.1.5-cp311-cp311-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.11Windows x86-64

xmtp_bindings-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

xmtp_bindings-0.1.5-cp310-cp310-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.10Windows x86-64

xmtp_bindings-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.5-cp310-cp310-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for xmtp_bindings-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8d6ec7780f2a48bcda8e29b95c4f2bc814e46252381b18a7c6fc7443e565b246
MD5 905ab9ecd3718186e17032c5d4aac843
BLAKE2b-256 ef210df39a87187df39972330c11f7f1d0e92dca3b8c18981c54daccb48083f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5.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.5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 869b3b23b88a55d5d4b36af559e25c89ea808bdc32fbe04564ae5c97733848ff
MD5 9f920d86f95fdd2bf4963a38c70a1478
BLAKE2b-256 8e2cb966bb795d648db1954fd0ef8fc6d92212bc46d78750ca0d783a172e1e4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4216971f68e794c95a173252a6b975fb1ccb1eeb34cf7ba5277425617e8d7b1
MD5 5daebc3ed4d3ead1395ef18fdee77ba4
BLAKE2b-256 662999124b81b7c0aeea8cd5c793cb427f6b603f78310b0ae5bd640a32e3321f

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5203ae0af6d401e1f64376245e63bce289192ecbcdc850df85330284db77b05b
MD5 d0bf83c4b33f7ee86c89f2656c7c4ac8
BLAKE2b-256 4b12d247a460f5635363b3a5e35c5ec79583c65871b8409d3526e39b7a71a8ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7bdc3a8a46184c8f438671527a42a51d55d6761ff904dcc4ca61d132113b22c
MD5 8e229575dfee884e819fc71895c75c82
BLAKE2b-256 6d6e86d20ac5f2f1fbfdc050e6ef3f48d1fbd19e87ee2d052207f09489934f6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 73c928e4862fcc369c7ab70f120aacafdebe4408432430107b1fbe0675efa05b
MD5 a1e18bd641abea1d2525f2f3234177e3
BLAKE2b-256 885f765e3d8853f25a0197b3a4563e2ee23a0977e180ac13c38063c543d729ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 24938fc382eede435ca32e5c448ba6fe34dd1a7e3c4a526173a2e8b1fa9b4a86
MD5 757b5b0834efd21b1cbdf93230b3b75b
BLAKE2b-256 f6dc2ae11e09f09001554cefa1051661a968ba59b1a7281d54038cb176deec3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d26971eab8078d44d395369d6a9122103c6e91010c58d11e24854c72ce70d765
MD5 ecae1451022bc7d0eff7eada0a0bee62
BLAKE2b-256 7f90bcaaab2aa8806ef7808f824fc4a55a7e5d0c3112cdbf04bbf0a8d120be32

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0650372e4092eda4a22c4309d42eb0cdecd148f30bb7b10f1fa510539175f80d
MD5 3086379e74694bb6b506bde4d3319379
BLAKE2b-256 8cadc4093d94aa9f9aa6a1226acae60cf0cbd25e2e7f0bfdc2753bc8fc4099af

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 94c0c4f7dad0151a47fddd3482651648527f82531513cb208aaae1634a735040
MD5 2fa1a2052511651a36d50c443e5fd684
BLAKE2b-256 b140aae8c03aade15639b0d6a5dea8cbefea4c9537607a3716c5751d248bea64

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3951e6bf1696a643492cf3fc6873e319840fab1b50b4942f56b37f798db569af
MD5 46864339e110badc4a020a42ee2a698f
BLAKE2b-256 6027192f003edf3bdadcbf70257fe314589fe7572b8f0680c23d447827df76df

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 88761c187096fe473ddbdccd0b0bff99907ab3ea9775c15d41af53427d4ea80b
MD5 656f01a9339c6693dd9731aba217321d
BLAKE2b-256 14107fac0e02eca609afe868181e0b7a90ca261b1cc6a9022e7aa72ab0b835f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78b9282d15b40d3c23219f669b54b47454f0d4066518bdd17fb8a0df21b4f29d
MD5 95a66d8711881c5ba0f65c2b369a1a57
BLAKE2b-256 bb027eca320d29aa540e2f9738974f63286aaefa2f1524f9dc64de2fbd15e891

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 593688c4b507997d8ee064f5a920151978988b76264927b1ee39d1fe118ab5cd
MD5 45854d9d51cbd940b71c5857e7e65102
BLAKE2b-256 6e8f81798f8d12cc2b040d193bf68082312736baf5a87323f8a2b3faa7f42e4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 715d877b0e220885aabe1963ef6b4688551bc6d389395b691734c73af45b5239
MD5 801c8ae8eaae84f51d7a45a612cec5a1
BLAKE2b-256 633cd337f3723ca8a7c599b3e7c586e6f00ccdea5a4027ed0285703a167fc492

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 026399dea71f8d1a8194ad412dd909d8d50e77dcc791faacb3cbc9066d087b93
MD5 d0557ecc518ba3fa66f4fe673c2dd5ca
BLAKE2b-256 cc7a5f4703dc197689a13ddb0a529061785e2b7495ae5892373744e2c51df8a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xmtp_bindings-0.1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86598844603402e5385bb93c16dc00629b50ee2dac1be18eb96a5dacf13f183f
MD5 023075bfe9ca8906f5883a7f451e125b
BLAKE2b-256 3449d4a768cac3d4c10fbacfc28e5779fa5908a627d370a8fa8ca0ac04c706d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmtp_bindings-0.1.5-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