{"id":21362824,"url":"https://github.com/legopitstop/molang-py","last_synced_at":"2026-01-27T20:31:05.777Z","repository":{"id":217983258,"uuid":"745258762","full_name":"legopitstop/molang-py","owner":"legopitstop","description":"Molang to Python Translator \u0026 interpreter written in pure Python.","archived":false,"fork":false,"pushed_at":"2024-11-26T00:12:37.000Z","size":2817,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T19:38:31.980Z","etag":null,"topics":["bedrock","hacktoberfest","language","minecraft","modtoberfest","molang"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/molang/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/legopitstop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":null,"patreon":"Legopitstop","open_collective":null,"ko_fi":"legopitstop","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2024-01-19T00:20:41.000Z","updated_at":"2024-12-09T16:02:01.000Z","dependencies_parsed_at":"2024-01-19T03:26:48.672Z","dependency_job_id":"4b3b2b3a-234f-49e0-b760-5038d6c9f373","html_url":"https://github.com/legopitstop/molang-py","commit_stats":null,"previous_names":["legopitstop/molang"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fmolang-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fmolang-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fmolang-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fmolang-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/legopitstop","download_url":"https://codeload.github.com/legopitstop/molang-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249062037,"owners_count":21206615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bedrock","hacktoberfest","language","minecraft","modtoberfest","molang"],"created_at":"2024-11-22T06:15:35.530Z","updated_at":"2026-01-27T20:31:05.747Z","avatar_url":"https://github.com/legopitstop.png","language":"Python","funding_links":["https://patreon.com/Legopitstop","https://ko-fi.com/legopitstop"],"categories":[],"sub_categories":[],"readme":"# 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 \u0026 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\u003e\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegopitstop%2Fmolang-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegopitstop%2Fmolang-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegopitstop%2Fmolang-py/lists"}