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 thecharacter.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 (raises ValueError if otherwise)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file charsay-0.1.32.tar.gz.
File metadata
- Download URL: charsay-0.1.32.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
570e8ecc07c9546d698cd1aa057d4301bd859e1c1fcca5e8da4998fedbd83f32
|
|
| MD5 |
e559eb50f3b3df0b149480dfc4b4884b
|
|
| BLAKE2b-256 |
cc2d72f3c6c31449916c5c132f1e0c3ede1b92e6117d0f5927f39460ee2fee9c
|
Provenance
The following attestation bundles were made for charsay-0.1.32.tar.gz:
Publisher:
build-and-deploy.yml on kish-0/charsay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
charsay-0.1.32.tar.gz -
Subject digest:
570e8ecc07c9546d698cd1aa057d4301bd859e1c1fcca5e8da4998fedbd83f32 - Sigstore transparency entry: 183387988
- Sigstore integration time:
-
Permalink:
kish-0/charsay@3137825fff86453193d8113d8523aa9e03be8518 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kish-0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-deploy.yml@3137825fff86453193d8113d8523aa9e03be8518 -
Trigger Event:
push
-
Statement type:
File details
Details for the file charsay-0.1.32-py3-none-any.whl.
File metadata
- Download URL: charsay-0.1.32-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14fc4380c6621b2d49149e4166d221bb2c4c67af942d7d4ed9b799a00007d550
|
|
| MD5 |
5c7ca352881c6bdb6ff6ff2736c92e7d
|
|
| BLAKE2b-256 |
e48bf5a2845e76575035e897c65f73201ec9b2d6a5f1c3b31e90c1ca5f8a8f52
|
Provenance
The following attestation bundles were made for charsay-0.1.32-py3-none-any.whl:
Publisher:
build-and-deploy.yml on kish-0/charsay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
charsay-0.1.32-py3-none-any.whl -
Subject digest:
14fc4380c6621b2d49149e4166d221bb2c4c67af942d7d4ed9b799a00007d550 - Sigstore transparency entry: 183387990
- Sigstore integration time:
-
Permalink:
kish-0/charsay@3137825fff86453193d8113d8523aa9e03be8518 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kish-0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-deploy.yml@3137825fff86453193d8113d8523aa9e03be8518 -
Trigger Event:
push
-
Statement type: