Skip to main content

A lighthearted Python package that brings joy.

Project description

Python Package Exercise

ChucklePy - A Fun Python Package

What is ChucklePy?

ChucklePy is a fun Python package designed to bring humor to developers’ lives.
With puns, comedic insults, text amusement, and random fortunes, it keeps coding entertaining.

Installation

Install ChucklePy directly from PyPI:

pip install chucklepy

Import the package in your code:

from chucklepy import generate_pun, comedic_insult, amuseify_text, random_fortune

Usage Examples
Here’s how you can use ChucklePy in your Python scripts:

  • Generate a Pun
pun = generate_pun(category="tech", length="short")
print(pun)
A SQL query walks into a bar, sees two tables, and asks: 'Can I join you?'
  • Generate a Comedic Insult
insult = comedic_insult("Alice", severity=2)
print(insult)
Alice, your code is like a maze  I've gone in circles three times and I'm still nowhere near an exit!”
  • Amuseify Text
fun_text = amuseify_text("Hello world!", style="emoji")
print(fun_text)
Hello👾 world!”
  • Get a Random Fortune
from chucklepy import random_fortune

fortune = random_fortune(topic="career", mood="sarcastic")
print(fortune)
Not writing bugs tonight only means writing double the bugs tomorrow.

See more examples in the example program.

PyPI package link

Visit and try our fun package

Contributing to ChucklePy

We love contributions! Here’s how you can set up the project locally:

Clone the Repository

git clone https://github.com/software-students-spring2025/3-python-package-httprequest.git
cd src/chuckle

Set Up Virtual Environment

  • Using Pipenv:
pipenv install --dev
pipenv shell
  • Run Tests
pipenv run pytest
pytest tests
  • Build and Install the Package Locally
pipenv run python -m build
pip install dist/chucklepy-*.whl

Team Members

Running the Project on Any Platform

  • Ensure Python 3.9+ is installed
  • Clone the repository
  • Install dependencies
  • Run tests
  • Execute the example script

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

chucklepy-0.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

chucklepy-0.1.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chucklepy-0.1.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for chucklepy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce3ea72653b35c30945680d695e69a171762285ae13c764c03a52d3b3017fdc7
MD5 df216c8d61dd59598b87b33241c7ecdc
BLAKE2b-256 7e64419916b0cdb0b6f979b444537f9daca487b47bbadb0852f4670947e2ce7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chucklepy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for chucklepy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c6b71f275f2547ce57174e292f630a795617d1f3fbb846b405c81e2e9a7a540
MD5 6963e4f59b433900c64a50333a592e5a
BLAKE2b-256 effbe53a4fa587f30e04339636cfb963774e1bc4b5126bc19460fc2c8df14daf

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