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.138.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577d9af8f7462e48458836ea987904238ab40af151ab498ce731f7e7c95370b3 |
|
MD5 | 7350b2a8d8275bd62dbc9633351a7526 |
|
BLAKE2b-256 | a4e1dbd0f437f75988418cbca4d8e2ea58d346fec4925c109ad7359b1db4d3b6 |
Close
Hashes for deltachat_rpc_client-1.138.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d533f0246361b710247cae926669f12c27fb39709df9f435b77ac9e104edd60c |
|
MD5 | 8b730be7433ebbb785534b86aab0f5b5 |
|
BLAKE2b-256 | 54a796db3626d6dae6e12f2fce051905504cf4ec9df93763ee363c0574129981 |