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

For local usage:

# Clone this repository or copy the greetron directory
cd your_project/
pip install -e .

🚀 Usage

from greetron import get_random_greeting, get_random_goodbye

print(get_random_greeting())  # Informal greeting
print(get_random_greeting("Aryan"))  # Informal greeting with name
print(get_random_greeting("Aryan", mode="formal"))  # Formal greeting with name

print(get_random_goodbye())  # Informal goodbye
print(get_random_goodbye("Aryan"))  # Informal goodbye with name
print(get_random_goodbye("Aryan", mode="formal"))  # Formal 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.2.tar.gz (4.0 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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file greetron-0.1.2.tar.gz.

File metadata

  • Download URL: greetron-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 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.2.tar.gz
Algorithm Hash digest
SHA256 8dd551c42cc5b286eeea4ffed8afe5e812751eba6fa4324c65d38b8e54b84be1
MD5 c68275ee5cac9bb7e126f4499a73e793
BLAKE2b-256 57ddde85cec4b6ae4334aa029e07bf466a91b75e9b45876beda6cefc46a1a6c1

See more details on using hashes here.

File details

Details for the file greetron-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: greetron-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f70d4aee1bb6b9fae1d82a9cd834027a6611a243fa72f9a4ed46984da7c2088
MD5 07e58ee89ec9a83cac74aebcf7f2c09b
BLAKE2b-256 29aea69bf0e856912b2f91cfe75f5db8a869846d65ef03fc5c13c6e9cc7e7ba9

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