Skip to content

software-students-fall2024/3-python-package-thecoders2

 
 

Repository files navigation

Python Package Exercise

Python build & test

Team members

Package Description

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.

Link to the package's page on the PyPI website

https://pypi.org/project/guessFact/

How to install and use this package

Try installing and using this package in a separate Python project:

  1. Create a pipenv-managed virtual environment and install the latest version of the package
pip install pipenv
pipenv install guessFact
  1. Activate the virtual environment
pipenv shell
  1. Create a Python program file that imports the package and uses it, as shown in the Example File.
  2. Run the program (change the "program_filename" to the file name you created):
python3 program_filename.py

Try running the package directly:

  1. Create and activate up the pipenv virtual environment as shown above
  2. Run the package directly from the command line
python3 -m guessFact

How to build and test the code

  1. Clone this repository to the editor in your computer
  2. Set up a virtual environment and install dependencies
pip install pipenv
pipenv install
pipenv shell
  1. Run tests
python3 -m pytest

About

software-engineering-fall-2024-3-python-package-python-package-exercise created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%