{"id":32557698,"url":"https://github.com/neumond/python-computer-craft","last_synced_at":"2025-10-28T23:19:44.790Z","repository":{"id":54147408,"uuid":"75475679","full_name":"neumond/python-computer-craft","owner":"neumond","description":"Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!","archived":false,"fork":false,"pushed_at":"2023-11-19T22:29:19.000Z","size":367,"stargazers_count":77,"open_issues_count":7,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-02T05:57:49.261Z","etag":null,"topics":["computercraft","minecraft","python"],"latest_commit_sha":null,"homepage":null,"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/neumond.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2016-12-03T13:36:36.000Z","updated_at":"2025-08-20T07:34:57.000Z","dependencies_parsed_at":"2023-11-06T13:41:04.189Z","dependency_job_id":"f62df494-fe3d-41d9-83cd-7c2dcce8fd5c","html_url":"https://github.com/neumond/python-computer-craft","commit_stats":{"total_commits":67,"total_committers":1,"mean_commits":67.0,"dds":0.0,"last_synced_commit":"d1145c5995ce391e03987b209d95f913e7544eaa"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/neumond/python-computer-craft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neumond%2Fpython-computer-craft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neumond%2Fpython-computer-craft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neumond%2Fpython-computer-craft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neumond%2Fpython-computer-craft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neumond","download_url":"https://codeload.github.com/neumond/python-computer-craft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neumond%2Fpython-computer-craft/sbom","scorecard":{"id":681358,"data":{"date":"2025-08-11","repo":{"name":"github.com/neumond/python-computer-craft","commit":"f1e4a14425cfcc787a3534e8fb4f37e96488ec15"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.3.0 not signed: https://api.github.com/repos/neumond/python-computer-craft/releases/28487353","Warn: release artifact 0.2.0 not signed: https://api.github.com/repos/neumond/python-computer-craft/releases/28211912","Warn: release artifact 0.1.1 not signed: https://api.github.com/repos/neumond/python-computer-craft/releases/4825890","Warn: release artifact 0.3.0 does not have provenance: https://api.github.com/repos/neumond/python-computer-craft/releases/28487353","Warn: release artifact 0.2.0 does not have provenance: https://api.github.com/repos/neumond/python-computer-craft/releases/28211912","Warn: release artifact 0.1.1 does not have provenance: https://api.github.com/repos/neumond/python-computer-craft/releases/4825890"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/neumond/python-computer-craft/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/neumond/python-computer-craft/build.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:4: pin your Docker image by updating python:3.8-alpine to python:3.8-alpine@sha256:3d93b1f77efce339aa77db726656872517b0d67837989aa7c4b35bd5ae7e81ba","Warn: containerImage not pinned by hash: Dockerfile:16: pin your Docker image by updating python:3.8-alpine to python:3.8-alpine@sha256:3d93b1f77efce339aa77db726656872517b0d67837989aa7c4b35bd5ae7e81ba","Warn: pipCommand not pinned by hash: Dockerfile:11","Warn: pipCommand not pinned by hash: Dockerfile:20","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:25","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2023-120 / GHSA-45c4-8wx5-qw6w","Warn: Project is vulnerable to: GHSA-5m98-qgg9-wh84","Warn: Project is vulnerable to: GHSA-7gpw-8wmc-pm8g","Warn: Project is vulnerable to: GHSA-8495-4g3g-x7pr","Warn: Project is vulnerable to: PYSEC-2024-26 / GHSA-8qpw-xqxj-h4r2","Warn: Project is vulnerable to: GHSA-9548-qrrj-x5pj","Warn: Project is vulnerable to: PYSEC-2023-246 / GHSA-gfw2-4jvh-wgfg","Warn: Project is vulnerable to: GHSA-pjjw-qhg8-p2p9","Warn: Project is vulnerable to: PYSEC-2023-250 / GHSA-q3qx-c6g2-7pw2","Warn: Project is vulnerable to: PYSEC-2023-251 / GHSA-qvrw-v9rv-5rjx","Warn: Project is vulnerable to: PYSEC-2021-76 / GHSA-v6wp-4m6f-gcjg","Warn: Project is vulnerable to: PYSEC-2023-247 / GHSA-xx9p-xxvh-7g8j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T23:16:40.441Z","repository_id":54147408,"created_at":"2025-08-21T23:16:40.441Z","updated_at":"2025-08-21T23:16:40.441Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281163045,"owners_count":26454248,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["computercraft","minecraft","python"],"created_at":"2025-10-28T23:19:44.021Z","updated_at":"2025-10-28T23:19:44.784Z","avatar_url":"https://github.com/neumond.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pythonized CC Tweaked (ComputerCraft) API\n\n**Warning**: CPython can't build safe sandboxes for arbitrary untrusted code\n[(read more)](https://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html).\nNever use code in this repo if you don't trust your players!\n\n\n1. Before you start Minecraft, enable localhost in mod server config\n\n    In case of singleplayer it's located inside your saves folder.\n    In case of multiplayer check your server folder.\n\n    Edit `computercraft-server.toml`\n\n    ```toml\n    [[http.rules]]\n\t\thost = \"127.0.0.0/8\"\n\t\taction = \"allow\"  # change here deny to allow\n    ```\n\n2. Install \u0026 start python language server\n\n    Choose one of the following:\n\n    Docker way:\n\n    ```sh\n    docker run -it -p 8080:8080 neumond/python-computer-craft\n    ```\n\n    Install \u0026 run manually:\n\n    ```sh\n    pip install computercraft\n    python -m computercraft.server\n    ```\n\n3. Start Minecraft, open up any computer and type:\n\n    ```sh\n    wget http://127.0.0.1:8080/ py\n    py\n    ```\n\n    Now you have python REPL in computercraft!\n    To quit REPL type `exit()` and press enter.\n\n    To run any program:\n\n    ```sh\n    py program.py  # relative to current dir\n    py /path/to/program.py\n    ```\n\n`py` is short Lua program that interacts with the server.\n`cc` module contains almost everything *as is* in ComputerCraft documentation:\n\n```python\nfrom cc import disk, os\n\ndisk.eject('right')\nprint(os.getComputerLabel())\n```\n\nOpening a file:\n\n```python\nfrom cc import fs\n\nwith fs.open('filename', 'r') as f:\n    for line in f:\n        print(line)\n```\n\nWaiting for event (`os.captureEvent` instead `os.pullEvent`):\n\n```python\nfrom cc import os\n\ntimer_id = os.startTimer(2)\nfor e in os.captureEvent('timer'):\n    if e[0] == timer_id:\n        print('Timer reached')\n        break\n```\n\nUsing modems:\n\n```python\nfrom cc import peripheral\n\nmodem = peripheral.wrap('back')\nlisten_channel = 5\n# this automatically opens and closes modem on listen_channel\nfor msg in modem.receive(listen_channel):\n    print(repr(msg))\n    if msg.content == 'stop':\n        break\n    else:\n        modem.transmit(msg.reply_channel, listen_channel, msg.content)\n```\n\nUsing parallel:\n\n```python\nfrom cc import parallel, os\n\ndef fn():\n    os.sleep(2)\n    print('done')\n\nparallel.waitForAll(fn, fn, fn)\n```\n\nImporting in-game files as modules:\n\n```python\nfrom cc import import_file\n\np = import_file('/disk/program.py')  # absolute\nm = import_file('lib.py', __file__)  # relative to current file\n```\n\nMore examples can be found in this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneumond%2Fpython-computer-craft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneumond%2Fpython-computer-craft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneumond%2Fpython-computer-craft/lists"}