A lightweight library to generate formal and informal greetings and goodbyes.
Project description
🤖 Greetron
Greetron is a lightweight Python package designed for chatbots and virtual assistants that need friendly, professional, or informal greetings and goodbyes — with optional personalization via the user's name.
✨ Features
- ✅ Randomized greetings and goodbyes
- ✅ Supports formal and informal tones
- ✅ Adds the user’s name naturally into responses
- ✅ Lightweight and dependency-free
📦 Installation
If published to PyPI:
pip install greetron
🚀 Usage
from greetron import get_random_greeting, get_random_goodbye
print(get_random_greeting()) # formal greeting
print(get_random_greeting("Aryan")) # formal greeting with name
print(get_random_greeting("Aryan", mode="informal")) # Informal greeting with name
print(get_random_goodbye()) # formal goodbye
print(get_random_goodbye("Aryan")) # formal goodbye with name
print(get_random_goodbye("Aryan", mode="informal")) # inFormal goodbye with name
📂 Greeting Modes
| Mode | Description |
|---|---|
formal |
Professional tone (e.g., business/chatbots) |
informal |
Friendly/casual tone for personal bots |
🔧 Function Signatures
get_random_greeting(name: str = None, mode: str = "informal") -> str
get_random_goodbye(name: str = None, mode: str = "informal") -> str
name: Optional — A user’s name to personalize the messagemode: Optional —"formal"or"informal"tone
🧠 Example Output
get_random_greeting("Aryan", mode="formal")
# "Hello, Aryan! How may I assist you today?"
get_random_goodbye("Aryan", mode="informal")
# "Catch ya later, Aryan!"
📘 License
MIT License
Let me know if you'd like:
- Badge support (e.g., version, build)
- GitHub Actions setup for publishing to PyPI
- CLI or Streamlit demo interface
Project details
Release history Release notifications | RSS feed
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 greetron-0.1.3.tar.gz.
File metadata
- Download URL: greetron-0.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d912df753b59ebb9cd8cc06d9a834af9c1e730ed89a93fcd315bba82724da092
|
|
| MD5 |
a8af619129c6b2fd782e2ce44ea2452a
|
|
| BLAKE2b-256 |
38cee68a5a64dc4b76ee0a596cd2d14c6708f35bdd8c70c2548662ddc463ec7e
|
File details
Details for the file greetron-0.1.3-py3-none-any.whl.
File metadata
- Download URL: greetron-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44563b290f7fa5e13a5545e7f50ad456cbd46a1e9d975a8475aa1fe463c49a24
|
|
| MD5 |
b2c45a63ac6d72f93ff9473d6cea0147
|
|
| BLAKE2b-256 |
6ee8006cdf65c4e766b3fe27b175319447057451a5e7bfffe8efe00ad02309c7
|