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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e48892e66c3c9727fc46b1406e5465cdbcaa360595f2f294251bd8dca6cad8e |
|
MD5 | 18e48ece97d014d0ce15467366b43107 |
|
BLAKE2b-256 | 2010eb9bb1269f23009328e3293898a2bf81e9e12c213bea9a65f09ae62ddba0 |
Close
Hashes for deltachat_rpc_client-1.142.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b07683e74165670657eb133a6c15caa5e3633cd37454a81c723152c9ec64a3bd |
|
MD5 | 09680445e1113823ff4ad4f5a6db38ff |
|
BLAKE2b-256 | ee5a8a382ac45681825b71a30c5d6d48cd812e560e7ec648bb04c60a2eeef2ba |