Name | brolog JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Prolog interpreter written in Python |
upload_time | 2024-03-24 20:25:56 |
maintainer | None |
docs_url | None |
author | Tomas R. |
requires_python | >=3.11 |
license | MIT License Copyright (c) 2024 Tomas R Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
qr
qr code
image processing
augmented reality
computer vision
opencv
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## Brolog - Prolog interpreter written in Python
### Installation
```bash
pip install brolog
```
### CLI usage
```bash
brolog input.pl
```
```prolog
?- list([]).
true.
?- list([1,2]).
true.
?- append(X, Y, [1,2,3]).
X = [1,2],
Y = 3.
?- append([1], X, [4,5]).
false.
```
Using this file as input:
```prolog
list([]).
list([_|T]) :- list(T).
append([], X, [X]).
append([H|T], X, [H|R]) :- append(T, X, R).
```
### Supported builtins
- Lists: `[H|T]`, `[1,2]`, ..
- Cut: `!`
- Arbitrary symbolic functions: `f()`, `g(a, b)`, ..
### TODO
- (WIP) Use networkx to generate the SDL tree of a query
- Add more commonly used builtins
Raw data
{
"_id": null,
"home_page": null,
"name": "brolog",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "QR, QR code, Image processing, Augmented reality, Computer vision, opencv",
"author": "Tomas R.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/05/e6/89e7b51f60210a466630a1ec1b3c12b29c5d6ed975574656009852449e0c/brolog-0.1.0.tar.gz",
"platform": null,
"description": "## Brolog - Prolog interpreter written in Python\n\n### Installation\n\n```bash\npip install brolog\n```\n\n### CLI usage\n\n```bash\nbrolog input.pl\n```\n\n```prolog\n?- list([]).\ntrue.\n\n?- list([1,2]).\ntrue.\n\n?- append(X, Y, [1,2,3]).\nX = [1,2],\nY = 3.\n\n?- append([1], X, [4,5]).\nfalse.\n\n```\n\nUsing this file as input:\n\n```prolog\nlist([]).\nlist([_|T]) :- list(T).\n\nappend([], X, [X]).\nappend([H|T], X, [H|R]) :- append(T, X, R).\n```\n\n### Supported builtins\n\n- Lists: `[H|T]`, `[1,2]`, ..\n- Cut: `!`\n- Arbitrary symbolic functions: `f()`, `g(a, b)`, ..\n\n### TODO\n\n- (WIP) Use networkx to generate the SDL tree of a query\n- Add more commonly used builtins\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Tomas R Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Prolog interpreter written in Python",
"version": "0.1.0",
"project_urls": {
"Github": "https://github.com/tomasr8/brolog",
"Homepage": "https://github.com/tomasr8/brolog"
},
"split_keywords": [
"qr",
" qr code",
" image processing",
" augmented reality",
" computer vision",
" opencv"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7e160f250d762180b34ed185efb01141b4d7f825d195a90f36bf86db82bfa17d",
"md5": "84f40bc94dfdd6ab5334a842bf4fc6c1",
"sha256": "fc71c66d1ef044ce417fe4c812b57e6fd4b0396bf483963a1ae7164dd3a69c62"
},
"downloads": -1,
"filename": "brolog-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "84f40bc94dfdd6ab5334a842bf4fc6c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 10575,
"upload_time": "2024-03-24T20:25:54",
"upload_time_iso_8601": "2024-03-24T20:25:54.215349Z",
"url": "https://files.pythonhosted.org/packages/7e/16/0f250d762180b34ed185efb01141b4d7f825d195a90f36bf86db82bfa17d/brolog-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "05e689e7b51f60210a466630a1ec1b3c12b29c5d6ed975574656009852449e0c",
"md5": "bff3008f670379eef64d20248a46f2ea",
"sha256": "806505865282ac2fc53e1dbde23bd9a9f7b9d945f8d4a86afc88bd06e6907628"
},
"downloads": -1,
"filename": "brolog-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "bff3008f670379eef64d20248a46f2ea",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 11040,
"upload_time": "2024-03-24T20:25:56",
"upload_time_iso_8601": "2024-03-24T20:25:56.043683Z",
"url": "https://files.pythonhosted.org/packages/05/e6/89e7b51f60210a466630a1ec1b3c12b29c5d6ed975574656009852449e0c/brolog-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-24 20:25:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tomasr8",
"github_project": "brolog",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "brolog"
}