Package to generate random facts
Project description
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))
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
Release history Release notifications | RSS feed
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.3.1.tar.gz
(67.1 kB
view hashes)
Built Distribution
randfacts-0.3.1-py3-none-any.whl
(67.2 kB
view hashes)
Close
Hashes for randfacts-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af363e5f7169289afbf6e4b1362f01101dc4546c07a1f1d8e1d815396d347ab8 |
|
MD5 | 2efda26161077ade3c14f13ba78ce382 |
|
BLAKE2b-256 | f43916f35791f20a053d71ba065ef7a8337b76e130174a3054f0708b799758b9 |