Skip to main content

Package to generate random facts

Project description

PyPI version Downloads PyPI license Maintenance GitHub issues

Randfacts is a python library that generates random facts. You can use randfacts.getFact() to return a random fun fact. Disclaimer: Facts are not guaranteed to be true.


import randfacts
x = randfacts.getFact()

will print a random fact like: Penguins can't taste sweet or savory flavors, only sour and salty ones

This package has a filter option to filter out potentially inappropriate facts. The filter is on by default. To disable the filter, you can just set the filter parameter to False.

from randfacts import getFact

If you want to access the list of facts directly, you can just import the safeFacts, unsafeFacts, or allFacts lists from the randfacts module.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for randfacts, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size randfacts-0.4.0-py3-none-any.whl (177.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size randfacts-0.4.0.tar.gz (176.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page