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
For a lightweight version (recommended for mobile/Pydroid3):
pip install nepali-ai-tools
For full version with AI (Google Gemini) support:
pip install "nepali-ai-tools[ai]"
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. Requiresapi_key.mode="hybrid"(default): Tries AI generation first; if an error occurs orapi_keyis 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-generativeailibrary. - 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
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 nepali_ai_tools-0.1.1.tar.gz.
File metadata
- Download URL: nepali_ai_tools-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f785228fcbea142373078fddff1d9264a5e285364c5c758f9b2a30d49023f4c5
|
|
| MD5 |
c8f308ae01a95beb2632948ab4f0fd50
|
|
| BLAKE2b-256 |
961b5113108cf9122b05e6a69709210dcfa9c1731a2790a1b1529822f5d37b2c
|
File details
Details for the file nepali_ai_tools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nepali_ai_tools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a9a42c6a2e8e8afea22937ada013a743a98564dcc4296bc98241d887856d492
|
|
| MD5 |
fb3a2bd880064270b6ee014aa98c2b20
|
|
| BLAKE2b-256 |
a1512b051f31e202c7f31e8d7be63a9fa03764d9b551bf032e97d9558f0933fb
|