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. 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-1.137.4.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deltachat_rpc_client-1.137.4-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deltachat_rpc_client-1.137.4.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for deltachat_rpc_client-1.137.4.tar.gz
Algorithm Hash digest
SHA256 ff839f0904ed0520c548840b68d9d6c7c192264dc33788489853fd8bac28b015
MD5 43ed9c6ed2df7a7e69e2f521ddf8d50b
BLAKE2b-256 f0604fe5869e17b2999b01c4a8bcd22299d8e05e196d15d2f7c81453049250b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltachat_rpc_client-1.137.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3f3029314d8adb4759353af098fdb1c18d19845fb46277e006e8a572f59366c5
MD5 af6abfefe8df181dc441267ba8247185
BLAKE2b-256 03300cca278aabc46ad7cff5e974dce2ab930b2d1e417ad2f8ca8f7e7ae31756

See more details on using hashes here.

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