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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c24a1b5f09ffb4514bcb71cc5306bcbaf307fc230a74ab91c2b3b020fb2970e |
|
MD5 | 9669ad9456cf7b48ab06726a649ad800 |
|
BLAKE2b-256 | f4f9ed8ba26f3f442d84aa51bf1cf0631611f50e546bf53b69bd22907b9ac4af |
Close
Hashes for deltachat_rpc_client-1.148.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de414df994170dedc41f49a7cd5c49ed727e3abbdab477a0c5fae385897a2ca6 |
|
MD5 | 8ccb1723455939869ef3002379c031e9 |
|
BLAKE2b-256 | 859b65ee71ae2097913e96180b7ca749037de61adc7d0980127e2a3e5ce01c0f |