Name | calciumlang JSON |
Version |
0.0.5
JSON |
| download |
home_page | None |
Summary | A Calcium language interpreter |
upload_time | 2025-07-12 05:35:10 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | None |
keywords |
calcium
interpreter
json
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# calcium-py
A Calcium language intepreter on Python
## What is Calcium language?
Calcium is a programming language that takes a JSON array as input. It is interoperable with the Python language, allowing you to utilize Python's standard libraries and more. It is primarily designed as a subset of Python.
## How to create the interpreter and run Calcium code
```python
from calciumlang.runtime import Runtime
# Calcium code is given as a JSON array.
calcium_code = [
[1, [], "#", "0.0.5"],
[1, [], "expr", ["call", ["var", "print"], ["Hello, World."]]],
[1, [], "end"],
]
# The Runtime executes Calcium code.
r = Runtime(calcium_code)
r.run() # outputs 'Hello, World.'
```
## Applications using Calcium
With Blockly, [you can generate Calcium code in the visual environment](https://capg.app/). This editor produces Calcium code (a JSON array) that can be executed by the calcium-py runtime.
Raw data
{
"_id": null,
"home_page": null,
"name": "calciumlang",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "calcium, interpreter, json",
"author": null,
"author_email": "0xCAF2 <roki@0xcaf2.dev>",
"download_url": "https://files.pythonhosted.org/packages/f9/d2/4cf56db8ba894871854b380e41ca9042bd5fb9c479a620833a7ba7bd2b6c/calciumlang-0.0.5.tar.gz",
"platform": null,
"description": "# calcium-py\n\nA Calcium language intepreter on Python\n\n## What is Calcium language?\n\nCalcium is a programming language that takes a JSON array as input. It is interoperable with the Python language, allowing you to utilize Python's standard libraries and more. It is primarily designed as a subset of Python.\n\n## How to create the interpreter and run Calcium code\n\n```python\nfrom calciumlang.runtime import Runtime\n\n# Calcium code is given as a JSON array.\ncalcium_code = [\n [1, [], \"#\", \"0.0.5\"],\n [1, [], \"expr\", [\"call\", [\"var\", \"print\"], [\"Hello, World.\"]]],\n [1, [], \"end\"],\n]\n\n# The Runtime executes Calcium code.\nr = Runtime(calcium_code)\nr.run() # outputs 'Hello, World.'\n```\n\n## Applications using Calcium\n\nWith Blockly, [you can generate Calcium code in the visual environment](https://capg.app/). This editor produces Calcium code (a JSON array) that can be executed by the calcium-py runtime.\n",
"bugtrack_url": null,
"license": null,
"summary": "A Calcium language interpreter",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/0xCAF2/calciumlang"
},
"split_keywords": [
"calcium",
" interpreter",
" json"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7c8af847935a146ee48df63b5ca800a48ec569639643c1eeb143691297cfde6c",
"md5": "318cc30df5a878ecfb513dda7bdbd311",
"sha256": "f6193ed867081a4bc0d80a752792351bb866a5a07e48507d0c8e824d1a9f7869"
},
"downloads": -1,
"filename": "calciumlang-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "318cc30df5a878ecfb513dda7bdbd311",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 22054,
"upload_time": "2025-07-12T05:35:08",
"upload_time_iso_8601": "2025-07-12T05:35:08.892043Z",
"url": "https://files.pythonhosted.org/packages/7c/8a/f847935a146ee48df63b5ca800a48ec569639643c1eeb143691297cfde6c/calciumlang-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f9d24cf56db8ba894871854b380e41ca9042bd5fb9c479a620833a7ba7bd2b6c",
"md5": "6dfade8241de859d5976c8672090e722",
"sha256": "b7cdb40ab1f31f75733405f21533a07e69172052abdc3cccdb1c80b71bc44c0a"
},
"downloads": -1,
"filename": "calciumlang-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "6dfade8241de859d5976c8672090e722",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 21310,
"upload_time": "2025-07-12T05:35:10",
"upload_time_iso_8601": "2025-07-12T05:35:10.382267Z",
"url": "https://files.pythonhosted.org/packages/f9/d2/4cf56db8ba894871854b380e41ca9042bd5fb9c479a620833a7ba7bd2b6c/calciumlang-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-12 05:35:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "0xCAF2",
"github_project": "calciumlang",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "calciumlang"
}