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

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

File metadata

  • Download URL: xmtp_bindings-0.1.2.tar.gz
  • Upload date:
  • Size: 66.3 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.2.tar.gz
Algorithm Hash digest
SHA256 15b2abedda09364f50dbe36f341db8bcc180383ffc0b5e8aec8557da9f324077
MD5 5e08451053266257095c3e9e18f02d92
BLAKE2b-256 3a03eff2089e45ce2428bb3bda68662d1a7c12a11e1562890c25e4a14377f718

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 648d3ca6e741f30d1f7884e507386f01e442e7a035341ac889a39a4f7b09abca
MD5 dfc8e80875889548f97d9f9dbaba681b
BLAKE2b-256 65ec2194411f92745cc07029ae5b2488a68250d844db5ab33382712a65968346

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 590c2d2ea20eab66688c789d17631bf92c9ca3e5078e1ea936d7badefee155f0
MD5 c7543602d5790aa18439817019f3699b
BLAKE2b-256 9a43643e88d335061bdedd61e4fa0fec3f1cf0def7d779c12215e33d6fce0392

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5141dc562f56fba5f1c4301ac924f69baa638bec3b837c15e64eea3dc5ad6bac
MD5 6778c1dc45b702cf3bbdf6f95c711988
BLAKE2b-256 59e32f27f9c238eaddbc480159738525cdbd30197b749b84969de2ce51206608

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57f1dc10bd770ce4de047e963f2288aaf58081430c4d4395df1d307752a7b20a
MD5 870091d8e9a146c18d94b7a78f1f65ea
BLAKE2b-256 ddc59b0ee799dd221243d7401f15ade111c91da2f348a3193f28de405f892b19

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0485cf26849ebe9e226dcaccd31eae8a8e2c4f46e99c56d200ffd15f97ff0005
MD5 f97806638fda3bf79f7cf0d56e69deee
BLAKE2b-256 9da71ccf0e2bf7db7237031f5b416d5157ea0a62bf99d2d4420ba03e70eb5ae1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fc6757391d35371f0cc287b37ae10e02ba4388db63b28f55cee6e37e8e16ee1
MD5 e8c7261bb60dc6981d17ae7f195156ef
BLAKE2b-256 a98fb1227894f72af34eb9b7a07b0d74a9f7b472bfd922c36f433175ef390a5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 17cc32337022366e3ce13b0f3c2898ae8945c7ce076212a7f4fb5d140e9b570a
MD5 79d61688ec77e716e19c026c1b4fc679
BLAKE2b-256 721e2d79c740b99ebaee0813b1bc0c579c93dcb076ee02b5aedb91331488aceb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8ab89f67c27c84faedd5f77be2498fb15b440058d4df97d1c404a4d2f6481e3
MD5 3f21496354a55b19c69b504ac6b4b49a
BLAKE2b-256 9eec50ff09b05d60a56a66dd1cdd6b5d933b484db609e77bedd696a64e8c8850

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f79d7342652de58ce5e934db95e0730db08ea6769cbdb728179ecd58fa24afe0
MD5 8b66a5c7a074a3e50ce642678ad76cc0
BLAKE2b-256 5fc0e046638346eb420cfef98641a470f39469e6712c244ce5c4586d4502a0cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2480ca7018d56040ef64c17f32339b9791357656e5fe2f21ff8c870fcdd40a6c
MD5 fc6eea6d9ea566bdc5da7c574642a0f3
BLAKE2b-256 7f86c1448596d01e9339d8d2e488ebdec1ee5fc6d90e3807e1fd071a1d0fe5e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb04c6f05351369b7c69f268649647fb86a77f05c77533d86aa1acca59259a4d
MD5 97c06d951bc0c74c96c18915127b961d
BLAKE2b-256 affed7bce40b5f71058e1b60e4cdfa21f03530d4baad15dece466df069efd781

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xmtp_bindings-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f2614a16618c6b5f7f6d6af2fbc024f1ae99ec058f01b5f70844363b510c43d
MD5 312b0080c64d81c29b88be9dd6f13ad6
BLAKE2b-256 f84d3ce61972592b9ce8e532dfabc7e240f1565919ae6ef4f6167cb7a16cd820

See more details on using hashes here.

Provenance

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