fortune-python


Namefortune-python JSON
Version 1.1.0 PyPI version JSON
download
home_page
SummaryA Fortune clone in Python
upload_time2024-03-16 07:57:14
maintainer
docs_urlNone
authorJames Finnie-Ansley
requires_python>=3.8
licenseMIT License Copyright (c) 2024 James Finnie-Ansley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords fortune
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Fortune

A simple self-contained clone of fortune. Try it out
with [cowsay](https://github.com/James-Ansley/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": "",
    "name": "fortune-python",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "fortune",
    "author": "James Finnie-Ansley",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/b8/83/0a0283c1d40b65b4e06efe92b902eb29efb3d785385070c34d89781c2c2f/fortune-python-1.1.0.tar.gz",
    "platform": null,
    "description": "# Python Fortune\n\nA simple self-contained clone of fortune. Try it out\nwith [cowsay](https://github.com/James-Ansley/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": "MIT License  Copyright (c) 2024 James Finnie-Ansley  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A Fortune clone in Python",
    "version": "1.1.0",
    "project_urls": {
        "repository": "https://github.com/James-Ansley/fortune"
    },
    "split_keywords": [
        "fortune"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d52435bf9167e8460be962ce265d54cf4a7645f78504d0073fabeaaaf0678c1",
                "md5": "4db886aa81384f93d09d82b8555ee2c3",
                "sha256": "6c39d880c103c63b2dd0e049441fa296bbdecdc65c5d909a84bdee916f0b5ce6"
            },
            "downloads": -1,
            "filename": "fortune_python-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4db886aa81384f93d09d82b8555ee2c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1112104,
            "upload_time": "2024-03-16T07:57:10",
            "upload_time_iso_8601": "2024-03-16T07:57:10.410862Z",
            "url": "https://files.pythonhosted.org/packages/1d/52/435bf9167e8460be962ce265d54cf4a7645f78504d0073fabeaaaf0678c1/fortune_python-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b8830a0283c1d40b65b4e06efe92b902eb29efb3d785385070c34d89781c2c2f",
                "md5": "814504ddbf9adcdadaf2aa98566941e0",
                "sha256": "3e36c372210fea975079b28cd0a9783ec1a36fe7454275343ce3f42a20f743e3"
            },
            "downloads": -1,
            "filename": "fortune-python-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "814504ddbf9adcdadaf2aa98566941e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1079622,
            "upload_time": "2024-03-16T07:57:14",
            "upload_time_iso_8601": "2024-03-16T07:57:14.740417Z",
            "url": "https://files.pythonhosted.org/packages/b8/83/0a0283c1d40b65b4e06efe92b902eb29efb3d785385070c34d89781c2c2f/fortune-python-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-16 07:57:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "James-Ansley",
    "github_project": "fortune",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fortune-python"
}
        
Elapsed time: 9.40038s