molang


Namemolang JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/legopitstop/molang
SummaryMolang to Python Translator & interpreter written in pure Python.
upload_time2024-01-19 02:06:44
maintainer
docs_urlNone
authorLegopitstop
requires_python>=3.6
licenseMIT
keywords minecraft: bedrock edition molang language
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)
[![Issues](https://img.shields.io/github/issues/legopitstop/molang)](https://github.com/legopitstop/molang/issues)

Molang to Python Translator & interpreter written in pure Python.

Documentation: https://molang.readthedocs.io/

## Installation

Install the module with pip:

```bat
pip3 install molang
```

Update existing installation: `pip3 install molang --upgrade`

## 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": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "Minecraft: Bedrock Edition,molang,language",
    "author": "Legopitstop",
    "author_email": "officiallegopitstop@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/98/02/5070e042a25995e0027c6aa6bd87a3254eefe9ad94c295e961414bf77115/molang-0.0.2.tar.gz",
    "platform": null,
    "description": "# molang\r\n\r\n[![PyPI](https://img.shields.io/pypi/v/molang)](https://pypi.org/project/molang/)\r\n[![Python](https://img.shields.io/pypi/pyversions/molang)](https://www.python.org/downloads//)\r\n![Downloads](https://img.shields.io/pypi/dm/molang)\r\n![Status](https://img.shields.io/pypi/status/molang)\r\n[![Issues](https://img.shields.io/github/issues/legopitstop/molang)](https://github.com/legopitstop/molang/issues)\r\n\r\nMolang to Python Translator & interpreter written in pure Python.\r\n\r\nDocumentation: https://molang.readthedocs.io/\r\n\r\n## Installation\r\n\r\nInstall the module with pip:\r\n\r\n```bat\r\npip3 install molang\r\n```\r\n\r\nUpdate existing installation: `pip3 install molang --upgrade`\r\n\r\n## Features\r\n\r\n- Decorator to convert a Python function to Molang.\r\n- Execute .molang files from the command line or using Python. See [Road map](#road-map)\r\n\r\nSee the docs for more information.\r\n\r\n## Example\r\n\r\nConvert `my_function` to Molang\r\n\r\n```python\r\nfrom molang import molang\r\n\r\n@molang\r\ndef my_function(a, b):\r\n    return a + b\r\n\r\nprint(my_function)\r\n\r\n>> return t.a+t.b\r\n```\r\n\r\n## Command-line interface\r\n\r\n```\r\nusage: molang [-h] [-V]\r\n\r\nRun molang files\r\n\r\noptions:\r\n  -h, --help     show this help message and exit\r\n  -V, --version  print the molang version number and exit.\r\n\r\n```\r\n\r\n## Road map\r\n\r\n- [x] Python function to Molang\r\n- [ ] Interpreter\r\n- [ ] Lexer\r\n- [ ] Parser\r\n- [ ] cli to convert Python code to Molang code (vice versa)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Molang to Python Translator & interpreter written in pure Python.",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/legopitstop/molang"
    },
    "split_keywords": [
        "minecraft: bedrock edition",
        "molang",
        "language"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "98025070e042a25995e0027c6aa6bd87a3254eefe9ad94c295e961414bf77115",
                "md5": "88989b16ce607b9d68fa1cf54426121b",
                "sha256": "1babb29a3be9c23646049d59303b29db5b90ff3ea436330fd04cab21b86333e5"
            },
            "downloads": -1,
            "filename": "molang-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "88989b16ce607b9d68fa1cf54426121b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4820,
            "upload_time": "2024-01-19T02:06:44",
            "upload_time_iso_8601": "2024-01-19T02:06:44.202029Z",
            "url": "https://files.pythonhosted.org/packages/98/02/5070e042a25995e0027c6aa6bd87a3254eefe9ad94c295e961414bf77115/molang-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-19 02:06:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "legopitstop",
    "github_project": "molang",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "molang"
}
        
Elapsed time: 0.16294s