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.
rpc.start() performs a health-check RPC call to verify the server
started successfully and will raise an error if startup fails
(e.g. if the accounts directory could not be used).
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-serverwithcargo build -p deltachat-rpc-server. - Install tox
pip install -U tox - 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.
Activating current checkout of deltachat-rpc-client and -server for development
Go to root repository directory and run:
$ scripts/make-rpc-testenv.sh
$ source venv/bin/activate
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deltachat_rpc_client-2.44.0.tar.gz.
File metadata
- Download URL: deltachat_rpc_client-2.44.0.tar.gz
- Upload date:
- Size: 57.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
679d904ac6e349dc92424b62d5289d16629202efb9bc36cff4967458c367aaea
|
|
| MD5 |
40878d3fef95a38fe7513884882813fd
|
|
| BLAKE2b-256 |
ba3639e5c867c15ddc20a2fb1ce74c5e9c1449423763b53a34a4402c6a039222
|
Provenance
The following attestation bundles were made for deltachat_rpc_client-2.44.0.tar.gz:
Publisher:
publish-deltachat-rpc-client-pypi.yml on chatmail/core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltachat_rpc_client-2.44.0.tar.gz -
Subject digest:
679d904ac6e349dc92424b62d5289d16629202efb9bc36cff4967458c367aaea - Sigstore transparency entry: 1001488321
- Sigstore integration time:
-
Permalink:
chatmail/core@ffce0dfc9a1d5f7f8e9e140c784883255509a423 -
Branch / Tag:
refs/tags/v2.44.0 - Owner: https://github.com/chatmail
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-deltachat-rpc-client-pypi.yml@ffce0dfc9a1d5f7f8e9e140c784883255509a423 -
Trigger Event:
release
-
Statement type:
File details
Details for the file deltachat_rpc_client-2.44.0-py3-none-any.whl.
File metadata
- Download URL: deltachat_rpc_client-2.44.0-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cecdd65164a335bddeb47b755f1cbd237711b90083cafc60c002be088f7e37f4
|
|
| MD5 |
9ddd7634746c641edf7fd64a4f52d660
|
|
| BLAKE2b-256 |
9777f8d1f2bc877e25d909771d80a04838f17471aa5c6a76aa08bd7cd05880be
|
Provenance
The following attestation bundles were made for deltachat_rpc_client-2.44.0-py3-none-any.whl:
Publisher:
publish-deltachat-rpc-client-pypi.yml on chatmail/core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltachat_rpc_client-2.44.0-py3-none-any.whl -
Subject digest:
cecdd65164a335bddeb47b755f1cbd237711b90083cafc60c002be088f7e37f4 - Sigstore transparency entry: 1001488327
- Sigstore integration time:
-
Permalink:
chatmail/core@ffce0dfc9a1d5f7f8e9e140c784883255509a423 -
Branch / Tag:
refs/tags/v2.44.0 - Owner: https://github.com/chatmail
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-deltachat-rpc-client-pypi.yml@ffce0dfc9a1d5f7f8e9e140c784883255509a423 -
Trigger Event:
release
-
Statement type: