a Python wrapper for Nontrinsic
Find a file
2026-03-26 19:35:32 +00:00
.gitignore first working version 2026-01-24 22:08:44 +03:00
LICENSE Initial commit 2026-01-24 18:29:04 +01:00
nontrinsic.py one more iso code 2026-03-26 19:35:32 +00:00
README.md a very minor spelling mistake 2026-03-24 18:51:55 +00:00
requirements.txt first working version 2026-01-24 22:08:44 +03:00

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