Metadata-Version: 2.4
Name: pyshayari
Version: 0.1.0
Summary: A lightweight package that gives you random Hindi/Hinglish Shayari.
Author-email: Your Name <your.email@example.com>
License-Expression: MIT
Keywords: shayari,hindi,hinglish,poetry,urdu
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: Hindi
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# PyShayari 🌙

A small, friendly Python package that gives you random **Hindi / Hinglish Shayari** — inspired by simple content packages like `pyjokes`.

```text
Waqt badla toh log bhi badal gaye,
Hum wahi rahe, bas khamosh ho gaye.
```

## Features

- 200+ original Shayaris
- 10 categories (love, sad, friendship, motivational, life, attitude, romantic, heartbreak, funny, alone)
- Hindi (Devanagari), Hinglish (Roman Hindi) and Urdu-influenced words
- Random Shayari selection
- No external API, no internet needed
- Lightweight
- No dependencies (Python standard library only)

## Installation

From the project folder:

```bash
pip install -e .
```

## Basic Usage

```python
from pyshayari import shayari

print(shayari())
```

## Category Usage

```python
from pyshayari import shayari

print(shayari(category="love"))
print(shayari(category="sad"))
print(shayari(category="motivational"))
```

An unknown category raises a clear error:

```python
shayari(category="unknown")
# ValueError: Unknown category: unknown. Available categories: love, sad, ...
```

## Get Categories

```python
from pyshayari import get_categories

print(get_categories())
```

There is also `random_shayari()`, which does the same as `shayari()`.

## Development

Run the tests (uses Python's built-in `unittest`, no pytest needed):

```bash
python -m unittest discover
```

> **Windows tip:** if Hindi text looks broken in the terminal, run `chcp 65001`
> first, or use a terminal that supports UTF-8 (like Windows Terminal).

## Project Structure

```text
pyshayari/
├── pyshayari/
│   ├── __init__.py     # public API: shayari(), random_shayari(), get_categories()
│   ├── shayaris.py     # the Shayari collection (a dictionary of lists)
│   ├── categories.py   # list of supported categories
│   └── utils.py        # helpers: category validation, random selection
├── tests/
│   ├── __init__.py
│   └── test_shayari.py # unittest tests
├── README.md
├── LEARNING.md         # Python concepts explained for beginners
├── pyproject.toml      # package metadata and build settings
├── LICENSE
└── .gitignore
```

New to Python? Read [LEARNING.md](LEARNING.md).

## License

MIT — see [LICENSE](LICENSE).
