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.140.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f8b957859558a1433ce6a0049d6418b19932d5934718df1f477ee2d31cb61d7 |
|
MD5 | d970c09e5af24770c8c871795db7fbf6 |
|
BLAKE2b-256 | adbde4d5b5282a874c958de292034de8669898c9b7f29e8ec5381a3db9f78e91 |
Close
Hashes for deltachat_rpc_client-1.140.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05c1d1ac08a3eea8eeefba22d1a68aad455886bc1beaf532cf61c2898093007d |
|
MD5 | c39f15e69bf5ae1c1b3e02b74ef743cd |
|
BLAKE2b-256 | 92a714c50ad04eb6c37fa6c47a5b7538c90da317d28a558820c96e2ef2058cbc |