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.137.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30aa9b8521cf3e62508f6a5d026c8ae34b6e5ac369666eae9cfbfe8ffe0a41bc |
|
MD5 | 9904d55061ebc9a910d7ba7457a12a30 |
|
BLAKE2b-256 | d1418dfcdb9954142a20939559cd2dc4852949e0a63caaef0a8d97d5e1988a55 |
Close
Hashes for deltachat_rpc_client-1.137.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da3a3a59bd6c29da703b8175f24d17ce32d54de6b24666e9deb0b034beef484b |
|
MD5 | 2f60d92962532f0e778bc1a9af7a514c |
|
BLAKE2b-256 | c9539190c0a5c367cf29489e06f3584aa159c5d6b789aff3dfe2004c34fc82a6 |