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.11.tar.gz (66.2 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.11-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: randfacts-0.2.11.tar.gz
  • Upload date:
  • Size: 66.2 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.11.tar.gz
Algorithm Hash digest
SHA256 9724d8d79e688fad28017bd07478a30d42d8008c3bc74bff0efbf686de9d618d
MD5 b57ce187752c2fb7920322ead8911835
BLAKE2b-256 bb4f3f5b3ef371601b7c4c07cfd6f4c1cddd1d76a2a4d17f4034192effeb89df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: randfacts-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 67.1 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6f134faea13200211f44fb13ed3cb1986cf15fc5df04688b69e83c25a7b28e4a
MD5 e49a91d93addaa3ae5859d97c9150c69
BLAKE2b-256 34f6ab9c121e9c28934d42de7c230bc9a01a4e0c02c19e0047ecbfa08a72e879

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