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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba63479473628e3b77b02fc576814819013164a382e6c0d97272c552f894197e |
|
MD5 | 544e3faec3469bd0f0f726c121aa18bf |
|
BLAKE2b-256 | 4c562c1c98b8b998b58608c8a4f080d69f18d9c3e8ad965fb08ff9cfde23fd51 |
Close
Hashes for deltachat_rpc_client-1.142.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca21254e5247def1dde09930bbc74ac8ea599cfd622bea55d929493ab1a0ba7b |
|
MD5 | 606e7281790ad414b6a3be38de494ef3 |
|
BLAKE2b-256 | cf7e2914025a7809009e5434bde732b699e4cb2d13b59bcac0ef37c87006cdd6 |