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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b48889eaf2a6f2d0a3c2c3fe650f0c6168b47b811639444e74ebac50b78ef667 |
|
MD5 | 1e44c133c334b9988781b5a744da9be5 |
|
BLAKE2b-256 | 97bd5f1b056bb61644fae8c788b1d1bee39da9e2fd21384ca30bed69d44ea972 |
Close
Hashes for deltachat_rpc_client-1.148.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3c0f23c29df353a19f96582127983d044260b509aebef8ba1c894a6d8e857cd |
|
MD5 | 5bd6d3dedc8d89de3af7a2c3ecb8844b |
|
BLAKE2b-256 | 2041ff80e9cc3fd98483ff096401ec354d03d88f15a81b990803fccfad2e4229 |