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

Uploaded CPython 3.13Windows x86-64

xmtp_bindings-0.1.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.8-cp313-cp313-macosx_11_0_arm64.whl (10.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xmtp_bindings-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.8-cp312-cp312-macosx_11_0_arm64.whl (10.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xmtp_bindings-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.8-cp311-cp311-macosx_11_0_arm64.whl (10.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

xmtp_bindings-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

xmtp_bindings-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

xmtp_bindings-0.1.8-cp310-cp310-macosx_11_0_arm64.whl (10.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: xmtp_bindings-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 d6b2de13af984452214ba34ec3f348ff18bb8f5cb55d5409d3f523359e6d681b
MD5 8bd258b690d6e53e79bbf6a6352eac2b
BLAKE2b-256 27f5f2b259ddb7ff863b00a13d603c0ec1e310ec1e49459993a4dc1c542d6a07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3216919a72a3e94d30a8e667ace820c44d7b51f6b9f715850e047b8c0fff893f
MD5 013a190ab2778a90e926f4f35b050c95
BLAKE2b-256 372612324e6ecd7cd61e40b1948b024ae0ecc0fcdbc9e7a532ac1597f0216250

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff6c7c45ce2f078a17bd48fa0c89e46244ca55c033a524b11ec88368527fa973
MD5 681800715664a7e680e0b6b677c00198
BLAKE2b-256 3a5ea130ed0c53271b3575ec18508e93079ea29bc02b259a71bff9d17dae5718

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 634b63602e95e4d18f76b492717ac9e6df0f4abc5dcc6c9e56b82ab5878a7595
MD5 88432fdd3527058c5576b08776b8bd0a
BLAKE2b-256 ff255a49d4eac9db0acae9101053efeb487397c9a79d499ae91bf8b711f6cdb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c05773069fc490a162d5395bc52a83e603a993f8f09d295c04248438e6b673d1
MD5 62b2158a2fc9e6ba0ef939192aab15db
BLAKE2b-256 68d6a1e8bd4109700f37e58d82c944e4c0ee500b73ac97080d9a457243a0ac89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d56fbb1aee47842afd89ac6c8a366a1e018d9ab1c531125e969229cbd62b8684
MD5 5da98335e68676bbab4940f17643c051
BLAKE2b-256 dc4a8b01d5a58f8357d8f537fbdd890c5774e694b444342eabe26c3aa123fe22

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88b96a79c07df8ee331215f2b3cea13a319f1e786c02ca766b78f9f51623ff92
MD5 b2f5b3b089e5e2cfe1a9fdc7d7954764
BLAKE2b-256 ffc3fe05d552b4c0a14272b52d471f134b3f59a91631377ec322e4673dde10db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2dc356ffda483162c5c3ff9d9519f2f9ffc3c29dcc0d440869d562aaa98780b6
MD5 3b0e94e604d82a93838f0a66ee491a57
BLAKE2b-256 99c4357a4a303c5d9dc3c2558f8cb8b39a0918e9b5ea21b057172e468664adf1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 115c286e2546844c068b7192584fd77317ff2df45ba170c9aca9e0bee00fc172
MD5 173aaff4acf2481bbdf3eeea67502cf7
BLAKE2b-256 da1e9761e299a225ba850825054dfad76c8d08e88fbe818e09ce13e4b6eb91dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 78268b510c306bd9af1931948a121c9f7392bdd4ef4f2812610c347cff6800d1
MD5 f1501ea3284c51a7c3556cbed8604b53
BLAKE2b-256 1f7bcfaca7a791b38b5d0c5c9e3588a71f77726a13cdd747f9543589a90064d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dedaaacf011d90d2f4706ee117e3229cf3a3c06510c24fa0120b3446952aca77
MD5 65d2b448630e683d59aaf425235c0363
BLAKE2b-256 a05dc7f6ec1e7e97fa5ac73b0ad8d7cab015ed0c84948ee3baaa87b6f89a5ef1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b57c3d8c4c61744a42c5fa8441daa8cc497a4a10e7a6b7a556bb0adfb244311e
MD5 34d79a84ab51e580b2fca547b6245297
BLAKE2b-256 12f5dedd18874c5ab5ce5552ccdc2b4eb90ade3355faa011d1283cdd9922f95c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd863eda5805f94b9e947e1f37b8b0b5bfa73e9d8c6d643d724004aabb53f2f3
MD5 faf446e68a48c9a0119edd8c8743a1bd
BLAKE2b-256 5c8b34568aeaa2e06f4aadf83cbc890e39c2294268ec06124d962ac4d7a78dbd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 36539063a37f45ef3315c152e2e5684af0cbf3ed81f7e517f7d81f173c9b723a
MD5 fe15d8ddea0ce2f092209e89276a897d
BLAKE2b-256 c78b37eab4e01510391ac8cfe4ace1b31f5644ec08213be7439be9b92817ccdc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41d622faf2b6b5cca425136c5cbc707ec7c75cbd0381d933b0c5b3cb4160488e
MD5 913087f0c35686bd919bdfb2efcf4d96
BLAKE2b-256 8e8968851d8530ade173644d97e25a71972df56a77e773241be546428a895907

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dcb88a568c6a5d18e0be007753bc01585a05df2b7d17fb2b58a346f0912b85ef
MD5 990f6a17d34be69c6c207345f89000fe
BLAKE2b-256 ff6eeaadfb205c1a633a9821bf916532344db9d0c8cb7e172c83694951b799d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cb206ead51c0b6dfccc175191ea64369b05b3ad929a3784e1740dd6ba47fef6
MD5 bbcbffaf27b51923dbb0c390a4633177
BLAKE2b-256 0aa071c3df5d3b7977405cebc42c7c1c7e52ff04c9c0f3caf35c0d44ca2e9afd

See more details on using hashes here.

Provenance

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