Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.
/ pyswitcheo Public archive

pyswitcheo is a simple python client to interact with Switcheo Decentralized Exchange

License

Notifications You must be signed in to change notification settings

ansrivas/pyswitcheo

Repository files navigation

pyswitcheo

Switcheo Decentralized Exchange

License: MIT CircleCI Coverage Documentation Status

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.

About

pyswitcheo is a simple python client to interact with Switcheo Decentralized Exchange

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •