repomd
This library provides an object-oriented interface to get information out of dnf/yum repositories.
Usage
>>> import repomd
>>> repo = repomd.load('https://mirror.rackspace.com/centos/7/updates/x86_64/')
>>> repo
<Repo: "https://mirror.rackspace.com/centos/7/updates/x86_64/">
The length of the Repo object indicates the number of packages in the repository.
>>> len(repo)
1602
Find a package by name.
>>> repo.find('systemd')
<Package: "systemd-219-57.el7_5.3.x86_64">
Find all packages of a given name.
>>> repo.findall('systemd')
[<Package: "systemd-219-57.el7_5.1.x86_64">, <Package: "systemd-219-57.el7_5.3.x86_64">]
A Package instance has many useful properties.
>>> package = repo.find('systemd')
>>> package.name
'systemd'
>>> package.version
'219'
>>> package.build_time
datetime.datetime(2018, 9, 26, 14, 11, 37)
>>> package.nevr
'systemd-219-57.el7_5.3'
Iterate through packages in the repository.
>>> for package in repo:
... print(package.nvr)
389-ds-base-1.3.7.5-19.el7_5
389-ds-base-1.3.7.5-21.el7_5
389-ds-base-1.3.7.5-24.el7_5
(and so on)
Metadata
Release files for repomd 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| repomd-0.2.1.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| repomd-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / repomd-0.2.1.tar.gz
| Download URL | repomd-0.2.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30bd9c329ba465e5b6c5e14ab008260c53fac61e138040b34b19489f3971d7aa
|
|
BLAKE2b-256 checksum How to use checksums |
54ef47155c061ac6cbdaa9b12f236474bb40f09a044f7ecb9d66d00d29a61496
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / repomd-0.2.1-py3-none-any.whl
| Download URL | repomd-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e286a96fbde45c74e0dee5b2a57dece9b9e47798ded2f0e2d164570c81eda65
|
|
BLAKE2b-256 checksum How to use checksums |
9186eaf3c0a16e6e25d97bc0cdefc200e02bf26dcf9e61eb8f7bedfbabffe47e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for repomd 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.