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.148.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46cc50d46c01def6bad2d7afcf76cf59fd7ebc9e82b04fc174792a24d72d99fa |
|
MD5 | 049abb36220d30fa6da0d8771033bedf |
|
BLAKE2b-256 | 3a6fff05c6b5a044569dbca178d70f2d5751b9526211a0e19916a078f2874055 |
Close
Hashes for deltachat_rpc_client-1.148.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a810273fe752b9ed287665856c2343d68932bb86e0de4cee742179d050f82f |
|
MD5 | dd0ac953066ed9467ecc3787db7e172b |
|
BLAKE2b-256 | 035de1f2d94d34e25b9a44c71deb848ecd593c426e201c8bb47a3cc45fd47249 |