{"id":50474924,"url":"https://github.com/softwarefactory-project/distroinfo","last_synced_at":"2026-06-01T12:31:32.747Z","repository":{"id":57418682,"uuid":"125094367","full_name":"softwarefactory-project/distroinfo","owner":"softwarefactory-project","description":"python module for parsing, validating and querying distribution/packaging metadata stored in human readable and reviewable text/YAML files","archived":false,"fork":false,"pushed_at":"2024-11-22T10:05:54.000Z","size":658,"stargazers_count":5,"open_issues_count":4,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-27T10:30:08.060Z","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/softwarefactory-project.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2018-03-13T18:07:48.000Z","updated_at":"2024-11-22T09:50:22.000Z","dependencies_parsed_at":"2022-09-13T13:22:00.043Z","dependency_job_id":null,"html_url":"https://github.com/softwarefactory-project/distroinfo","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/softwarefactory-project/distroinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwarefactory-project%2Fdistroinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwarefactory-project%2Fdistroinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwarefactory-project%2Fdistroinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwarefactory-project%2Fdistroinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softwarefactory-project","download_url":"https://codeload.github.com/softwarefactory-project/distroinfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwarefactory-project%2Fdistroinfo/sbom","scorecard":{"id":836257,"data":{"date":"2025-08-11","repo":{"name":"github.com/softwarefactory-project/distroinfo","commit":"864841c1779f04c178c370fe7b6e76faeae290cb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":-1,"reason":"no workflows found","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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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: Apache License 2.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":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"}}]},"last_synced_at":"2025-08-23T19:08:12.023Z","repository_id":57418682,"created_at":"2025-08-23T19:08:12.023Z","updated_at":"2025-08-23T19:08:12.023Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33775857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":"2026-06-01T12:31:31.145Z","updated_at":"2026-06-01T12:31:32.735Z","avatar_url":"https://github.com/softwarefactory-project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"distroinfo\n==========\n\n``distroinfo`` is a python module for parsing, validating and querying\ndistribution/packaging metadata stored in human readable and reviewable\ntext/YAML files.\n\nThis is a proper generic (re)implementation of\n`rdoinfo \u003chttps://github.com/redhat-openstack/rdoinfo\u003e`__ parser which\nproved well suited for the task of interfacing with distribution\nmetadata in a human friendly way. If you consider code reviews human\nfriendly, that is.\n\n``distroinfo`` is a part of `Software Factory\nproject \u003chttps://softwarefactory-project.io/docs/\u003e`__\n\nSTATUS\n------\n\n``distroinfo`` is available from Fedora/EPEL repos and is **BEING\nINTEGRATED**.\n\n`rdopkg \u003chttps://github.com/softwarefactory-project/rdopkg\u003e`__ and\n`DLRN \u003chttps://github.com/softwarefactory-project/DLRN\u003e`__ are first\nadopters.\n\n``rdoinfo`` compatibility is ensured through offline and online tests.\n\nCI is enabled.\n\nSee `distroinfo\nreviews \u003chttps://softwarefactory-project.io/dashboard/project_distroinfo\u003e`__.\n\nUse github\n`Issues \u003chttps://github.com/softwarefactory-project/distroinfo/issues\u003e`__\nto make requests and report bugs.\n\nInstallation\n------------\n\nfrom source\n~~~~~~~~~~~\n\nIf you want to hack ``distroinfo`` or just have the latest code without\nwaiting for next release, you can use the git repo directly:\n\n::\n\n    git clone https://github.com/softwarefactory-project/distroinfo\n    cd distroinfo\n    python setup.py develop --user\n\nYou may set the preference over ``distroinfo`` RPM by correctly\npositioning ``~/.local/bin/distroinfo`` in your ``$PATH``.\n\nOr you can use virtualenv to avoid conflicts with RPM:\n\n::\n\n    git clone https://github.com/softwarefactory-project/distroinfo\n    cd distroinfo\n    virtualenv --system-site-packages ~/distroinfo-venv\n    source ~/distroinfo-venv/bin/activate\n    python setup.py develop\n    ln `which distroinfo` ~/bin/distroinfo-dev\n\n    distroinfo-dev --version\n\nRequired python modules are listed in\n`requirements.txt \u003crequirements.txt\u003e`__.\n\nfrom Fedora/EPEL repos (default)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n``distroinfo`` is available on **Fedora 27** and newer:\n\n::\n\n    dnf install python2-distroinfo\n\nincluding Python 3 version:\n\n::\n\n    dnf install python3-distroinfo\n\nOn CentOS/RHEL 7, ``distroinfo`` is available from\n`EPEL \u003chttps://fedoraproject.org/wiki/EPEL\u003e`__.\n\nOn **CentOS 7**:\n\n::\n\n    yum install epel-release\n    yum install python2-distroinfo\n\nOn **RHEL 7**:\n\n::\n\n    yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n    yum install python2-distroinfo\n\nfrom PyPI\n~~~~~~~~~\n\nFor your convenience, ``distroinfo`` is available from the Cheese Shop:\n\n::\n\n    pip install distroinfo\n\nUsage\n-----\n\nYou can **fetch info files from an URL** by specifying ``remote_info``\nbase URL:\n\n::\n\n    from distroinfo.info import DistroInfo\n\n    RDOINFO_RAW_URL = \\\n        'https://raw.githubusercontent.com/redhat-openstack/rdoinfo/master/'\n\n    di = DistroInfo('rdo-full.yml',\n                    remote_info=RDOINFO_RAW_URL)\n    info = di.get_info()\n\nOr you can **fetch info files from a remote git repository** using\n``remote_git_info``:\n\n::\n\n    from distroinfo.info import DistroInfo\n\n    RDOINFO_GIT_URL = \\\n        'https://github.com/redhat-openstack/rdoinfo'\n\n    di = DistroInfo('rdo-full.yml',\n                    remote_git_info=RDOINFO_GIT_URL)\n    info = di.get_info()\n\nOr you can **fetch info files from a local directory** using\n``local_info``:\n\n::\n\n    from distroinfo.info import DistroInfo\n\n    INFO_PATH = '/path/to/info'\n\n    di = DistroInfo('rdo-full.yml',\n                    local_info=INFO_PATH)\n    info = di.get_info()\n\nFor remote fetchers info files/repos are cached in\n``~/.distroinfo/cache``.\n\nYou can navigate info structure yourself or use ``query`` module:\n\n::\n\n    from distroinfo import query\n\n    # get a package info by strict package name\n    nova = query.get_package(info, 'openstack-nova')\n\n    # find a package by human reference (smart search)\n    keystone = query.find_package(info, 'keystone')\n\nAlternatively, you can get info with ``packages`` and ``releases`` as\ndictionaries indexed by project/release name for easier access using\n``info_dicts=True``:\n\n::\n\n    info = di.get_info(info_dicts=True)\n    nova = info['packages']['nova']\n\nIt is also possible to filter packages matching a given criteria.\nThe following query will show all packages matching criteria conf: client AND tags: antelope.\n\n::\n    # rexen is a dictionary of applied filters.\n    # pkg is the currently processed package.\n    info = di.get_info()\n    pkgs = info['packages']\n    rexen = {\"conf\": \"client\", \"tags\": \"antelope\"}\n\n    finding = query.filter_pkgs(pkgs, rexen)\n\nIt is also possible to apply negative filtering with \"~\" character, which\ncan be combined with other filters, like conf: client.\n\n::\n    info = di.get_info()\n    pkgs = info['packages']\n    rexen = {\"tags\": \"~newton\", \"conf\": \"client\"}\n    finding = query.filter_pkgs(pkgs, rexen)\n\nWhen using this feature, the output will contain packages WITHOUT newton tag but\ncontaining conf:client.\n\nUntil proper documentation is in place, please refer to:\n\n-  `rdoinfo \u003chttps://github.com/redhat-openstack/rdoinfo\u003e`__ for prime\n   example of ``distroinfo`` format usage\n-  `rdoinfo integration\n   tests \u003chttps://github.com/softwarefactory-project/distroinfo/blob/master/tests/integration/test_rdoinfo_online.py\u003e`__\n   for code examples\n-  `dlrn.drivers.rdoinfo \u003chttps://github.com/softwarefactory-project/DLRN/blob/master/dlrn/drivers/rdoinfo.py\u003e`__\n   for a real world code that uses tags and\n   ``remote_git_info``/``local_info``\n-  `distroinfo.info \u003chttps://github.com/softwarefactory-project/distroinfo/blob/master/distroinfo/info.py\u003e`__\n   to RTFS\n\nCommand Line Interface\n----------------------\n\nA simple CLI is provided in ``scripts/di.py`` which can be used to test\nbasic ``distroinfo`` functionality, profile, dump parsed data, etc.\n\nAn example of dumping parsed rdoinfo into both YAML and JSON files:\n\n::\n\n    $\u003e ./scripts/di.py dump -y rdoinfo.yaml -j rdoinfo.json -f git \\\n           'https://github.com/redhat-openstack/rdoinfo' rdo-full.yml\n\n    Dumping YAML to: rdoinfo.yaml\n    Dumping JSON to: rdoinfo.json\n\nAdditional ``docopt`` module is required to run the CLI.\n\nBugs\n----\n\nPlease use the `github\nIssues \u003chttps://github.com/softwarefactory-project/distroinfo/issues\u003e`__\nto report bugs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwarefactory-project%2Fdistroinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftwarefactory-project%2Fdistroinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwarefactory-project%2Fdistroinfo/lists"}