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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77c37d4e39c4d6c469a509ea27ed79656d0434e56b3b4aa7a2a5b745437d478 |
|
MD5 | 6e7c6292a2dd63899418f30b75431ce7 |
|
BLAKE2b-256 | 369bc72f201372e8acec8bca908ab8455879f9e9cb81a365b97696aab539bc02 |
Close
Hashes for deltachat_rpc_client-1.142.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ba9503c72600aa6f104d7e61eda45e2731d03b79330cca4dcb0371bf5d641ae |
|
MD5 | f9e31f188bdbe1cc6af7d763ef6af970 |
|
BLAKE2b-256 | 9aa6d48d800c43b9fec15b122d502a5b8a3c8cd2817884fa9baccbacb7913ddf |