# molang
[![PyPI](https://img.shields.io/pypi/v/molang)](https://pypi.org/project/molang/)
[![Python](https://img.shields.io/pypi/pyversions/molang)](https://www.python.org/downloads//)
![Downloads](https://img.shields.io/pypi/dm/molang)
![Status](https://img.shields.io/pypi/status/molang)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![Issues](https://img.shields.io/github/issues/legopitstop/molang)](https://github.com/legopitstop/molang/issues)
Molang to Python Translator & interpreter written in pure Python.
## Installation
Install the module with pip:
```bat
pip3 install molang
```
Update existing installation: `pip3 install molang --upgrade`
## Requirements
| Name | Description |
| ------------------------------------------------ | --------------------------------------- |
| [`pydantic`](https://pypi.org/project/pydantic/) | Data validation using Python type hints |
## Features
- Decorator to convert a Python function to Molang.
- Execute .molang files from the command line or using Python. See [Road map](#road-map)
See the docs for more information.
## Example
Convert `my_function` to Molang
```python
from molang import molang
@molang
def my_function(a, b):
return a + b
print(my_function)
>> return t.a+t.b
```
## Command-line interface
```
usage: molang [-h] [-V]
Run molang files
options:
-h, --help show this help message and exit
-V, --version print the molang version number and exit.
```
## Road map
- [x] Python function to Molang
- [ ] Interpreter
- [ ] Lexer
- [ ] Parser
- [ ] cli to convert Python code to Molang code (vice versa)
Raw data
{
"_id": null,
"home_page": "https://github.com/legopitstop/molang/",
"name": "molang",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "Minecraft: Bedrock Edition, molang, language",
"author": "Legopitstop",
"author_email": "contact@lpsmods.dev",
"download_url": "https://files.pythonhosted.org/packages/e2/27/13cc90bbdc82c19129ce0166e3b532c4f665a0c7f6bee1ad3e3da773d832/molang-0.0.3.tar.gz",
"platform": null,
"description": "# molang\n\n[![PyPI](https://img.shields.io/pypi/v/molang)](https://pypi.org/project/molang/)\n[![Python](https://img.shields.io/pypi/pyversions/molang)](https://www.python.org/downloads//)\n![Downloads](https://img.shields.io/pypi/dm/molang)\n![Status](https://img.shields.io/pypi/status/molang)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n[![Issues](https://img.shields.io/github/issues/legopitstop/molang)](https://github.com/legopitstop/molang/issues)\n\nMolang to Python Translator & interpreter written in pure Python.\n\n## Installation\n\nInstall the module with pip:\n\n```bat\npip3 install molang\n```\n\nUpdate existing installation: `pip3 install molang --upgrade`\n\n## Requirements\n\n| Name | Description |\n| ------------------------------------------------ | --------------------------------------- |\n| [`pydantic`](https://pypi.org/project/pydantic/) | Data validation using Python type hints |\n\n## Features\n\n- Decorator to convert a Python function to Molang.\n- Execute .molang files from the command line or using Python. See [Road map](#road-map)\n\nSee the docs for more information.\n\n## Example\n\nConvert `my_function` to Molang\n\n```python\nfrom molang import molang\n\n@molang\ndef my_function(a, b):\n return a + b\n\nprint(my_function)\n\n>> return t.a+t.b\n```\n\n## Command-line interface\n\n```\nusage: molang [-h] [-V]\n\nRun molang files\n\noptions:\n -h, --help show this help message and exit\n -V, --version print the molang version number and exit.\n\n```\n\n## Road map\n\n- [x] Python function to Molang\n- [ ] Interpreter\n- [ ] Lexer\n- [ ] Parser\n- [ ] cli to convert Python code to Molang code (vice versa)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Molang to Python Translator & interpreter written in pure Python.",
"version": "0.0.3",
"project_urls": {
"Documentation": "https://docs.lpsmods.dev/molang/",
"Download": "https://github.com/legopitstop/molang/releases",
"Homepage": "https://github.com/legopitstop/molang/",
"Source Code": "https://github.com/legopitstop/molang"
},
"split_keywords": [
"minecraft: bedrock edition",
" molang",
" language"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e22713cc90bbdc82c19129ce0166e3b532c4f665a0c7f6bee1ad3e3da773d832",
"md5": "fd3b5de1fdd0517d60aa724400c1be07",
"sha256": "efc779988a2d67615c0e90aeca9ed1f8edc4e35322e2f5add900314ba71c3647"
},
"downloads": -1,
"filename": "molang-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "fd3b5de1fdd0517d60aa724400c1be07",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5493,
"upload_time": "2024-11-26T00:13:06",
"upload_time_iso_8601": "2024-11-26T00:13:06.562900Z",
"url": "https://files.pythonhosted.org/packages/e2/27/13cc90bbdc82c19129ce0166e3b532c4f665a0c7f6bee1ad3e3da773d832/molang-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-26 00:13:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "legopitstop",
"github_project": "molang",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "molang"
}