{"id":13817148,"url":"https://github.com/thewii/integrity","last_synced_at":"2025-05-15T19:31:03.143Z","repository":{"id":36958145,"uuid":"479588047","full_name":"TheWii/integrity","owner":"TheWii","description":"A development toolkit for the bolt environment.","archived":false,"fork":false,"pushed_at":"2023-02-20T09:12:42.000Z","size":678,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T20:07:04.143Z","etag":null,"topics":["beet","bolt","mecha","minecraft"],"latest_commit_sha":null,"homepage":"https://thewii.github.io/integrity","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheWii.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2022-04-09T01:41:54.000Z","updated_at":"2024-03-16T00:32:44.000Z","dependencies_parsed_at":"2024-01-20T16:49:21.874Z","dependency_job_id":"133cf59e-d73b-439c-b9ab-4bb4b52c2973","html_url":"https://github.com/TheWii/integrity","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWii%2Fintegrity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWii%2Fintegrity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWii%2Fintegrity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWii%2Fintegrity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheWii","download_url":"https://codeload.github.com/TheWii/integrity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254407264,"owners_count":22066201,"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":["beet","bolt","mecha","minecraft"],"created_at":"2024-08-04T06:00:35.310Z","updated_at":"2025-05-15T19:31:02.623Z","avatar_url":"https://github.com/TheWii.png","language":"Python","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# Integrity\n\n[![GitHub Actions](https://github.com/thewii/integrity/workflows/CI/badge.svg)](https://github.com/thewii/integrity/actions)\n[![PyPI](https://img.shields.io/pypi/v/integrity.svg)](https://pypi.org/project/integrity/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/integrity.svg)](https://pypi.org/project/integrity/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n[![Discord](https://img.shields.io/discord/900530660677156924?color=7289DA\u0026label=discord\u0026logo=discord\u0026logoColor=fff)](https://discord.gg/98MdSGMm8j)\n\n\u003e Development facilities for the bolt environment\n\n```python\nfrom integrity import Component\n\nfrom ./settings import settings\nfrom ./blocks import blocks\nfrom ./player import player\n\nmain = Component()\n\nfunction main.on(\"main\"):\n    if score settings.data.activated obj matches 1:\n        main.run(\"active\")\n\nfunction main.on(\"active\"):\n    as @a at @s:\n        player.run(\"main\")\n\nfunction blocks.on(\"placed_by_player\"):\n    if block ~ ~ ~ stone expand:\n        say Placed stone!\n        player.run(\"placed_stone\")\n```\n\n## Installation\n\nThe package can be installed with `pip`. Note, you must have\nboth `beet` and `mecha` installed to use this package.\n\n```bash\n$ pip install integrity\n```\n\n## Getting Started\n\nTo use this package, we must add the plugin to the `require`\nsection in the `beet` project file alongside with `mecha` and\n`bolt`.\n\n```yaml\nrequire:\n    - bolt\n    - integrity\npipeline:\n    - mecha\n```\n\nNow that we've enabled `integrity`, we can import the module\ndirectly inside a bolt script\n\n```python\nfrom integrity import Component\n\nfoo = Component(\"foo\")\n```\n\n## Features\n\n- Components\n\n## Contributing\n\nContributions are welcome. Make sure to first open an issue\ndiscussing the problem or the new feature before creating a\npull request. The project uses [`poetry`](https://python-poetry.org).\n\n```bash\n$ poetry install\n```\n\nYou can run the tests with `poetry run pytest`.\n\n```bash\n$ poetry run pytest\n```\n\nThe project must type-check with [`pyright`](https://github.com/microsoft/pyright).\nIf you're using VSCode the [`pylance`](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)\nextension should report diagnostics automatically. You can also install\nthe type-checker locally with `npm install` and run it from the command-line.\n\n```bash\n$ npm run watch\n$ npm run check\n```\n\nThe code follows the [`black`](https://github.com/psf/black) code style.\nImport statements are sorted with [`isort`](https://pycqa.github.io/isort/).\n\n```bash\n$ poetry run isort bolt_expressions examples tests\n$ poetry run black bolt_expressions examples tests\n$ poetry run black --check bolt_expressions examples tests\n```\n\n---\n\nLicense - [MIT](https://github.com/rx-modules/bolt-expressions/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewii%2Fintegrity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthewii%2Fintegrity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewii%2Fintegrity/lists"}