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
- Build
deltachat-rpc-server
withcargo build -p deltachat-rpc-server
. - 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
Built Distribution
Close
Hashes for deltachat_rpc_client-1.141.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91518c97a1aa149d66d60906a4396a7cbc51c04f6d501cc29c4caa8176162070 |
|
MD5 | f19c8c234c83494bdf8c858fd0bb093d |
|
BLAKE2b-256 | 7e10aaea5a5b84ab8b6f201f20ddeb813b281a6f6439f8e10493f670c60d43a9 |
Close
Hashes for deltachat_rpc_client-1.141.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9bbe83f348540faf0af8b38baabae25297ec4e888b45d18f0cad9356b9f0ff |
|
MD5 | c068463cff1992a4badfe8248b394ba8 |
|
BLAKE2b-256 | bb38022e73ca6d9645faee085e3d3c80d4efb2018dfb207f58ad6280f9475c05 |