Skip to main content

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 message
  • mode: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greetron-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

greetron-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for greetron-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d912df753b59ebb9cd8cc06d9a834af9c1e730ed89a93fcd315bba82724da092
MD5 a8af619129c6b2fd782e2ce44ea2452a
BLAKE2b-256 38cee68a5a64dc4b76ee0a596cd2d14c6708f35bdd8c70c2548662ddc463ec7e

See more details on using hashes here.

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

Hashes for greetron-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 44563b290f7fa5e13a5545e7f50ad456cbd46a1e9d975a8475aa1fe463c49a24
MD5 b2c45a63ac6d72f93ff9473d6cea0147
BLAKE2b-256 6ee8006cdf65c4e766b3fe27b175319447057451a5e7bfffe8efe00ad02309c7

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