{"id":35225717,"url":"https://github.com/srossross/rpmfile","last_synced_at":"2026-04-02T02:07:42.470Z","repository":{"id":13136830,"uuid":"15819002","full_name":"srossross/rpmfile","owner":"srossross","description":"Read rmp archive files","archived":false,"fork":false,"pushed_at":"2025-08-15T13:37:58.000Z","size":118,"stargazers_count":29,"open_issues_count":10,"forks_count":40,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-02T05:37:11.404Z","etag":null,"topics":["python","python3","rpm","rpm-files","zipfile"],"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/srossross.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":"2014-01-11T08:00:49.000Z","updated_at":"2025-10-28T14:08:27.000Z","dependencies_parsed_at":"2024-06-18T18:15:55.573Z","dependency_job_id":"1cbc8891-ae42-41a8-ae48-d7bfaab22e0a","html_url":"https://github.com/srossross/rpmfile","commit_stats":{"total_commits":92,"total_committers":16,"mean_commits":5.75,"dds":"0.40217391304347827","last_synced_commit":"c0498cd5173afb6fb0af9ed5c7d61335b7c9af0e"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/srossross/rpmfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srossross%2Frpmfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srossross%2Frpmfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srossross%2Frpmfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srossross%2Frpmfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srossross","download_url":"https://codeload.github.com/srossross/rpmfile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srossross%2Frpmfile/sbom","scorecard":{"id":844155,"data":{"date":"2025-08-11","repo":{"name":"github.com/srossross/rpmfile","commit":"4d4a0bb4db6e632dd9402aa56a4e4cb06b6a7948"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"Code-Review","score":2,"reason":"Found 6/26 approved changesets -- score normalized to 2","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":"Maintained","score":0,"reason":"1 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/srossross/rpmfile/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/srossross/rpmfile/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/srossross/rpmfile/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/srossross/rpmfile/tests.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:32","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   3 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: 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 2.1.0 not signed: https://api.github.com/repos/srossross/rpmfile/releases/167018937","Warn: release artifact 2.0.0 not signed: https://api.github.com/repos/srossross/rpmfile/releases/128821473","Warn: release artifact 1.1.1 not signed: https://api.github.com/repos/srossross/rpmfile/releases/96249867","Warn: release artifact 2.1.0 does not have provenance: https://api.github.com/repos/srossross/rpmfile/releases/167018937","Warn: release artifact 2.0.0 does not have provenance: https://api.github.com/repos/srossross/rpmfile/releases/128821473","Warn: release artifact 1.1.1 does not have provenance: https://api.github.com/repos/srossross/rpmfile/releases/96249867"],"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":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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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-23T21:04:40.723Z","repository_id":13136830,"created_at":"2025-08-23T21:04:40.724Z","updated_at":"2025-08-23T21:04:40.724Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["python","python3","rpm","rpm-files","zipfile"],"created_at":"2025-12-30T01:05:04.009Z","updated_at":"2026-04-02T02:07:42.455Z","avatar_url":"https://github.com/srossross.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rpmfile\n\n[![Build Status](https://travis-ci.org/srossross/rpmfile.svg?branch=master)](https://travis-ci.org/srossross/rpmfile)\n[![Actions Status](https://github.com/srossross/rpmfile/workflows/Tests/badge.svg?branch=master\u0026event=push)](https://github.com/srossross/rpmfile/actions)\n[![PyPI version](https://img.shields.io/pypi/v/rpmfile.svg)](https://pypi.org/project/rpmfile)\n\nTools for inspecting RPM files in python. This module is modeled after the\n[tarfile](https://docs.python.org/3/library/tarfile.html) module.\n\n## Install\n\n```console\n$ python -m pip install -U rpmfile\n```\n\nIf you want to use `rpmfile` with `zstd` compressed rpms, you'll need to install\nthe  [zstandard](https://pypi.org/project/zstandard/) module.\n\n`zstd` also requires that you are using Python \u003e= 3.5\n\n```console\n$ python -m pip install -U zstandard\n```\n\n## Example\n\nSee the [tests](tests/test_extract.py) for more examples.\n\n```python\nimport rpmfile\n\nwith rpmfile.open('file.rpm') as rpm:\n\n    # Inspect the RPM headers\n    print(rpm.headers.keys())\n    print(rpm.headers.get('arch', 'noarch'))\n\n    # Extract a fileobject from the archive\n    fd = rpm.extractfile('./usr/bin/script')\n    print(fd.read())\n\n    for member in rpm.getmembers():\n        print(member)\n```\n\n## Command line usage\n\nYou can use `rpmfile` via it's module invocation or via `rpmfile` command if\nyour `PATH` environment variable is configured correctly. Pass `--help` for all\noptions.\n\nList RPM contents\n\n```conosle\ncurl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | python -m rpmfile -l -\n./path/to/file\n```\n\nExtract files\n\n```conosle\ncurl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | rpmfile -xv -\n./path/to/file\n```\n\nExtract files to directory\n\n```conosle\ncurl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | rpmfile -xvC /tmp -\n/tmp/path/to/file\n```\n\nDisplay RPM information (similar to command `rpm -qip` in Linux)\n\n```conosle\ncurl -sfL 'https://example.com/some.rpm.gz' |gzip -d - | rpmfile -i -\nName        : something\nVersion     : 1.02\nRelease     : 1\nArchitecture: noarch\nGroup       : default\nSize        : 1234\nLicense     : BSD\nSignature   : None\nSource RPM  : some.src.rpm\nBuild Date  : Tue Apr  9 08:55:16 2019\nBuild Host  : demo\nURL         : http://example.com/some\nSummary     : Example of something\nDescription : \nThe description of something.\nIt can display more than one line.\n```\n\n\n## Classes\n\n* rpmfile.RPMFile: The RPMFile object provides an interface to a RPM archive\n* rpmfile.RPMInfo: An RPMInfo object represents one member in a RPMFile.\n\n## Contributing\n\nThe [black](https://github.com/psf/black) formater should be used on all files\nbefore submitting a contribution. Version 19.10b0.\n\n```console\n$ pip install black==19.10b0\n$ black .\n```\n\n## Code in this module was borrowed from:\n\n* https://bitbucket.org/krp/cpiofile\n* https://github.com/mjvm/pyrpm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrossross%2Frpmfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrossross%2Frpmfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrossross%2Frpmfile/lists"}