{"id":19407241,"url":"https://github.com/carlwgeorge/repomd","last_synced_at":"2025-04-24T09:31:31.946Z","repository":{"id":26711406,"uuid":"109591301","full_name":"carlwgeorge/repomd","owner":"carlwgeorge","description":"Python library for parsing dnf/yum repositories","archived":false,"fork":false,"pushed_at":"2022-06-19T06:12:13.000Z","size":48,"stargazers_count":18,"open_issues_count":8,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T02:22:10.237Z","etag":null,"topics":["dnf","rpm","yum"],"latest_commit_sha":null,"homepage":"","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/carlwgeorge.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}},"created_at":"2017-11-05T15:26:42.000Z","updated_at":"2024-05-15T11:11:12.000Z","dependencies_parsed_at":"2022-07-25T16:18:03.353Z","dependency_job_id":null,"html_url":"https://github.com/carlwgeorge/repomd","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlwgeorge%2Frepomd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlwgeorge%2Frepomd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlwgeorge%2Frepomd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlwgeorge%2Frepomd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlwgeorge","download_url":"https://codeload.github.com/carlwgeorge/repomd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249188426,"owners_count":21227015,"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","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":["dnf","rpm","yum"],"created_at":"2024-11-10T11:45:48.867Z","updated_at":"2025-04-24T09:31:31.617Z","avatar_url":"https://github.com/carlwgeorge.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# repomd\n\n[![build status](https://api.cirrus-ci.com/github/carlwgeorge/repomd.svg)](https://cirrus-ci.com/github/carlwgeorge/repomd/master)\n[![pypi](https://img.shields.io/pypi/v/repomd.svg)](https://pypi.org/project/repomd/)\n[![fedora](https://img.shields.io/badge/RPM-Fedora-blue.svg)](https://src.fedoraproject.org/rpms/python-repomd)\n\nThis library provides an object-oriented interface to get information out of dnf/yum repositories.\n\n## Usage\n\n```python\n\u003e\u003e\u003e import repomd\n\n\u003e\u003e\u003e repo = repomd.load('https://mirror.rackspace.com/centos/7/updates/x86_64/')\n\n\u003e\u003e\u003e repo\n\u003cRepo: \"https://mirror.rackspace.com/centos/7/updates/x86_64/\"\u003e\n```\n\nThe length of the `Repo` object indicates the number of packages in the repository.\n\n```python\n\u003e\u003e\u003e len(repo)\n1602\n```\n\nFind a package by name.\n\n```python\n\u003e\u003e\u003e repo.find('systemd')\n\u003cPackage: \"systemd-219-57.el7_5.3.x86_64\"\u003e\n```\n\nFind all packages of a given name.\n\n```python\n\u003e\u003e\u003e repo.findall('systemd')\n[\u003cPackage: \"systemd-219-57.el7_5.1.x86_64\"\u003e, \u003cPackage: \"systemd-219-57.el7_5.3.x86_64\"\u003e]\n```\n\nA `Package` instance has many useful properties.\n\n```python\n\u003e\u003e\u003e package = repo.find('systemd')\n\n\u003e\u003e\u003e package.name\n'systemd'\n\n\u003e\u003e\u003e package.version\n'219'\n\n\u003e\u003e\u003e package.build_time\ndatetime.datetime(2018, 9, 26, 14, 11, 37)\n\n\u003e\u003e\u003e package.nevr\n'systemd-219-57.el7_5.3'\n```\n\nIterate through packages in the repository.\n\n```python\n\u003e\u003e\u003e for package in repo:\n...     print(package.nvr)\n389-ds-base-1.3.7.5-19.el7_5\n389-ds-base-1.3.7.5-21.el7_5\n389-ds-base-1.3.7.5-24.el7_5\n(and so on)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlwgeorge%2Frepomd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlwgeorge%2Frepomd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlwgeorge%2Frepomd/lists"}