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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb98aea9830ed74db2841b661ce6484fed64c7804a489023cf39c59701f33b2f |
|
MD5 | 1cf9712ae906180fcbfd0af5c3e5519e |
|
BLAKE2b-256 | 34abfbf445394de316d972381373ef3bfd8fb295e34f64eee43a04bf1ee8a610 |
Close
Hashes for deltachat_rpc_client-1.148.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eba48e94abef6b83372566b7c3c6c420b1f0dba1106fedff8edf2917386f5ec5 |
|
MD5 | 8d92c1af1e9354cde0622b87228f4e56 |
|
BLAKE2b-256 | d51cad6d92116d667201ebff716439d605ed5628f78e575101af84fceea1facb |