# sanskrit
Write programs in the fastest language, as confirmed by NASA.
## Installation
```bash
pip install sanskrit
```
Now put a `# coding: sanskrit` comment above your code to start programming in sanskrit!
## Usage
There's two ways to use `sanskrit`:
### As a REPL
Simply type `sanskrit` and it will bring up the `sanskrit` REPL:
```pycon
$ sanskrit
संस्कृत प्रोग्रामिंग 3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3 (clang-1403.0.22.14.1)]
>>> x = 42
>>> दर्शयतु(x) # print(x)
42
```
### In a project
- Simple for loop:
```python
# coding: sanskrit
सर्वेषां आई अन्तः सीमा(5): # for i in range(5):
दर्शयतु(आई) # print(i)
```
Output:
```console
$ python example.sanskrit
0
1
2
3
4
```
- `import this`:
```python
# -*- coding: sanskrit -*-
आयातम् इदम्
```
Output:
```console
$ python example.sanskrit
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
...
```
Raw data
{
"_id": null,
"home_page": "https://github.com/tusharsadhwani/sanskrit",
"name": "sanskrit",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Tushar Sadhwani",
"author_email": "tushar.sadhwani000@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/07/07/f381e2d00fc306177a9cc4d68b508a328a24bbb9e87da43fe673c5346f97/sanskrit-0.2.0.tar.gz",
"platform": null,
"description": "# sanskrit\n\nWrite programs in the fastest language, as confirmed by NASA.\n\n## Installation\n\n```bash\npip install sanskrit\n```\n\nNow put a `# coding: sanskrit` comment above your code to start programming in sanskrit!\n\n## Usage\n\nThere's two ways to use `sanskrit`:\n\n### As a REPL\n\nSimply type `sanskrit` and it will bring up the `sanskrit` REPL:\n\n```pycon\n$ sanskrit\n\u0938\u0902\u0938\u094d\u0915\u0943\u0924 \u092a\u094d\u0930\u094b\u0917\u094d\u0930\u093e\u092e\u093f\u0902\u0917 3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3 (clang-1403.0.22.14.1)]\n>>> x = 42\n>>> \u0926\u0930\u094d\u0936\u092f\u0924\u0941(x) # print(x)\n42\n```\n\n### In a project\n\n- Simple for loop:\n\n ```python\n # coding: sanskrit\n \u0938\u0930\u094d\u0935\u0947\u0937\u093e\u0902 \u0906\u0908 \u0905\u0928\u094d\u0924\u0903 \u0938\u0940\u092e\u093e(5): # for i in range(5):\n \u0926\u0930\u094d\u0936\u092f\u0924\u0941(\u0906\u0908) # print(i)\n ```\n\n Output:\n\n ```console\n $ python example.sanskrit\n 0\n 1\n 2\n 3\n 4\n ```\n\n- `import this`:\n\n ```python\n # -*- coding: sanskrit -*-\n \u0906\u092f\u093e\u0924\u092e\u094d \u0907\u0926\u092e\u094d\u200c\n ```\n\n Output:\n\n ```console\n $ python example.sanskrit\n The Zen of Python, by Tim Peters\n\n Beautiful is better than ugly.\n Explicit is better than implicit.\n ...\n ```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Write programs in the fastest language, as confirmed by NASA.",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/tusharsadhwani/sanskrit"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a496b8bf902d264672f3440ddde866ed70f43d2d7bedbe3a14d7087722337768",
"md5": "a1ccf384d937b7ba752f51bfd698597c",
"sha256": "e871f92b09aac697051a1d05dab0e1ce5cf2c2a3f205cb1ad8b5486e55766a85"
},
"downloads": -1,
"filename": "sanskrit-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a1ccf384d937b7ba752f51bfd698597c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4896,
"upload_time": "2024-01-11T02:19:03",
"upload_time_iso_8601": "2024-01-11T02:19:03.648315Z",
"url": "https://files.pythonhosted.org/packages/a4/96/b8bf902d264672f3440ddde866ed70f43d2d7bedbe3a14d7087722337768/sanskrit-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0707f381e2d00fc306177a9cc4d68b508a328a24bbb9e87da43fe673c5346f97",
"md5": "40ef10d4835c6493631241f95f80abee",
"sha256": "67a9bfa0f446d3f5b3a46579d95cb408a77d1ca7285e968e390b905140a107c0"
},
"downloads": -1,
"filename": "sanskrit-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "40ef10d4835c6493631241f95f80abee",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4653,
"upload_time": "2024-01-11T02:19:05",
"upload_time_iso_8601": "2024-01-11T02:19:05.153926Z",
"url": "https://files.pythonhosted.org/packages/07/07/f381e2d00fc306177a9cc4d68b508a328a24bbb9e87da43fe673c5346f97/sanskrit-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-11 02:19:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tusharsadhwani",
"github_project": "sanskrit",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "sanskrit"
}