Skip to main content

marblex.py

An Asynchronous Marblex API Wrapper for Python

Installation

Windows:

$ pip install -U marblex.py

Linux/MacOS:

$ python3 -m pip install -U marblex.py

Asynchronous Example:

import asyncio
from marblex import Marblex

mbx = Marblex()

async def main():

    async with mbx:
        nkt = await mbx.get_territe_token()
        nka = await mbx.get_asterite_token()

        print(f"NKT : {nkt.USD}$, Percent: {nkt.percent}")
        print(f"NKA : {nka.USD}$, Percent: {nka.percent}")

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Synchronous Example:

from marblex import MarblexSync

mbx = MarblexSync()

nkt = mbx.get_territe_token()
nka = mbx.get_asterite_token()
itu = mbx.get_inetrium_token()

print(f"NKT : {nkt.USD}$, Percent: {nkt.percent}")
print(f"NKA : {nka.USD}$, Percent: {nka.percent}")
print(f"ITU : {itu.USD}$, Percent: {itu.percent}")

>>> NKT : 1.47$, Percent: -4.22 %
>>> NKA : 3.56$, Percent: +1.61 %
>>> ITU : 0.13$, Percent: -0.59 %

License

MIT

inspired by

Metadata

Release files for marblex.py 1.4.0

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

Source distribution (sdist)

Source distribution for marblex.py 1.4.0
File Size Uploaded Provenance Actions
marblex.py-1.4.0.tar.gz 8.3 kB Without provenance Details for marblex.py-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for marblex.py 1.4.0
File Interpreter ABI Platform Actions
marblex.py-1.4.0-py3-none-any.whl Python 3 none any Details for marblex.py-1.4.0-py3-none-any.whl

Total release size: 16.5 kB

Release files / marblex.py-1.4.0.tar.gz

Download URL marblex.py-1.4.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1a265a9ca163035684873980b2519396c0c78c49988f8b89eb91e57ddb5bd607
BLAKE2b-256 checksum
How to use checksums
08feb804966512f849b96dfb21e9ded9489dcaab14fe5b50f458a7d1184fcb3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / marblex.py-1.4.0-py3-none-any.whl

Download URL marblex.py-1.4.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4acc09fdcf30efc0fcf0ef08681c5a544adddd265f371c069d1b1ab57f05f0c6
BLAKE2b-256 checksum
How to use checksums
2278b666c92de7dcc392a70ca0ac8b1d5d57e38f591bdfb8dcb1083c5ff2b1f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for marblex.py 1.4.0

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.

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