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.142.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e339b26b6339c2d930adec85886ca3b69db2ff96acaa079decfe617543e8860 |
|
MD5 | b8d726c8655b5a470ddfc2579c8ac56c |
|
BLAKE2b-256 | f8f020b34a2eeae799c8d1450057d1181e595d69413094bc4a59d920aa2b51c7 |
Close
Hashes for deltachat_rpc_client-1.142.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a2fe059a11f4416f468e16159f60cf15076c650aa74b440ee4aaea7715b734f |
|
MD5 | 2f4642a15b91f798238e4b2345498194 |
|
BLAKE2b-256 | 465827a351ba4b70f03b92e4a97f7b7a0f1a8c14faf6b69e4731fa4dcdc2571b |