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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50024ba9f57241914486d7799a18d8a280a5d1e1cea02c14c7c4ef1feec9a29f |
|
MD5 | b0c8f49e7a113c6530d7463beeeb4048 |
|
BLAKE2b-256 | a999c73b54c7a088202b4d14e5a57df64524a310f0ede6c663c41bd4e768f14f |
Close
Hashes for deltachat_rpc_client-1.142.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c65b407aa33372532e829735ae54a2e185410ccd6f6d558e064a5ed0bb7ad7 |
|
MD5 | 131a549a682a03bb9a1bba01c4f1384c |
|
BLAKE2b-256 | 196667a497de67dbf3b3e7b620a63b56f30d2927bdb9fb10ae29b41beb538432 |