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

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.0.tar.gz (65.9 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.0-cp313-cp313-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.13Windows x86-64

xmtp_bindings-0.1.0-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.0-cp313-cp313-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xmtp_bindings-0.1.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xmtp_bindings-0.1.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

File metadata

  • Download URL: xmtp_bindings-0.1.0.tar.gz
  • Upload date:
  • Size: 65.9 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.0.tar.gz
Algorithm Hash digest
SHA256 a2cfd34bad02d92ec43d985967c02c40d4e66df35500a8629ada027f30209adc
MD5 757d49e66a5e1dbc6561fe7c4f86f3cc
BLAKE2b-256 092a6e29ac0077e5d0819f116aace4586c140665086257260a9a525e63035603

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 73dcec01b2aa7ae99caeda66004199b0cbd6ae085be58f713912fde581d2212a
MD5 cd5e5ce4f79079a02978b0444fb434b6
BLAKE2b-256 5c0fe2204961ea24e1899c2f08cb37ed95910ac3cd9bb468f5e8c96b68df24c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fa8c24184fc1aaaa494c3f08366415eac9a0ce06e426eff1e254f2435ba5a99e
MD5 d7cc2ffffa437a1e94954b1d443f73f8
BLAKE2b-256 9a41195d2a06e2feb465e7aee2a1123961e67db06fc4f9847d76def9c225662e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76edc87ca1743667dd69104f79393d304830e89bd520aded6a336511c5d9fc56
MD5 b68d686c93208001df452f30e021b3af
BLAKE2b-256 3b72b9b05729a0fc32c101c152070148db7c5ba78d1c23cde57a613c64b9b5f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 313b8608bd853f44b9316923e897fea31e326cee6f9bf12fbc6f3c11d4dfd09e
MD5 92a92f8b85618829e7a7d2ea957a9ac9
BLAKE2b-256 742899ae502f105647f6a79dd79553fe22460f1b235016f457d52660b14366e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce31fe89e9578b6ab6723335d70964e2a3f68262d9120618d1cc3cdde997abdc
MD5 3f7711c2cce70be5fc552cb6df3cb681
BLAKE2b-256 2169103292707255b8c5f0a50e900fa748341063602285b5fdb39d0958f990e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96d06bacfba94587f91aacc9ff2c603913011fbe38906db7c6368701f65932e3
MD5 e742aec9a67bbf8ce471c151ff6b714e
BLAKE2b-256 b8b1375e97709fe8a8efe80df756e3befccef5999c03275ff70475ddcef4422d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b5a17d48f8e38d50db23f2a6d091e35a2796e1ea0ff22ebb198b6e29ba392a8
MD5 1f1f230f63b7e27ee2b41c813bb0d6f2
BLAKE2b-256 c4cd801956735c4aaf72a68c6548ed5b4853a4ad5c7a2742b81f4099108aa204

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e5f45edfa8ab4ef0da47199dcc768bc35697eeb2fdd28c5d60d7c40ac03b8da
MD5 7a7e545a4b4c1379b46a8756eab6080f
BLAKE2b-256 37176b58dddf91d3ba7f58adf0b6c366f3bccefbfcf435ff9dbbdd6c2324892f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d12e137a789e39675d4b580ca3d081ac187a3f992c1d7d42acc47341a09e61b4
MD5 d0dc337a556ac5be2a6e1fe11e2b3365
BLAKE2b-256 acce226be61a13f00343cdebf806b6548639eab03a124ef90b54d0c42ad6510d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dc087c564ee6c49fdcb8e362ff63d1ed8aa9aad8a697cd82f799896ef1da884a
MD5 bd7f5f39f0c751855b4b5255925c8a45
BLAKE2b-256 3df0d46774e49d2cb978e18fedb1ad37679ca14b395f4a874555eb84ef5fb544

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53a2adf70d8b122bf61ae45bbdf54b516a5710f870f1a64fbd5f3e7bcd87a07a
MD5 f567eda7f424835c2d4782abbcfceb77
BLAKE2b-256 9a752d570559e67c3f35398dd37c26e50d7aa383b263428d36ca83accfaa6aec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cff6d550f572b022ebcbdce115502d0ed479417fd6c0692617d72a44a3d8975d
MD5 8371162207949e493dab5f8c0d58c1f2
BLAKE2b-256 770f2d7daaee89ff9ee095e29f3753ec94027072e0790b7ae5800c0a6b1af162

See more details on using hashes here.

Provenance

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