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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file randfacts-0.2.9.tar.gz.

File metadata

  • Download URL: randfacts-0.2.9.tar.gz
  • Upload date:
  • Size: 65.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for randfacts-0.2.9.tar.gz
Algorithm Hash digest
SHA256 ec6f288666b5f8467ce4a289ea2654ee83b183ed2788b7f460311a5bbe2ef55b
MD5 096aeb6a738a55e85f541fecb5fa32c4
BLAKE2b-256 abc7c1018cc7a7e0e7b69808c633ce562c91e65ed39559e87a22892c36f68428

See more details on using hashes here.

File details

Details for the file randfacts-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: randfacts-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 66.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for randfacts-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 80edc139b2a8a2cfbba037b1b206ee11417372fc5f6c3a480101efaef24cdc5a
MD5 25be3bf557ff467e1178dfe19a584dc7
BLAKE2b-256 534d1c85744a643bca47952a9ef054a28d3b68a2797b8de9d1a8eece48253621

See more details on using hashes here.

Supported by

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