Nontrinsic Python wrapper
docs will be here when i uneep
Usage
Getting nonsense
from nontrinsic import Nontrinsic
non = Nontrinsic()
non.get_random_nonsense() # returns one random nonsense as Nonsense object
non.get_nonsense(uuid) # returns Nonsense object with uuid UUID
non.get_nonsense_image(uuid) # returns NonsensePartialFile with image of nonsense with uuid UUID
non.get_all_nonsense(query, format, before, after) #used to return all nonsenses in NonsenseList object with filters such as query, before and after, (all optional), format can be JSON, CSV or TXT, by default its JSON, CSV and TXT are returned as NonsenseFile objects
Getting Nontrinsic status
non.status # returns NontrinsicStatus object
non.get_status() # returns NontrinsicStatus object
non.update_status() # updates non.status and also returns NontrinsicStatus object
Caching the database
non = Nontrinsic(has_cache) # makes Nontrinsic have the database in memory, if something goes wrong, it will fetch nonsense from memory instead of the nontrinsic server
non.cache # you can use all the same methods as regular nontrinsic but its all in memory, also some methods are not implemented
non.cache_nontrinsic() # returns CachedNontrinsic object
non.update_cache() # update non.cache and returns CachedNontrinsic object
Miscellaneous
non.report_nonsense(uuid, reason, details) # reports nonsense with uuid UUID with reason and details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nontrinsic-1.1.5.tar.gz
(7.8 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 nontrinsic-1.1.5.tar.gz.
File metadata
- Download URL: nontrinsic-1.1.5.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e2e505a74bcedc6d196bf84b244bc7ebcb3ec2dedb38a554206444436e0a92c
|
|
| MD5 |
3c47c195b901216ca51c76ef1a808f5c
|
|
| BLAKE2b-256 |
10110413fbfa6781849080fdc43a7a5e3a4a54c7962677db03d38b7d524db296
|
File details
Details for the file nontrinsic-1.1.5-py3-none-any.whl.
File metadata
- Download URL: nontrinsic-1.1.5-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f8a11a6620d795f45a2a1a82211bb7b991da308a5dccddf3002fe43a5014d7
|
|
| MD5 |
e9481a854f6c7cca977cc586f88c3c79
|
|
| BLAKE2b-256 |
cbf4a420e38dee6ea73498124fc5dacec57b29d243dd98d4965d85faab9e436b
|