Comments (2)
Here's how I did this with requests
in the meantime.
LATEST_COMPOSE = 'http://url.example.com/path/to/latest-Ceph-2-RHEL-7/'
url = os.path.join(LATEST_COMPOSE, 'compose/metadata/rpm-manifest.json')
r = requests.get(url)
r.raise_for_status()
rpms = productmd.rpms.Rpms()
rpms.loads(r.text)
And now I can do something with the Rpms object, eg:
nvrs = set()
for arches in rpms.rpms.values():
for builds in arches.values():
for nevra in builds:
nevra_dict = productmd.common.parse_nvra(nevra)
nvrs.add('%(name)s-%(version)s-%(release)s' % nevra_dict)
# (... do something more with "nvrs" set, etc)
from productmd.
Fixed in 2d1f50d
from productmd.
Related Issues (20)
- get_date_type_respin does not handle 'ci' type
- RFE: add container metadata HOT 2
- RFE: add module metadata HOT 1
- more options for BaseProduct.type HOT 3
- New release needed HOT 2
- Please add Microsoft Hyper-V image type to supported formats. HOT 2
- Bad error handling when loading existing image metadata
- get_release_id(major_version=True) doesn't work well with layered products using X.Y.Z version scheme HOT 2
- push python-productmd-1.18-1 tag to GitHub HOT 1
- get_minor_version returns incorrect data
- Parse of opensuse treeinfo fails. HOT 6
- Documentation for treeinfo 1.2 is missing
- `invalid literal for int() with base 10` for build_timestamp
- 1.33: sphinx warnings HOT 1
- 1.33: pytest is failing HOT 1
- Drop support for Python 2
- Add support for euleros HOT 1
- `Compose()` cannot find composes in s3
- RFE: is it possible to restart making github releases?🤔
- MetadataBase.loads performs validation, but MetadataBase.load appears not to do validation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from productmd.