Skip to main content

VirtualCrypto Python SDK

Project description

VirtualCrypto.py

https://img.shields.io/pypi/v/virtualcrypto.svg https://img.shields.io/travis/virtualCrypto-discord/virtualcrypto.svg Documentation Status

VirtualCrypto Python SDK

Usage

Normal Usage:

from virtualcrypto import VirtualCryptoClient, Scope
client = VirtualCryptoClient(
    client_id="956fcdd2-84ee-4b02-8766-8aec7dd12b05",
    client_secret="akOu2Wna3SYkVksVgaQWAEDwLmfHW1-ThIS5WQwDCfU",
    scopes=[Scope.Pay, Scope.Claim]
)
print(client.get_currency_by_unit("v"))
# Currency(unit='v', guild=754191887203696731, name='vcoin', pool_amount=5000, total_amount=1000000)

For asyncio:

from virtualcrypto import Scope, AsyncVirtualCryptoClient
import asyncio
client = AsyncVirtualCryptoClient(
    client_id="956fcdd2-84ee-4b02-8766-8aec7dd12b05",
    client_secret="akOu2Wna3SYkVksVgaQWAEDwLmfHW1-ThIS5WQwDCfU",
    scopes=[Scope.Pay, Scope.Claim]
)

async def main():
    await client.start()
    print(await client.get_currency_by_unit("v"))
    await client.close()

asyncio.get_event_loop().run_until_complete(main())

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.0.1 (2021-02-03)

  • First release on PyPI.

0.1.0 (2021-03-3)

  • Create VirtualCrypto Client

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

virtualcrypto-0.1.3.tar.gz (13.1 kB view hashes)

Uploaded Source

Built Distribution

virtualcrypto-0.1.3-py2.py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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