Skip to main content

A simple, clean, and powerful Python package named "nepali" that acts like a mini Nepali AI assistant.

Project description

Nepali AI Tools

A simple, clean, and powerful Python package named "nepali" that acts like a mini Nepali AI assistant for generating smart replies, fun content, and viral outputs. Designed to be beginner-friendly and easy to use.

Installation

pip install nepali-ai-tools

Usage

import nepali_ai_tools as ai

# Reply Generator
print(ai.generate_reply("hi"))
# Output: Namaste! 🙏 (or similar dynamic reply)

print(ai.generate_reply("How are you doing today?", mode="ai", api_key="YOUR_GEMINI_API_KEY"))
# Output: AI-generated reply

# Fun Content Generators
print(ai.generate_personality("Gunpark"))
print(ai.generate_motivation("sad"))
print(ai.generate_meme_idea())
print(ai.generate_caption("travel"))
print(ai.generate_gamer_tag("PlayerOne"))
print(ai.generate_roast())
print(ai.generate_excuse())
print(ai.generate_pickup_line())

Features

1. Reply Generator (generate_reply)

  • generate_reply(message, mode="hybrid", api_key=None)
    • mode="dynamic": Generates 30-35 random Nepali + English replies.
    • mode="ai": Uses Google Gemini API for smart replies. Requires api_key.
    • mode="hybrid" (default): Tries AI generation first; if an error occurs or api_key is not provided, falls back to dynamic replies.
    • Includes basic keyword detection for greetings like "hi", "hello", "how are you".

2. AI Integration (generate_ai_reply)

  • Uses the google-generativeai library.
  • Handles errors safely, returning an error message if AI generation fails.

3. Extra Generators

All these functions use random logic and return simple strings.

  • generate_personality(name): Generates a fun personality description.
  • generate_motivation(mood): Provides motivational messages based on mood.
  • generate_meme_idea(): Comes up with a random meme idea.
  • generate_caption(topic): Generates a caption for a given topic.
  • generate_gamer_tag(name): Creates a unique gamer tag.
  • generate_roast(): Generates a light, non-harmful roast.
  • generate_excuse(): Creates a funny excuse.
  • generate_pickup_line(): Generates a clean pickup line.

Developer Credit

Made with ❤️ by @gunpark_xd

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

nepali_ai_tools-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

nepali_ai_tools-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file nepali_ai_tools-0.1.0.tar.gz.

File metadata

  • Download URL: nepali_ai_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for nepali_ai_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 02e2b4bc011a3a181718cbd6900a35ffd76481b0d64d431b05884da67982a399
MD5 f4b99fa6928156fbc139c16a67afb177
BLAKE2b-256 a689a97da3083212fe6fc0605ad4d8d53874e780d8af42844fde97ea96817ad6

See more details on using hashes here.

File details

Details for the file nepali_ai_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nepali_ai_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2911ae2c26ad0e92350941bf5809ebb1420f7c79e54d7d62ba5e1d0d1254924
MD5 0d447ccd3411437494e725511c0c75b2
BLAKE2b-256 f4cfddbc5dc14a1e2282f9f6046bc1fa360cb8421cf79ed8286e241456a7da0a

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