Skip to main content

A Python package lets users select a category and sub-category to

Project description

Python Package Exercise

Python build & test

An exercise to create a Python package, build it, test it, distribute it, and use it. See instructions for details.

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

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

  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

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

guessfact-0.1.0.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

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

guessFact-0.1.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for guessfact-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f404fb937bf5e0c2603b3e5eb51bc3350bdaedd15360e8dcc81c955a94e03121
MD5 f8cf207f4b5f1fafb822a12e5dd254e0
BLAKE2b-256 e05e90ee518372a4d1f16dbdd0cb2a9af647498a43fbd360f21a9fcd5a32dcb2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for guessFact-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ea4099293cca8f2f4ca3ecadfd27045189e62f440a97361e4658b3a9b945356
MD5 3ce6aed124251cfe32ca0af61e55df0b
BLAKE2b-256 3b61fb0f1beb41198ee979640e9d41ae90e2e42000556860a39fa20bde071b3a

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