{"id":36647748,"url":"https://github.com/containerbuildsystem/pyarn","last_synced_at":"2026-01-12T10:02:26.637Z","repository":{"id":37710010,"uuid":"312312224","full_name":"containerbuildsystem/pyarn","owner":"containerbuildsystem","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-30T13:36:21.000Z","size":181,"stargazers_count":6,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-10T10:24:25.743Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containerbuildsystem.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}},"created_at":"2020-11-12T15:07:55.000Z","updated_at":"2024-10-30T13:34:21.000Z","dependencies_parsed_at":"2024-06-21T07:09:51.551Z","dependency_job_id":"b1e52d39-a592-4496-842b-bc7d39997314","html_url":"https://github.com/containerbuildsystem/pyarn","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/containerbuildsystem/pyarn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fpyarn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fpyarn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fpyarn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fpyarn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containerbuildsystem","download_url":"https://codeload.github.com/containerbuildsystem/pyarn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fpyarn/sbom","scorecard":{"id":303284,"data":{"date":"2025-08-11","repo":{"name":"github.com/containerbuildsystem/pyarn","commit":"ae472b6bc26f850cf7fe606b60650c1ff5021cc7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"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":10,"reason":"all changesets reviewed","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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/gating.yaml: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":"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/gating.yaml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/pyarn/gating.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gating.yaml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/pyarn/gating.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gating.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/pyarn/gating.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gating.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/pyarn/gating.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:28","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:29","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:38","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:39","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:40","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:50","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:51","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:52","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:76","Warn: pipCommand not pinned by hash: .github/workflows/gating.yaml:77","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 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":"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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: 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":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T21:19:11.692Z","repository_id":37710010,"created_at":"2025-08-17T21:19:11.692Z","updated_at":"2025-08-17T21:19:11.692Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-12T10:02:26.570Z","updated_at":"2026-01-12T10:02:26.623Z","avatar_url":"https://github.com/containerbuildsystem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/containerbuildsystem/pyarn/badge.svg?branch=master)](https://coveralls.io/github/containerbuildsystem/pyarn?branch=master)\n\n# PYarn\n\nIf, for some weird reason, you need to parse a Yarn's `yarn.lock` file using\nPython, you are in the right place!\n\nPYarn is currently in an early developmente stage. It will create a dict from a\nyarn.lock file, given the yarn.lock file is correct as per [its\nimplementation](https://github.com/yarnpkg/yarn/blob/master/src/lockfile/parse.js).\nAt this moment, there is no guarantees that PYarn will behave well (e.g., raise\nan error) in case a malformed Yarn lockfile is passed to PYarn.\n\nPYarn only supports Yarn v1 lockfiles. Parsing Yarn v2 lockfiles should be\ntrivial since they are yaml files.\n\n## Development\n\n```\nmake devel\nmake check\n```\n\n## Usage\n\nThe following prints all the content in the `yarn.lock` file:\n\n```\nfrom pyarn import lockfile\n\nmy_lockfile = lockfile.Lockfile.from_file(FILE_NAME)\nprint(my_lockfile.data)\n# or\nmy_lockfile.to_json()\n```\n\n`my_lockfile.data` is a `dict` where the top level keys are the top level entries\n(i.e., the package names) for the `yarn.lock` file entries.\n\n## Releasing\n\nBefore releasing a new version to PyPI, don't forget to bump the version number in\n[setup.cfg](./setup.cfg).\n\nMake sure to `git tag` the release commit with the corresponding version and create\na Github release explaining what is new.\n\nAfterwards, releasing to PyPI is quite simple:\n\n```shell\nmake build\ntwine check dist/*\ntwine upload dist/*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainerbuildsystem%2Fpyarn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainerbuildsystem%2Fpyarn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainerbuildsystem%2Fpyarn/lists"}