Skip to main content

Simple Asynchronous Python Library For API

Project description

Simple Asynchronous Python Library For API

Hello, thanks for choosing my library to work with the API

Aiohttp was used as a web client


pip3 install Pyrandomorg




import asyncio

from pyrandomorg import Pyrandomorg  # import Library

randomorg = Pyrandomorg('< token here>')

async def main():
    print(await randomorg.GenerateIntegers(1, 2, 3))
    print(await randomorg.GenerateStrings(6, 4, "dfsfdsfsdfsdggfdsgdfgdf"))
    print(await randomorg.GenerateIntegerSequences(60, 20, 1, 10))

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


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

Pyrandomorg-0.0.2.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

Pyrandomorg-0.0.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page