pyswitcheo
pyswitcheo is a simple python client to interact with Switcheo Decentralized Exchange
Current Alpha Version
0.1.1
Installation
pip
$ pip install pyswitcheo
Getting Started
Client example
import json
from http import HTTPStatus
from pyswitcheo.api import SwitcheoApi
if __name__ == '__main__':
client = SwitcheoApi(base_url="https://test-api.switcheo.network")
resp = client.list_contracts()
if resp.status_code == HTTPStatus.OK:
print(json.loads(resp.text.encode("UTF-8")))
More examples are located at examples
Development Installation
This project uses pipenv for python environment management.
Download/Install pipenv like this pip install --user pipenv
Clone the project.
Inside the project directory run pipenv install.
This will create a python virtualenv which can be activated using pipenv shell.
Now install the application in editable mode and you are ready to start development
$ pip install -e .
Test
To run the tests:
make test
Documentation theme is highly inspired by Aiohttp.
Metadata
Release files for pyswitcheo 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyswitcheo-0.1.1.tar.gz | 21.4 kB | Without provenance | Details for pyswitcheo-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyswitcheo-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pyswitcheo-0.1.1-py3-none-any.whl |
Total release size: 57.0 kB
Release files / pyswitcheo-0.1.1.tar.gz
| Download URL | pyswitcheo-0.1.1.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f7468d114b90c9ecdf389bf864ae6150d3ccaafa65b6940f6297e67c298b65e
|
|
BLAKE2b-256 checksum How to use checksums |
d181fd9133355afce8c795f3d270d7f0a0a765df0d32db3af5fd0305bde309f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|
Release files / pyswitcheo-0.1.1-py3-none-any.whl
| Download URL | pyswitcheo-0.1.1-py3-none-any.whl |
|---|---|
| Size | 35.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f470f5680964b07442fb58e22f10bef782522f7a6bf63b2f32e336e7d16924b0
|
|
BLAKE2b-256 checksum How to use checksums |
d31227f731dbc68d82946af417e391457918d0838831bbc423f5f587f5f1b0a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|
Security for pyswitcheo 0.1.1
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.