AI Cheerish
AI Cheerish is a lightweight Python library designed to enhance your AI chatbot's performance by injecting motivational and inspirational messages into conversation prompts. It integrates seamlessly with your existing AI client and automatically logs interactions for improved debugging and analysis.
Key Features
- Prompt Enhancement: Automatically inject a custom "human nature" message on the first interaction and add motivational notes periodically (every nth message, as set in your configuration).
- Easy Integration: Works with any AI client that follows a conversational API pattern.
- Logging: Records conversation details including timestamps, original messages, enhanced prompts, and AI responses in a CSV file.
Installation
Install the package via pip:
pip install ai-cheerish
Usage Example
from ai_cheerish import Cheerish
def dummy_get_response(messages): return "Dummy response: " + messages[0]["content"]
Pass the function directly instead of creating a class instance.
cheerish = Cheerish(dummy_get_response)
response = cheerish("Hello, how are you?") print(response)
How It Works
- Message Enhancement:
- On the first user message, the library can prepend a configured "human_nature" note.
- Every nth message (by default, every 3rd message—modifiable via the
motivational_frequencysetting) gets an additional motivational note injected.
- Single API Call:
- Instead of sending separate system and user messages, the system note is prepended directly to the user's message.
- Logging:
- Each interaction is logged in a CSV file (
chat_logs.csv) for later review or debugging.
- Each interaction is logged in a CSV file (
License
This project is licensed under the MIT License.
Metadata
Release files for ai-cheerish 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_cheerish-0.2.1.tar.gz | 3.8 kB | With provenance | Details for ai_cheerish-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_cheerish-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for ai_cheerish-0.2.1-py3-none-any.whl |
Total release size: 8.0 kB
Release files / ai_cheerish-0.2.1.tar.gz
| Download URL | ai_cheerish-0.2.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fca17e137e4a1979180398c7ff755d30b90298347eafdf0cd74c9113f75a499
|
|
BLAKE2b-256 checksum How to use checksums |
902eceebc7a8eb64ff1d6668ee3128aa36865a17de55d14f5df6597ebf94cfb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 9, 2025.
Transparency logRelease files / ai_cheerish-0.2.1-py3-none-any.whl
| Download URL | ai_cheerish-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1e274e563314454a9b2de56b0a0461186f41374566d43e814ab499429b888b4
|
|
BLAKE2b-256 checksum How to use checksums |
be9af080b6d5e79a2e521cee89e222286e5339ad215e2004bdc11805aa2808b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 9, 2025.
Transparency logSecurity for ai-cheerish 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ai_cheerish-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 9, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.