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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Pyrandomorg-0.0.2.tar.gz.
File metadata
- Download URL: Pyrandomorg-0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.5.4.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6263934c70b3cd7141d26b350e276fb75add2685058845ab414abb10c986cf54
|
|
| MD5 |
69a1898a8e7695ee6cceca40f239cb14
|
|
| BLAKE2b-256 |
42a002ac64c1e477fd6888e10155e94793a98943fd122371a1ee48a593829129
|
File details
Details for the file Pyrandomorg-0.0.2-py3-none-any.whl.
File metadata
- Download URL: Pyrandomorg-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.5.4.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3ad011825853688cf5f9faa3bd556d0e2bc3e9a36de6d67e6a38d0f3e791250
|
|
| MD5 |
1d8366e980a9205091bf642c43f5824a
|
|
| BLAKE2b-256 |
552cdfa9c0bd835f130c85a9ea228a83cab222696da2a8d6fbd6ac4ec4b04311
|