Skip to main content

Simple Asynchronous Python Library For Random.org API

Project description

Simple Asynchronous Python Library For Random.org API

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

Aiohttp was used as a web client

INSTALLATION

pip3 install Pyrandomorg

REQUIREMENTS

python<=3.8
aiohttp<=3.7.3

EXAMPLES

import asyncio

from pyrandomorg import Pyrandomorg  # import Library

randomorg = Pyrandomorg('<Random.org 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())

MORE DETAILS

Random.org API

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 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