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.140.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4c6534cb26ff9e97cf899c6a600cee0bb2195c719946b435f602b7e5abfe3ee |
|
MD5 | 2bd9dcfdb46193369c3818d9fe552a37 |
|
BLAKE2b-256 | 31f97db94933e28b25258a8649d7d9f4883ff0515e5bdb783d36a7ffcdca2f54 |
Close
Hashes for deltachat_rpc_client-1.140.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f90196e1d719efb3f3ac1c1b4a92102efdd2180647f75344d56b22e3bd2fd986 |
|
MD5 | eda9260935f795e43504045f0ffbe701 |
|
BLAKE2b-256 | 1ae531f1673c8df59c31a56e092c43204078ae11889db78031508289bab11dbb |