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
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for Pyrandomorg-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ad011825853688cf5f9faa3bd556d0e2bc3e9a36de6d67e6a38d0f3e791250 |
|
MD5 | 1d8366e980a9205091bf642c43f5824a |
|
BLAKE2b-256 | 552cdfa9c0bd835f130c85a9ea228a83cab222696da2a8d6fbd6ac4ec4b04311 |