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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbed10867f336774b75f7100320e632acc82970377cf760c0f84458aa43907ac |
|
MD5 | 8d88d18e26753be6a0121a37a1d83a5e |
|
BLAKE2b-256 | bb3a849dfd35a0fbd34aea755cf5fd9da1b17930dd11f61c27d991cfd6599b63 |
Close
Hashes for deltachat_rpc_client-1.142.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6a0f86ed979fc9acb210bff6da17a72aec0b6a5d81d267a1ff801db8c938dc |
|
MD5 | 4259258a5a6ef76154ffb37a9a34bc13 |
|
BLAKE2b-256 | 8bc0731d0c771de2ade6134444391b318c08b0eec170889e00109609f64b5676 |