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.7.tar.gz (66.7 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.7-cp313-cp313-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.13Windows x86-64

xmtp_bindings-0.1.7-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.7-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.7-cp313-cp313-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xmtp_bindings-0.1.7-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.7-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.7-cp312-cp312-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xmtp_bindings-0.1.7-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.7-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.7-cp311-cp311-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

xmtp_bindings-0.1.7-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.7-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.7-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.7.tar.gz.

File metadata

  • Download URL: xmtp_bindings-0.1.7.tar.gz
  • Upload date:
  • Size: 66.7 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.7.tar.gz
Algorithm Hash digest
SHA256 69b682c9e112859dd418f0cb3c8b9157aad7b25675514165f103d1752d08baf7
MD5 aedf70b9ae4f6d6ada1db17a2f30cef8
BLAKE2b-256 dde1380028749fab682c915d8bda304d9c131f3b4be361b39e41ad82ada1daf1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cfb5b7e994c0e35d8982f67adedde5730413114943df6770ac4ca58615f1907b
MD5 fed73cf75c6d0c991271417c0bde8760
BLAKE2b-256 ed2f50efdf88dbee7d7cefe21951edff4c8336f0a60493eee52c818f7fd6298c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0f8951661715338e033565ce65bf034f7fd57c452a18bb3cd4ee869ac9caeaf
MD5 b8875a81000eb8b1d4e39ee816473670
BLAKE2b-256 07416ae422d5350140ba96f77c37af61183c903efadd279003b7cd7cabf6ca0a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7fadab9b2393dd67490769d5377c352fdfe94ed5b6402dbda6d4c29cea23a0fc
MD5 90868fc754ba1b6939265be76892e9b1
BLAKE2b-256 7dc997403fefe515ae67ad79386353feac30dc92ddce973b55a76e798c3bc3ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47cfb3922e9a486085789eed9daf8eb0887f9bc23a4e9e2673a65294eab8a951
MD5 9e770cb017743fb63f989aa43d553302
BLAKE2b-256 c3aceed0cb1bc079f9e0527e630fb51a49027db7c2855e666f027e3650a0e61e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 700a9fca4e913a0999ad4a44eb2c3110a13de904176f0eaf18af50a32e38bfe9
MD5 47da71b15306dd66698a004139ee35ed
BLAKE2b-256 0609273fc060bdcf2a432378f644574d3d28219c39a74e31ac26ab886aa9e5d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca3ae21de2129caf862063350fd76fb85633ed2d617a595d19b10e789a2169e8
MD5 44df30a9bce6953ac550501c724dd837
BLAKE2b-256 630068bf2216d77478b60c5c5a2a4119c72d1845896de064cc33f525ecdb96ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7e34bce121252e4c85dc4812720ac1192ebc3fc74dd06bb955d25007d0bf39aa
MD5 f0009b620460dd4b6e941f36a8fb9f88
BLAKE2b-256 4102451ca664fcb83b24cc67da1267a87af1009561833f63110d00612554dfc9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aff93e2fd61454f09bc514d002e18ec5f2589e65346af6009cbc181b8524f7c
MD5 b29eae1c1cc89876ad40ccc42787b348
BLAKE2b-256 b1ca80664f27f8486806290695f3733a72715512346c98182bf6f893cfc50255

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7a580e5cb1056978709f39955e8c9c881b11d88b74ec9d9b11e76dcfc8aa58e6
MD5 144b6f4bc0807bc0fca3f27fcb785b5c
BLAKE2b-256 c8be98a1cdf51741bdc078ba0a547447d8b488f25e05dfd2c66426bba2debf75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e65941f0b7cbf96b5ac12146a495c67811ffd75b120989ad4eb92ee77fdb0c61
MD5 46a3ad60b49ea3c326a244baddb6b78e
BLAKE2b-256 0e71f358b9dfea8b33de9aa299bad541863cf09f00730028b53be834751de32c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9bba3a04aea8305ad6f31d47cdd480a98b5156526a289a952c56b542af2bca5b
MD5 5c68f3dd9aa0751e26e470f3e590e0e5
BLAKE2b-256 4882134b00dcc855760f81f4789d4e635dde0051896150a54c20763f819160c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76d6eb3edb1e5e00a3174a6da82eb5af1efb1ec4037f224c1c85e845c8ab1e27
MD5 36ca3cd013120b40c5eb956a76b4b6a5
BLAKE2b-256 64d4f6c27a94f8e602bda8d72ebf3aa756f690053c770ef41569b2face758629

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f104245bca1072efa055ea07689684b91ba3ad19b43c876828dbf0056ba5dd46
MD5 3216e22eb2a978b12bf02db4b3053416
BLAKE2b-256 399601b9f9954caa2634daa0340d02070a07c5ecf97a81de55af5cc0d07d56e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d3d6c21c23e5222c995506c4c1734624a3960f412aab890be5443fb89eb050d
MD5 c8155be68cc2f4eae2ac71ecda381a8b
BLAKE2b-256 2b7503df72e66eea5d4b4c2fbc3f4fc42a86c49b30700a38d10b773e39cf2d2f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 426a602a3d69a255dcdf2ac2cf26d9142bf72631cd12158b1028ee8513cc6930
MD5 1f4641407fe029034e57eb5d6862b131
BLAKE2b-256 2c30f2b0d66a5aa643d829fcf57a01e2778eeb56daa9e0257c144872858d63ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 632e8336cb834e02398387e1514967194fa60a0c3b42e1a5d7913f9632b878bf
MD5 cd4ca5f7aab2147d16c6846efed357be
BLAKE2b-256 741c809b8b0c34c0d8b2db1c9e0b5f2c51e5da53352f36f4373b7aa121a3d6a9

See more details on using hashes here.

Provenance

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