Skip to main content

A Fortune clone in Python

Project description

Python Fortune

Repository PyPi License

A simple self-contained clone of fortune. Try it out with cowsay!

Install

pip install fortune-python

Usage

CLI

Currently, a fortune command line program is added on install.

fortune

This will select a random fortune. Adding the fortune command line arguments is planned later.

Programmatic

To use this package, import the fortune function and call:

from fortune import fortune

print(fortune())

This will produce a random fortune.

Notes

The fortune data for this package is taken from fortune-mod. Please see the datfiles directory in this repo for their corresponding license.

The offensive fortunes in the 'off' directory are not included in this Python package. However, the fortunes provided in this package are otherwise provided as they were in the original fortune-mod repository. I do not take responsibility for the content of these fortunes.

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

fortune_python-1.1.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

fortune_python-1.1.2-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file fortune_python-1.1.2.tar.gz.

File metadata

  • Download URL: fortune_python-1.1.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fortune_python-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8b72d5b56275d39cba7c06cc7f84f1eda9edeaf5a3cefe0b619c89ecb19cfa11
MD5 69a7489f0461605b0080cc17e760b8bf
BLAKE2b-256 4d08924e7fd31a6e8c278a3d651dd60f62c9257990be0f52550f7e06661b9e16

See more details on using hashes here.

File details

Details for the file fortune_python-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: fortune_python-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fortune_python-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f64f6fb9f4aae1471bd4ce1c65e99582479b6bc43996120c4064f87f08a13bc
MD5 cfdba456d3644c8bcaadbf0bba774b9c
BLAKE2b-256 2be900d33f62194d30954b101fc382df64c62e4593645d15738cd7bc56d2484c

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