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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b631088edbe949035f8508c4f5ee87f78fd061b6917924271099a0c8f9e6d4b9 |
|
MD5 | 2773fa272534b8dd2b5357a40c92967c |
|
BLAKE2b-256 | 3d0d69b679cd4ea26544aa6607d5b5c6f6a85c96650b763d9ea635bba41cbf4e |
Close
Hashes for deltachat_rpc_client-1.142.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215f741ecd3e76ceb7909c633dca0ed809b8b1ae067855429dbbf8bf812ab02d |
|
MD5 | c8a0181486daf22a8135aec8d3ceb9c0 |
|
BLAKE2b-256 | e14219503b384839d7e56c03ca1be9df153a88dc95460715b30ad2b0647371bd |