Skip to main content

Python client for Delta Chat core JSON-RPC interface

Project description

Delta Chat RPC python client

RPC client connects to standalone Delta Chat RPC server deltachat-rpc-server and provides asynchronous interface to it.

Getting started

To use Delta Chat RPC client, first build a deltachat-rpc-server with cargo build -p deltachat-rpc-server or download a prebuilt release. Install it anywhere in your PATH.

Create a virtual environment if you don't have one already and activate it.

$ python -m venv env
$ . env/bin/activate

Install deltachat-rpc-client from source:

$ cd deltachat-rpc-client
$ pip install .

Testing

  1. Build deltachat-rpc-server with cargo build -p deltachat-rpc-server.
  2. Install tox pip install -U tox
  3. Run CHATMAIL_DOMAIN=nine.testrun.org PATH="../target/debug:$PATH" tox.

Additional arguments to tox are passed to pytest, e.g. tox -- -s does not capture test output.

Using in REPL

Setup a development environment:

$ tox --devenv env
$ . env/bin/activate
$ python
>>> from deltachat_rpc_client import *
>>> rpc = Rpc()
>>> rpc.start()
>>> dc = DeltaChat(rpc)
>>> system_info = dc.get_system_info()
>>> system_info["level"]
'awesome'
>>> rpc.close()

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deltachat_rpc_client-2.1.0.tar.gz (44.5 kB view details)

Uploaded Source

Built Distribution

deltachat_rpc_client-2.1.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file deltachat_rpc_client-2.1.0.tar.gz.

File metadata

  • Download URL: deltachat_rpc_client-2.1.0.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for deltachat_rpc_client-2.1.0.tar.gz
Algorithm Hash digest
SHA256 eefde710980d65b21b57f054d136a2d02af2b8ee39f4766a0578bf6bdf034be9
MD5 a5ef3dec4c145e0d7a29cc8861527460
BLAKE2b-256 95cea64063c5b3cea0c932f10c4d02578651c89ecbfd0666c10a85d987979352

See more details on using hashes here.

Provenance

The following attestation bundles were made for deltachat_rpc_client-2.1.0.tar.gz:

Publisher: publish-deltachat-rpc-client-pypi.yml on chatmail/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deltachat_rpc_client-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deltachat_rpc_client-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b66eb2677a6850fd8d85ba0502f0a1fc2b4d90e884ab783ded1e26602e61d88
MD5 f2e30d00b63d53e884c943414fad163a
BLAKE2b-256 1709afbac3e130aecff41f328b7638b775c7f326db87052803ff374bca13efe6

See more details on using hashes here.

Provenance

The following attestation bundles were made for deltachat_rpc_client-2.1.0-py3-none-any.whl:

Publisher: publish-deltachat-rpc-client-pypi.yml on chatmail/core

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page