Skip to main content

A simple Python package that generates ASCII art of characters saying a given string.

Project description

Charsay

Character Say - A simple Python package that generates ASCII art of characters saying a given string. Currently, it supports Simpsons characters.

🔥 Features

  • Simpsons Characters: Supports Bart, Homer, Marge, Lisa, and Maggie.
  • Customizable Text: Add your own text for the characters to say.
  • ASCII Art: Each character is represented in ASCII art form, inspired by existing Simpsons designs.
  • I'm Feeling Lucky: Initialize character = Charactersay() and call the character.imfeelinglucky() to get fortune cookie messages.

📦 Installation

To install charsay, it's recommended to use a virtual environment to keep dependencies isolated.

1️⃣ Create and Activate a Virtual Environment

🔹 Windows (PowerShell)

python -m venv venv
venv\Scripts\activate

🔹 macOS/Linux (Terminal)

python3 -m venv venv
source venv/bin/activate

2️⃣ Install charsay from PyPI

pip install charsay

3️⃣ Verify Installation

pip list

Usage

Here's a basic example of how to use the package:

from charsay import Charactersay   #import Charactersay() class

'horizontal_length' can be any int or float (raises ValueError if otherwise) 'horizontal_length' is an optional parameter (default=60) with a minimum possible value 15 (only for strings > 60char long..for smaller strings -> generated automatically)

from charsay import Charactersay   #import Charactersay() class
character = Charactersay(horizontal_length=x) # initializing object 

'object.string' is the string you want characters to say

character.string = "Hello, world!"

Example usage:

from charsay import Charactersay
character = Charactersay(horizontal_length=50)
character.string = 'English? Who needs that? I’m never going to England.'

character.homer()

🚀 Available Functions

These methods take no arguments. They only need to be called, and will print the 'object.string' assigned earlier ('Hello, world!' if no string was assigned)

from charsay import Charactersay
character = Charactersay()

character.homer() 
character.marge()
character.bart()
character.lisa()
character.maggie()
character.imfeelinglucky() 
    #-->Generates a random character saying a random fortune-quote (ignores 'obj'.string)

🫂 Contributing

Contributions are welcome! Feel free to add more characters or improve existing ones.

🔑 License

This project is licensed under the MIT License.

🤝 Acknowledgments

  • The Simpsons characters are copyrighted by Disney. This project uses ASCII art designs inspired by these characters for non-commercial purposes.
  • ASCII art designs are not original and are based on existing Simpsons designs.

👨‍⚖️ Legal Note

Please be aware that using Simpsons characters without permission may infringe on Disney's copyright. This project is intended for personal, non-commercial use. If you plan to use this project commercially, you should seek permission from Disney or ensure your use falls under fair use provisions.

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

charsay-0.1.33.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

charsay-0.1.33-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file charsay-0.1.33.tar.gz.

File metadata

  • Download URL: charsay-0.1.33.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for charsay-0.1.33.tar.gz
Algorithm Hash digest
SHA256 cd37f6c28edcd237d4122ba0dfeda71756248a7580902941b718a14854d41d12
MD5 d48d10f9e7e509a6bea0fdf6266385b3
BLAKE2b-256 d72f2b9f9cba971ee4ef1d1e1ac256961ccd0faf9029c7485ba7590b3aaf0c81

See more details on using hashes here.

Provenance

The following attestation bundles were made for charsay-0.1.33.tar.gz:

Publisher: build-and-deploy.yml on kish-0/charsay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file charsay-0.1.33-py3-none-any.whl.

File metadata

  • Download URL: charsay-0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for charsay-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 b48807756aebbc42af72f219c3739ccdf7c826fd27f4bb20a5ef2911b1664b86
MD5 dc8d59a235311e608f543b4e7ad24c8b
BLAKE2b-256 b994d618a901b5cf4e0ea90acbebccd835c0304c07f946e710e60635e22dcc74

See more details on using hashes here.

Provenance

The following attestation bundles were made for charsay-0.1.33-py3-none-any.whl:

Publisher: build-and-deploy.yml on kish-0/charsay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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