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.139.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68fa0416ed1b1134b805bc89d96f464a1ec2788fecc1c45f1113096803d0a7c8 |
|
MD5 | 25cd32916c06b88cf69641206ee47df4 |
|
BLAKE2b-256 | 77f4273bc53e9352a31bbe218680ac44c36d0610c6484ebd1f83e2a56456ba16 |
Close
Hashes for deltachat_rpc_client-1.139.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b25da3d14a4022c4070305375c8d1f2ed10ab3be1a6c771514ff8b30aa38465e |
|
MD5 | f39f4107fa1ae5a5c5326bc612095248 |
|
BLAKE2b-256 | 0ceb754b29c4f4c51a91dec3529bc7ff9a69c0b5b232da7f69d34b3db20eb5a5 |