Skip to main content

An unofficial python library for communication with the Atomars and Alterdice exchanges API

Project description

Python3.6

This is an unofficial python API for Atomars and Alterdice exchanges.

Install

Install using pip

$ pip install atom-alter-api

Usage

Note: Many of the functions in the API are async. So you have to use await or ensure_future etc… To use the API in another python program, first import asyncio and the API, then login using your username and password, then call whatever function you would like. Because the API is asyncio, we will need to do this within a class so that we can “await” for functions to complete. Here is a simple example to get the balances:

import asyncio
from atom_alter_API.api import AtomarsAlterdiceAPI

class TestClass():

    def __init__(self):
        self.api = AtomarsAlterdiceAPI(API_login_username, API_login_password)

    async def run(self):
        await self.api.login()
        balances = await self.api.get_balances()
        print(balances)

if __name__ == "__main__":

    testClass = TestClass()
    asyncio.ensure_future(testClass.run())

    loop = asyncio.get_event_loop()
    loop.run_forever()
    loop.close()

See the docs folder for more info. Also see tests for some more code examples.

Install for development

  1. Clone this repo

    $ cd ~/
    $ git clone https://github.com/hyperevo/Atomars-alterdice-API
  2. Install using pip

    $ cd Atomars-alterdice-API
    $ pip3 install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atom_alter_api-0.1.4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atom_alter_api-0.1.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file atom_alter_api-0.1.4.tar.gz.

File metadata

  • Download URL: atom_alter_api-0.1.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for atom_alter_api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f11b7c4c1c1c424805f9afc2fb63cb0311fe35ad9fd3c2165cf9a8f49d874124
MD5 90070336b0cb6af9218a8c05f87032ea
BLAKE2b-256 97e307dc31dbac8481cc244aac07986f70013d097500a6cd16eaf635ba9ece77

See more details on using hashes here.

File details

Details for the file atom_alter_api-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: atom_alter_api-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for atom_alter_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1869cb4a1e1f59326083641349053c11f53961c29015bc0dea6087fe5f0f411d
MD5 fcf9d04292bde9ed6d292b7bb95ae0ce
BLAKE2b-256 737c55e3a526d1ec0115888508aaffe6f260003ea03e0e29f6f12a9efd587dd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page