Skip to main content

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.6.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nontrinsic-1.1.6-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file nontrinsic-1.1.6.tar.gz.

File metadata

  • Download URL: nontrinsic-1.1.6.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nontrinsic-1.1.6.tar.gz
Algorithm Hash digest
SHA256 fb39edc40e25beab1e1fd50987d7c460b97660915c7cf5abf426b9e9022dc20c
MD5 f4f75de4b1c0c5d1401336d4e0e313a8
BLAKE2b-256 a4e3d54b5fabb6b7f5a18cc8c4baa1ef4954e2a76a5395dfe3d5a46081ec2053

See more details on using hashes here.

File details

Details for the file nontrinsic-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: nontrinsic-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nontrinsic-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 736699f8b483891e7273af50ebc07d66f9263dce0aa1dfd66eb2df3ad1f417e2
MD5 beefecd1e5c65fc26d9beededc137edf
BLAKE2b-256 fb387645711326c58cb5f8635d0193cd03bc61d765aaa77e9b659f925e146825

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.12

2 files

1.1.11

2 files

1.1.10

2 files

1.1.9.post1

2 files

1.1.9

2 files

1.1.8

2 files

1.1.7

2 files

This release

1.1.6 This release

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3.post1

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page