Skip to main content

Divination Python package

Project description

Funky Fortune

This package is designed for those who enjoy divination and fortune telling. Tools include a magic eight ball, fortune cookies, zodiac fortunes, and more!

Installation/Usage

You can install this package using a virtual environment of your choice.

Using venv:

pip install funky-fortune

Using pipenv:

pipenv shell
pipenv install funky-fortune

Then, import the package in your program:

import funky_fortune.main as ff

The functions currently implemented are listed below:

zodiac_fortune(zodiac_sign)

Takes a str as an argument, returns a str. If the string passed in corresponds to a zodiac sign, the fortune returned will be unique to that sign.

lucky_number(name)

Takes a str as an argument, returns an int. If the same name is passed in, the lucky number will stay the same.

fortune_cookie(lucky=False)

Returns a string. If the lucky parameter is passed in, the resulting fortune will be extra lucky!

magic_8ball(question)

Takes a str as an argument, returns a str. The magic eight ball will repeat the question, and return a random answer.

Here is an example of these functions being used: Example Code

Open Source Contributions:

If you want to add to this package, fork this repository: Github Link

Then, set up the virtual environment using pipenv and install dependencies:

pipenv shell
pipenv install

Then, you are free to make changes to the package. Functions are found in the main.py folder of the funky_fortune directory.

Once done, run tests with the simple command pytest. Additionally, you can add tests of your own under the tests directory.

You can also build the package by running python -m build in the home directory to see if the package works as intended. Artifacts should be found in the newly created dist/ folder.

If you are happy with your changes, you can commit them and send a pull request!

Contributors:

Bowen Ma

Hanlin He

Junqi Zhao

Andrew Qin

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

funky_fortune-0.1.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

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

funky_fortune-0.1.0-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file funky_fortune-0.1.0.tar.gz.

File metadata

  • Download URL: funky_fortune-0.1.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for funky_fortune-0.1.0.tar.gz
Algorithm Hash digest
SHA256 467b86365216430451f0decad1b9b687aee09a542bf543c505e5464c5b5ba55a
MD5 d13bdd05e2ee82ae0df687001db548d0
BLAKE2b-256 86977dc4c02225f1f4804ef70ba75985c30abc8dea91e34a5d87e03beab2efe6

See more details on using hashes here.

File details

Details for the file funky_fortune-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: funky_fortune-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for funky_fortune-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40af69ca61a12ba81939379a3d9cfddb727c20642a37c1f14cdb3fb7280ee49f
MD5 52ee9b54c9fac1928394024ee573f3d3
BLAKE2b-256 cdfa4690f551e14b79da360c8ddbe58eef2afc5c3296223bf4170df3841f6965

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