fortune-python


Namefortune-python JSON
Version 1.1.2 PyPI version JSON
download
home_pageNone
SummaryA Fortune clone in Python
upload_time2025-09-03 01:46:57
maintainerNone
docs_urlNone
authorJames Finnie-Ansley
requires_python>=3.8
licenseNone
keywords fortune
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Fortune

[![Repository](https://img.shields.io/badge/jamesansley%2Ffortune-102335?logo=codeberg&labelColor=07121A)](https://codeberg.org/jamesansley/fortune)
[![PyPi](https://img.shields.io/pypi/v/fortune-python?label=PyPi&labelColor=%23ffd343&color=%230073b7)](https://pypi.org/project/fortune-python/)
[![License](https://img.shields.io/badge/Apache--2.0-002d00?label=license)](https://codeberg.org/jamesansley/fortune/src/branch/main/LICENSE)

A simple self-contained clone of fortune. Try it out
with [cowsay](https://codeberg.org/jamesansley/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:

```python
from fortune import fortune

print(fortune())
```

This will produce a random fortune.

# Notes

The fortune data for this package is taken
from [fortune-mod](https://github.com/shlomif/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](https://github.com/shlomif/fortune-mod) repository.
I do not take responsibility for the content of these fortunes.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fortune-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "fortune",
    "author": "James Finnie-Ansley",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/4d/08/924e7fd31a6e8c278a3d651dd60f62c9257990be0f52550f7e06661b9e16/fortune_python-1.1.2.tar.gz",
    "platform": null,
    "description": "# Python Fortune\n\n[![Repository](https://img.shields.io/badge/jamesansley%2Ffortune-102335?logo=codeberg&labelColor=07121A)](https://codeberg.org/jamesansley/fortune)\n[![PyPi](https://img.shields.io/pypi/v/fortune-python?label=PyPi&labelColor=%23ffd343&color=%230073b7)](https://pypi.org/project/fortune-python/)\n[![License](https://img.shields.io/badge/Apache--2.0-002d00?label=license)](https://codeberg.org/jamesansley/fortune/src/branch/main/LICENSE)\n\nA simple self-contained clone of fortune. Try it out\nwith [cowsay](https://codeberg.org/jamesansley/cowsay)!\n\n## Install\n\n    pip install fortune-python\n\n## Usage\n\n### CLI\n\nCurrently, a `fortune` command line program is added on install.\n\n```\nfortune\n```\n\nThis will select a random fortune. Adding the fortune command line arguments\nis planned later.\n\n### Programmatic\n\nTo use this package, import the `fortune` function and call:\n\n```python\nfrom fortune import fortune\n\nprint(fortune())\n```\n\nThis will produce a random fortune.\n\n# Notes\n\nThe fortune data for this package is taken\nfrom [fortune-mod](https://github.com/shlomif/fortune-mod). Please see the\ndatfiles directory in this repo for their corresponding license.\n\nThe offensive fortunes in the 'off' directory are not included in this Python\npackage. However, the fortunes provided in this package are otherwise provided\nas they were in the\noriginal [fortune-mod](https://github.com/shlomif/fortune-mod) repository.\nI do not take responsibility for the content of these fortunes.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Fortune clone in Python",
    "version": "1.1.2",
    "project_urls": {
        "repository": "https://codeberg.org/jamesansley/fortune"
    },
    "split_keywords": [
        "fortune"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2be900d33f62194d30954b101fc382df64c62e4593645d15738cd7bc56d2484c",
                "md5": "cfdba456d3644c8bcaadbf0bba774b9c",
                "sha256": "5f64f6fb9f4aae1471bd4ce1c65e99582479b6bc43996120c4064f87f08a13bc"
            },
            "downloads": -1,
            "filename": "fortune_python-1.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cfdba456d3644c8bcaadbf0bba774b9c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1118538,
            "upload_time": "2025-09-03T01:46:55",
            "upload_time_iso_8601": "2025-09-03T01:46:55.894184Z",
            "url": "https://files.pythonhosted.org/packages/2b/e9/00d33f62194d30954b101fc382df64c62e4593645d15738cd7bc56d2484c/fortune_python-1.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4d08924e7fd31a6e8c278a3d651dd60f62c9257990be0f52550f7e06661b9e16",
                "md5": "69a7489f0461605b0080cc17e760b8bf",
                "sha256": "8b72d5b56275d39cba7c06cc7f84f1eda9edeaf5a3cefe0b619c89ecb19cfa11"
            },
            "downloads": -1,
            "filename": "fortune_python-1.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "69a7489f0461605b0080cc17e760b8bf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1084746,
            "upload_time": "2025-09-03T01:46:57",
            "upload_time_iso_8601": "2025-09-03T01:46:57.555775Z",
            "url": "https://files.pythonhosted.org/packages/4d/08/924e7fd31a6e8c278a3d651dd60f62c9257990be0f52550f7e06661b9e16/fortune_python-1.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-03 01:46:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "jamesansley",
    "codeberg_project": "fortune",
    "lcname": "fortune-python"
}
        
Elapsed time: 2.36901s