Atmos-rng is a randomness generator based off of atmospheric noise instead of math to generate numbers, make choices, and shuffle lists. It does what you'd think it does, and can be used as an alternative to "random" and Maaayyybee "secrets" if you want something abit more special.
- Special credits to random.org.
Updates
09/05/23
choice()can now work with strings.shuffle()now has the ability to shuffle strings.
Installation
[Directly from here/this repo.]
[therealOri ~]$ pip install git+https://github.com/therealOri/atmos-rng
or
[From Pypi.]
[therealOri ~]$ pip install atmos-rng
Ussage and Info
import atmos
if __name__ == '__main__':
atmos.clear() # clears terminal/cmd window.
number = atmos.randint(0, 10, 1)
print(number)
stuff = [69, True, False, 420, 'Apples', 'Bananas', 'Cats', 'Dogs']
choice = atmos.choice(stuff)
print(choice)
scrambled = atmos.shuffle(stuff)
print(scrambled)
random_bytes = atmos.gen_bytes(32)
print(f"{random_bytes}\n{len(random_bytes)}")
random_bits = atmos.gen_bits(25)
print(random_bits)
urlsafe_bytes = atmos.bytes_urlsafe(20)
print(urlsafe_bytes)
You can find more information here: Documentation.
Support | Buy me a coffee <3
Donate to me here:
- Don't have Cashapp? Sign Up
Metadata
Release files for atmos-rng 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atmos-rng-1.0.4.tar.gz | 15.6 kB | Without provenance | Details for atmos-rng-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atmos_rng-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for atmos_rng-1.0.4-py3-none-any.whl |
Total release size: 31.5 kB
Release files / atmos-rng-1.0.4.tar.gz
| Download URL | atmos-rng-1.0.4.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ae2dfdd748fb2dbbb8b82e818e5bb70d377bd82502ec424d8fa158c0a38a0cb
|
|
BLAKE2b-256 checksum How to use checksums |
4dc770dbcc04e98c97962aa267da7c15d68d9547056ab2db27eb86ccaa8e1547
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / atmos_rng-1.0.4-py3-none-any.whl
| Download URL | atmos_rng-1.0.4-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dd74c4fa96ca98ebbd975ff3142b673542436c0fe9b02762a58516dba43e46a
|
|
BLAKE2b-256 checksum How to use checksums |
9d671e25d9071c5b724f2624b43d617ca840dbfa25beef71353522e0a775bfda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for atmos-rng 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.