sutra-bharat 9.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sutra_bharat-9.3.0/PKG-INFO +47 -0
- sutra_bharat-9.3.0/README.md +24 -0
- sutra_bharat-9.3.0/pyproject.toml +33 -0
- sutra_bharat-9.3.0/setup.cfg +4 -0
- sutra_bharat-9.3.0/setup.py +22 -0
- sutra_bharat-9.3.0/sutra/__init__.py +9 -0
- sutra_bharat-9.3.0/sutra/ai_engine.py +902 -0
- sutra_bharat-9.3.0/sutra/ankganit_lib.py +182 -0
- sutra_bharat-9.3.0/sutra/ast_nodes.py +227 -0
- sutra_bharat-9.3.0/sutra/bharat_lib.py +113 -0
- sutra_bharat-9.3.0/sutra/cli.py +84 -0
- sutra_bharat-9.3.0/sutra/fast_compiler.py +119 -0
- sutra_bharat-9.3.0/sutra/interpreter.py +892 -0
- sutra_bharat-9.3.0/sutra/khata_lib.py +95 -0
- sutra_bharat-9.3.0/sutra/lexer.py +299 -0
- sutra_bharat-9.3.0/sutra/llm_engine.py +136 -0
- sutra_bharat-9.3.0/sutra/media_engine.py +142 -0
- sutra_bharat-9.3.0/sutra/modern_libs.py +299 -0
- sutra_bharat-9.3.0/sutra/parser.py +548 -0
- sutra_bharat-9.3.0/sutra/stdlib_extra.py +393 -0
- sutra_bharat-9.3.0/sutra/talika_lib.py +137 -0
- sutra_bharat-9.3.0/sutra/vaani_engine.py +322 -0
- sutra_bharat-9.3.0/sutra_bharat.egg-info/PKG-INFO +47 -0
- sutra_bharat-9.3.0/sutra_bharat.egg-info/SOURCES.txt +35 -0
- sutra_bharat-9.3.0/sutra_bharat.egg-info/dependency_links.txt +1 -0
- sutra_bharat-9.3.0/sutra_bharat.egg-info/entry_points.txt +2 -0
- sutra_bharat-9.3.0/sutra_bharat.egg-info/requires.txt +16 -0
- sutra_bharat-9.3.0/sutra_bharat.egg-info/top_level.txt +1 -0
- sutra_bharat-9.3.0/tests/test_audit_ai.py +87 -0
- sutra_bharat-9.3.0/tests/test_audit_core.py +106 -0
- sutra_bharat-9.3.0/tests/test_audit_m1_lexer_parser.py +88 -0
- sutra_bharat-9.3.0/tests/test_audit_m2_interpreter_runtime.py +78 -0
- sutra_bharat-9.3.0/tests/test_audit_m3_ai_autograd.py +68 -0
- sutra_bharat-9.3.0/tests/test_audit_m4_media_stdlib.py +58 -0
- sutra_bharat-9.3.0/tests/test_audit_m5_vaani_hinglish.py +59 -0
- sutra_bharat-9.3.0/tests/test_audit_v4_deep.py +133 -0
- sutra_bharat-9.3.0/tests/test_sutra.py +125 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sutra-bharat
|
|
3
|
+
Version: 9.3.0
|
|
4
|
+
Summary: Sutra: Indian AI-First Hinglish Programming Language with Built-in Autograd, Data, Web, and Bharat Utilities
|
|
5
|
+
Author: Sutra Language Creators
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: numpy>=1.24.0
|
|
10
|
+
Requires-Dist: pillow>=9.5.0
|
|
11
|
+
Requires-Dist: matplotlib>=3.7.0
|
|
12
|
+
Requires-Dist: openpyxl>=3.1.0
|
|
13
|
+
Requires-Dist: pypdf>=3.0.0
|
|
14
|
+
Requires-Dist: beautifulsoup4>=4.12.0
|
|
15
|
+
Provides-Extra: vision
|
|
16
|
+
Requires-Dist: opencv-python>=4.8.0; extra == "vision"
|
|
17
|
+
Provides-Extra: gpu
|
|
18
|
+
Requires-Dist: torch>=2.0.0; extra == "gpu"
|
|
19
|
+
Provides-Extra: all
|
|
20
|
+
Requires-Dist: opencv-python>=4.8.0; extra == "all"
|
|
21
|
+
Requires-Dist: torch>=2.0.0; extra == "all"
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
|
|
24
|
+
# Sutra v3 (सूत्र) — Saral Baat-Cheet Jaisi Hinglish AI Language
|
|
25
|
+
|
|
26
|
+
**Sutra v3** (`.sutra`) एक सरल, सभ्य और पूरी तरह AI-केंद्रित Hinglish प्रोग्रामिंग लैंग्वेज है, जिसमें बिना कर्ली ब्रैकेट्स (`{ }`) के सीधे बातचीत जैसे वाक्यों और सभी मैंडेटरी स्टैंडर्ड लाइब्रेरीज़ के साथ AI, Vision, Video, Audio, NLP और Web APIs चलाए जा सकते हैं।
|
|
27
|
+
|
|
28
|
+
## 1. Mandatory Standard Libraries (Easy Hinglish Names)
|
|
29
|
+
- **`file`**: `folder_files()`, `file_hai()`, `file_padho()`, `file_likho()`, `json_padho()`, `json_likho()`
|
|
30
|
+
- **`samay`**: `abhi()`, `tareekh()`, `ghadi()`, `ruko_second()`, `timer_shuru()`, `timer_band()`
|
|
31
|
+
- **`chart`**: `loss_graph()`, `bar_chart()`, `line_chart()`
|
|
32
|
+
- **`bhasha`** (`nlp`): `shabd_saaf()`, `tukde_karo()`, `vocab_banao()`, `text_se_tensor()`, `sentiment()`
|
|
33
|
+
- **`awaz`**: `awaz_banao()`, `awaz_lo()`, `spectrogram()`
|
|
34
|
+
- **`web`**: `web_se_lo()`, `web_bhejo()`, `model_api_banao()`
|
|
35
|
+
- **`ai` / `vision` / `video` / `data` / `llm`**: `batch_banao()`, `Conv2d`, `SelfAttention`, `train_karo()`, `photo_lo()`, `video_se_frames()`, `agent_banao()`
|
|
36
|
+
- **Error Handling**: `koshish:` ... `pakdo err:`
|
|
37
|
+
|
|
38
|
+
## 2. Quick Start
|
|
39
|
+
```bash
|
|
40
|
+
pip install numpy pillow opencv-python matplotlib
|
|
41
|
+
# Optional GPU acceleration: pip install torch
|
|
42
|
+
|
|
43
|
+
python3 sutra.py run examples/sabhi_libraries.sutra
|
|
44
|
+
python3 sutra.py run examples/ghar_keemat.sutra
|
|
45
|
+
python3 sutra.py run examples/photo_aur_video.sutra
|
|
46
|
+
python3 -m unittest discover -s tests -v
|
|
47
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Sutra v3 (सूत्र) — Saral Baat-Cheet Jaisi Hinglish AI Language
|
|
2
|
+
|
|
3
|
+
**Sutra v3** (`.sutra`) एक सरल, सभ्य और पूरी तरह AI-केंद्रित Hinglish प्रोग्रामिंग लैंग्वेज है, जिसमें बिना कर्ली ब्रैकेट्स (`{ }`) के सीधे बातचीत जैसे वाक्यों और सभी मैंडेटरी स्टैंडर्ड लाइब्रेरीज़ के साथ AI, Vision, Video, Audio, NLP और Web APIs चलाए जा सकते हैं।
|
|
4
|
+
|
|
5
|
+
## 1. Mandatory Standard Libraries (Easy Hinglish Names)
|
|
6
|
+
- **`file`**: `folder_files()`, `file_hai()`, `file_padho()`, `file_likho()`, `json_padho()`, `json_likho()`
|
|
7
|
+
- **`samay`**: `abhi()`, `tareekh()`, `ghadi()`, `ruko_second()`, `timer_shuru()`, `timer_band()`
|
|
8
|
+
- **`chart`**: `loss_graph()`, `bar_chart()`, `line_chart()`
|
|
9
|
+
- **`bhasha`** (`nlp`): `shabd_saaf()`, `tukde_karo()`, `vocab_banao()`, `text_se_tensor()`, `sentiment()`
|
|
10
|
+
- **`awaz`**: `awaz_banao()`, `awaz_lo()`, `spectrogram()`
|
|
11
|
+
- **`web`**: `web_se_lo()`, `web_bhejo()`, `model_api_banao()`
|
|
12
|
+
- **`ai` / `vision` / `video` / `data` / `llm`**: `batch_banao()`, `Conv2d`, `SelfAttention`, `train_karo()`, `photo_lo()`, `video_se_frames()`, `agent_banao()`
|
|
13
|
+
- **Error Handling**: `koshish:` ... `pakdo err:`
|
|
14
|
+
|
|
15
|
+
## 2. Quick Start
|
|
16
|
+
```bash
|
|
17
|
+
pip install numpy pillow opencv-python matplotlib
|
|
18
|
+
# Optional GPU acceleration: pip install torch
|
|
19
|
+
|
|
20
|
+
python3 sutra.py run examples/sabhi_libraries.sutra
|
|
21
|
+
python3 sutra.py run examples/ghar_keemat.sutra
|
|
22
|
+
python3 sutra.py run examples/photo_aur_video.sutra
|
|
23
|
+
python3 -m unittest discover -s tests -v
|
|
24
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sutra-bharat"
|
|
7
|
+
version = "9.3.0"
|
|
8
|
+
description = "Sutra: Indian AI-First Hinglish Programming Language with Built-in Autograd, Data, Web, and Bharat Utilities"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = {text = "MIT"}
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "Sutra Language Creators"}
|
|
14
|
+
]
|
|
15
|
+
dependencies = [
|
|
16
|
+
"numpy>=1.24.0",
|
|
17
|
+
"pillow>=9.5.0",
|
|
18
|
+
"matplotlib>=3.7.0",
|
|
19
|
+
"openpyxl>=3.1.0",
|
|
20
|
+
"pypdf>=3.0.0",
|
|
21
|
+
"beautifulsoup4>=4.12.0",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.optional-dependencies]
|
|
25
|
+
vision = ["opencv-python>=4.8.0"]
|
|
26
|
+
gpu = ["torch>=2.0.0"]
|
|
27
|
+
all = ["opencv-python>=4.8.0", "torch>=2.0.0"]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
sutra = "sutra.cli:main"
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.packages.find]
|
|
33
|
+
include = ["sutra*"]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="sutra-bharat",
|
|
5
|
+
version="9.3.0",
|
|
6
|
+
description="Sutra: Indian AI-First Hinglish Programming Language",
|
|
7
|
+
packages=find_packages(include=["sutra*"]),
|
|
8
|
+
python_requires=">=3.9",
|
|
9
|
+
install_requires=[
|
|
10
|
+
"numpy>=1.24.0",
|
|
11
|
+
"pillow>=9.5.0",
|
|
12
|
+
"matplotlib>=3.7.0",
|
|
13
|
+
"openpyxl>=3.1.0",
|
|
14
|
+
"pypdf>=3.0.0",
|
|
15
|
+
"beautifulsoup4>=4.12.0",
|
|
16
|
+
],
|
|
17
|
+
entry_points={
|
|
18
|
+
"console_scripts": [
|
|
19
|
+
"sutra=sutra.cli:main",
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""Sutra — Indian AI-First Hinglish Programming Language (v9.3.0)."""
|
|
2
|
+
|
|
3
|
+
from .lexer import Lexer, LexerError
|
|
4
|
+
from .parser import Parser, ParserError
|
|
5
|
+
from .interpreter import Interpreter, RuntimeErrorSutra
|
|
6
|
+
from .ai_engine import Tensor
|
|
7
|
+
|
|
8
|
+
__version__ = "9.3.0"
|
|
9
|
+
__all__ = ["Lexer", "LexerError", "Parser", "ParserError", "Interpreter", "RuntimeErrorSutra", "Tensor", "__version__"]
|