Skip to main content

Mobius Python API Client

Version Python Versions

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

Metadata

Release files for pymobius 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymobius 1.0.1
File Size Uploaded Provenance Actions
pymobius-1.0.1.tar.gz 4.2 kB Without provenance Details for pymobius-1.0.1.tar.gz

Release files / pymobius-1.0.1.tar.gz

Download URL pymobius-1.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
285a52ebd12acec7670ef57c4327e148cbbcbb61a0451be3a255f7964fb5dd17
BLAKE2b-256 checksum
How to use checksums
c5c24623d05157d2c1e97788b88db4630dd80f674b6c87709bbfbb5920144070
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pymobius 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page