A Python package lets users select a category and sub-category to reveal two unique facts about it. One fact is true, while the other is a playful fabrication, and the user needs to identify the correct one.
https://pypi.org/project/guessFact/
Try installing and using this package in a separate Python project:
- Create a
pipenv
-managed virtual environment and install the latest version of the package
pip install pipenv
pipenv install guessFact
- Activate the virtual environment
pipenv shell
- Create a Python program file that imports the package and uses it, as shown in the Example File.
- Run the program (change the "program_filename" to the file name you created):
python3 program_filename.py
Try running the package directly:
- Create and activate up the
pipenv
virtual environment as shown above - Run the package directly from the command line
python3 -m guessFact
- Clone this repository to the editor in your computer
- Set up a virtual environment and install dependencies
pip install pipenv
pipenv install
pipenv shell
- Run tests
python3 -m pytest