Metadata-Version: 2.4
Name: sanskrit-py
Version: 1.0.2
Summary: A Sanskrit-based programming language transpiler and runtime for Python
Author: Neomonks Tech Pvt Ltd
License: Apache-2.0
Project-URL: Homepage, https://github.com/yourname/sanskrit-py
Keywords: sanskrit,compiler,transpiler,python,language,education
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Sanskrit-Py

> A Sanskrit-inspired programming language built on top of Python.

Sanskrit-Py lets you write Python-like programs using Sanskrit syntax and keywords while transpiling them into executable Python code.

---

## Features

- Sanskrit-inspired syntax
- Python transpiler/compiler
- Interactive REPL
- Simple CLI interface
- Educational programming language design
- Lightweight and beginner-friendly
- Extensible architecture

---

## Installation

Install from PyPI:

```bash
pip install sanskrit-py
```

Verify installation:

```bash
sanskrit
```

---

## Quick Example

### Sanskrit Code

```python
krte n antah vividham(1, 5):
    mudranam(n)
```

### Output

```text
1
2
3
4
```

---

## REPL (Interactive Terminal)

Launch the Sanskrit interactive shell:

```bash
sanskrit
```

Example session:

```text
==========================================================
   sanskrit-py Python Interactive Terminal (REPL)
                  संगणक संस्कृतम्
==========================================================

>>> mudranam("नमस्ते")
नमस्ते
```

---

## Language Keywords

| Sanskrit Keyword | Meaning |
|---|---|
| `mudranam` | print |
| `krte` | for |
| `yadi` | if |
| `anyatha` | else |
| `tavat` | while |
| `varga` | class |
| `kriya` | function |

---

## Running Sanskrit Files

Run a Sanskrit source file:

```bash
sanskrit example.sk
```

---

## Development Installation

Install editable mode for development:

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

---

## Project Structure

```text
sanskrit-py/
│
├── sanskrit/
│   ├── __init__.py
│   ├── cli.py
│   ├── compiler.py
│   ├── core.py
│   ├── parser.py
│   ├── repl.py
│   └── runtime.py
│
├── tests/
├── README.md
├── LICENSE
└── pyproject.toml
```

---

## Requirements

- Python 3.8+
- pip

---

## Example Programs

### Conditional

```python
yadi x > 10:
    mudranam("बृहत्")
anyatha:
    mudranam("लघु")
```

### Loop

```python
krte n antah vividham(1, 10):
    mudranam(n)
```

### Function

```python
kriya namaste():
    mudranam("नमस्ते")
```

---

## Installation for TestPyPI

```bash
pip install --index-url https://test.pypi.org/simple/ sanskrit-py
```

---

## License

Apache-2.0 License

---

## Links

- PyPI: https://pypi.org/project/sanskrit-py/

---

## Vision

Sanskrit-Py is an experimental attempt to explore programming language design using Sanskrit grammar concepts inspired by Paninian systems and Indian linguistic traditions.
