Python library to interact with switcheo APIs
Project description
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.
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
pyswitcheo-0.1.1.tar.gz
(21.4 kB
view hashes)
Built Distribution
pyswitcheo-0.1.1-py3-none-any.whl
(35.7 kB
view hashes)
Close
Hashes for pyswitcheo-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f470f5680964b07442fb58e22f10bef782522f7a6bf63b2f32e336e7d16924b0 |
|
MD5 | 9183ad955c4c957fb409b03886fe7a42 |
|
BLAKE2b-256 | d31227f731dbc68d82946af417e391457918d0838831bbc423f5f587f5f1b0a9 |