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.148.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f5c4582ef2df5e1c14cac68dcc9217c67bd79b6c373e8e6702744dc3fc6745 |
|
MD5 | f00ce45a1ed1eff2f927526fde3b92d2 |
|
BLAKE2b-256 | 941b388bb09f43f937e55282b90f0e20fbdf04b922836d12dfcd5e5daf9777be |
Close
Hashes for deltachat_rpc_client-1.148.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59ebd4c37c793a8b77471d819baa40ce17933b19cfd78627f422ce867a6a3d32 |
|
MD5 | 518b2a636898e35a5a4b653c4146b928 |
|
BLAKE2b-256 | 7183bfd86f6a8d4e7a1f1b08eb20f37ee95c5bf3e45a6434f1303b94853654f2 |