This release is a pre-release and may not be stable for production use.
dsm-app-client (Python)
Plug your app into DSM: a client for a dsm-app-host's local ingress, which is your app's own DSM account. Python 3.10+, standard library plus protobuf.
Its protobuf types (dsm_app_client/generated/dsm_app_pb2.py) are committed, so it installs with no protoc. Install it into your app's virtual environment from PyPI, at the version of the dsm-app-host you run:
python3 -m venv .venv && . .venv/bin/activate
pip install dsm-app-client==0.1.1b5
From a release, install.sh also puts its wheel in ~/.local/share/dsm/clients, with the examples beside it, for a machine that has run it:
python3 -m venv .venv && . .venv/bin/activate
pip install ~/.local/share/dsm/clients/dsm_app_client-0.1.1b5-py3-none-any.whl
python3 ~/.local/share/dsm/examples/account_status.py
From the repo root, pip install -e clients/python instead, and the examples are in clients/python/examples: account_status.py (your account at a glance) and first_payment.py (a connect code, a wallet, 0.05 ERA received). After a change to proto/dsm_app.proto, make client-types regenerates the types; CI fails when they differ (ci/client_types_check.sh).
AppAccount:offer,connections,request,result,wait;issue,give;open_vault,vaults,close_vault;decide,return_contribution;owned,owns,identity,fund; andingress.activity.WalletAccount:preview,approve,connections,sync,pending,respond,log,disconnect.grant.*builds what an offer asks for;ask.*builds requests (send,owns,accept,contacts,login,sign,price,trade,match.*,duel.*,state.write,contribution.*).- Objects are named by symbol (
"ERA","SWORD") or id; amounts in the object's own units ("0.10"). Results are plain dataclasses:outcome,fact,owns,signed, with the wire's message asraw.pbis every generated message. local_app()andlocal_wallet("wallet" | "wallet2")find the accountsdsm-app upanddsm-dev-wallet up(or, from the repo,make app-devandmake dev-wallet) run. Elsewhere,AppAccount(Ingress.from_secret_file(url, secret_file)).
The guide: https://deterministicstatemachine.github.io/dsm/, and on one page, BUILDING_APPS.md.
Metadata
Release files for dsm-app-client 0.1.1b5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dsm_app_client-0.1.1b5-py3-none-any.whl | Python 3 | none | any | Details for dsm_app_client-0.1.1b5-py3-none-any.whl |
Release files / dsm_app_client-0.1.1b5-py3-none-any.whl
| Download URL | dsm_app_client-0.1.1b5-py3-none-any.whl |
|---|---|
| Size | 77.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a38b105dfe6d282ab83c8539eb4525a07c357d8f2ec36b8a63cc69f56ce293a6
|
|
BLAKE2b-256 checksum How to use checksums |
c68747edc1996de455d223241bc9c8b20d6581114490e53feb8e91be6a0fb21d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for dsm-app-client 0.1.1b5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.