Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Mobius Python API Client

Project Description

The Mobius Python Client provides simple access to the Mobius API for applications written on Python

Installation

Install the package with pip:

$ pip install pymobius

Usage

For importing library use:

from pymobius import Mobius

The library need to be configured with your API secret key which you can create in Mobius DApp Store

mobius = Mobius(api_key='your_api_key')

Examples

data = mobius.app_store.balance(app_uid='f9e5e943', email='mail@example.com')

if data['num_credits'] > 0:
    mobius.app_store.use(app_uid='f9e5e943', email='mail@example.com', num_credits=1)

Methods

  • mobius.app_store.balance(app_uid, email)

    Get balance of credits for email.

  • mobius.app_store.use(app_uid, email, num_credits)

    Use numCredits from user with email.

  • mobius.tokens.register(token_type, name, symbol, address)

    Register a token.

  • mobius.tokens.balance(token_uid, address)

    Query the number of tokens specified by the token.

  • mobius.tokens.create_address(token_uid, managed)

    Create an address for the token.

  • mobius.tokens.register_address(token_uid, address)

    Register an address for the token.

  • mobius.tokens.transfer_managed(token_address_uid, address_to, num_tokens)

    Transfer tokens from a Mobius managed address to a specified address.

  • mobius.tokens.transfer_info(token_address_transfer_uid)

    Get the status and transaction hash of a Mobius managed token transfer.

More information

See the REST API docs

Release History

Release History

This version
History Node

1.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pymobius-1.0.1.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Nov 2, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting