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.

Example:

import randfacts
x = randfacts.getFact()
print(x)

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
print(getFact(False))

Project details


Download files

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

Source Distribution

randfacts-0.2.9.tar.gz (65.3 kB view hashes)

Uploaded Source

Built Distribution

randfacts-0.2.9-py3-none-any.whl (66.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page