a Python wrapper for Nontrinsic
- Python 100%
| .gitignore | ||
| LICENSE | ||
| nontrinsic.py | ||
| README.md | ||
| requirements.txt | ||
Nontrinsic python wrapper
make sure you have all the dependencies installed by running pip install -r requirements.txt
Installation and import
can be installed using git submodule add https://codeberg.org/nontrinsic/python nontrinsic at root directory of your project and imported with
import nontrinsic.nontrinsic
or added with downloading and putting the nontrinsic.py file in your root directory and imported with
import nontrinsic
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
Misc
non.get_status() # returns NontrinsicStatus object