{"id":20783588,"url":"https://github.com/tuprolog/2ppy","last_synced_at":"2025-09-14T05:05:48.389Z","repository":{"id":43373345,"uuid":"392939615","full_name":"tuProlog/2ppy","owner":"tuProlog","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-09T01:48:19.000Z","size":7697,"stargazers_count":1,"open_issues_count":19,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T03:59:48.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuProlog.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-05T07:04:43.000Z","updated_at":"2024-11-18T10:06:19.000Z","dependencies_parsed_at":"2025-05-18T03:33:10.269Z","dependency_job_id":"1830c91f-0aa9-4627-b431-4657ea97ab34","html_url":"https://github.com/tuProlog/2ppy","commit_stats":{"total_commits":99,"total_committers":3,"mean_commits":33.0,"dds":0.04040404040404044,"last_synced_commit":"ae56fb0cc01a4128b5e4426bdd79b7d1950ea2dd"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":"pikalab-unibo/python-structure-example","purl":"pkg:github/tuProlog/2ppy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuProlog%2F2ppy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuProlog%2F2ppy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuProlog%2F2ppy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuProlog%2F2ppy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuProlog","download_url":"https://codeload.github.com/tuProlog/2ppy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuProlog%2F2ppy/sbom","scorecard":{"id":291634,"data":{"date":"2025-08-04","repo":{"name":"github.com/tuProlog/2ppy","commit":"a0ca8401ae23303717368e27966bfa0014c73d5f"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3.1,"checks":[{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/14 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Warn: no topLevel permission defined: .github/workflows/quick-check.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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"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/deploy.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/tuProlog/2ppy/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/tuProlog/2ppy/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick-check.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/tuProlog/2ppy/quick-check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick-check.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/tuProlog/2ppy/quick-check.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:36","Warn: pipCommand not pinned by hash: .github/workflows/quick-check.yml:35","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.4.0 not signed: https://api.github.com/repos/tuProlog/2ppy/releases/56267705","Warn: release artifact 0.3.4.dev2 not signed: https://api.github.com/repos/tuProlog/2ppy/releases/56267378","Warn: release artifact 0.3.4 not signed: https://api.github.com/repos/tuProlog/2ppy/releases/55880311","Warn: release artifact 0.3.3 not signed: https://api.github.com/repos/tuProlog/2ppy/releases/54119977","Warn: release artifact 0.3.2.dev9 not signed: https://api.github.com/repos/tuProlog/2ppy/releases/54119904","Warn: release artifact 0.4.0 does not have provenance: https://api.github.com/repos/tuProlog/2ppy/releases/56267705","Warn: release artifact 0.3.4.dev2 does not have provenance: https://api.github.com/repos/tuProlog/2ppy/releases/56267378","Warn: release artifact 0.3.4 does not have provenance: https://api.github.com/repos/tuProlog/2ppy/releases/55880311","Warn: release artifact 0.3.3 does not have provenance: https://api.github.com/repos/tuProlog/2ppy/releases/54119977","Warn: release artifact 0.3.2.dev9 does not have provenance: https://api.github.com/repos/tuProlog/2ppy/releases/54119904"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T18:24:09.893Z","repository_id":43373345,"created_at":"2025-08-17T18:24:09.893Z","updated_at":"2025-08-17T18:24:09.893Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275062966,"owners_count":25398888,"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-09-14T02:00:10.474Z","response_time":75,"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":[],"created_at":"2024-11-17T14:21:13.852Z","updated_at":"2025-09-14T05:05:48.372Z","avatar_url":"https://github.com/tuProlog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2PPy (tuProlog in Python)\n\nExperimental porting of [2P-Kt](https://github.com/tuProlog/2p-kt) on Python, via [JPype](https://jpype.readthedocs.io).\n\n\u003e This is a __work in progress__. 2PPy is not ready for general availability, yet.\n\n## Introduction\n\nObject-oriented and modular ecosystem for symbolic AI and logic programming, currently featuring:\n\n* a module for logic terms and clauses representation, namely `tuprolog.core`,\n\n* a module for logic unification, namely `tuprolog.unify`,\n\n* a module for in-memory indexing and storing logic theories, as well as other sorts of collections of logic clauses, namely `tuprolog.theory`,\n\n* a module providing generic API for resolution of logic queries, namely `tuprolog.solve`, currently implementing a Prolog solver\n\n* two parsing modules: one aimed at parsing terms, namely `tuprolog.core.parsing`, and the other aimed at parsing theories, namely `tuprolog.theory.parsing`,\n\n* two serialisation-related modules: one aimed at (de)serialising terms and clauses, namely `tuprolog.core.serialize`, and the \nother aimed at  (de)serialising terms theories, namely `tuprolog.theory.serialize`,\n\n* a module for using Prolog via a command-line interface, namely `tuprolog.repl`.\n\n## How to do stuff\n\n### Prerequisites\n\n1. Install Python 3 (look into the `.python-version` to know the exact version)\n    * I suggest using [Pyenv](https://github.com/pyenv/pyenv) to easily handle multiple Python versions on the same machine\n    * Ensure PIP works fine\n\n2. Install Java (JDK preferred), and **ensure the `JAVA_HOME` variable is correctly set**\n\n3. Ensure Java and Python are both either 64bit or 32bit\n\n4. If you have installed some prior development version of 2PPy (e.g. `tuppy` or `tuprolog`), uninstall them via\n    ```bash\n    pip uninstall tuppy tuprolog\n    ```\n    On __Mac OS__ this may not work as expected.\n    Consider running the following command instead:\n    ```bash\n    python3 -m pip uninstall tuppy tuprolog\n    ```\n\n### How to develop 2PPy\n\n5. Restore Python dependencies via PIP, by running:\n    ```bash\n    pip install -r requirements.txt\n    ```\n    On __Mac OS__ this may not work as expected.\n    Consider running the following command instead:\n    ```bash\n    python3 -m pip -r requirements.txt\n    ```\n\n6. Restore JVM dependencies via `download-jars.sh`, by running:\n    ```bash\n    ./download-jars.sh\n    ```\n    Notice that this command requires `curl` and `wget` to be installed on your system (`wget` may be lacking on __Mac OS__ and Windows)\n\n### How to use 2PPy as a library\n\n5. Install 2PPy from Pypi by running:\n    ```bash\n    pip install 2ppy\n    ```\n    On __Mac OS__ this may not work as expected.\n    Consider running the following command instead:\n    ```bash\n    python3 -m pip install 2ppy\n    ```\n   \n6. Import `tuprolog.*` modules in your Python scripts\n\n7. Profit\n\n### How to use 2PPy as an executable\n\n5. Install 2PPy from Pypi by running:\n    ```bash\n    pip install 2ppy\n    ```\n    On __Mac OS__ this may not work as expected.\n    Consider running the following command instead:\n    ```bash\n    python3 -m pip install 2ppy\n    ```\n   \n6. Run `tuprolog` module via\n   ```bash\n   python -m tuprolog\n   ```\n\nFor the moment, running 2PPy means starting an interactive Python shell with pre-loaded `tuprolog.*` modules.\n\nEventually `python -m tuprolog` will launch a command-line logic solver.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuprolog%2F2ppy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuprolog%2F2ppy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuprolog%2F2ppy/lists"}