('Self-contained library to deal with metadata in Enthought-specific eggs',)
Project description
Okonomiyaki is an experimental library aimed at consolidating a lot of our low-level code used for Enthought’s eggs.
The library contains code for the following:
producing EDM and enpkg-compatible egg from a tree + metadata
object models for eggs metadata, as well as versions and platform representations
It works on both python 2 and 3, and pypy. It is expected to work on pretty much any compliant python implementation.
Examples
Version parsing
To parse versions:
from okonomiyaki.versions import EnpkgVersion # Every Version class has a from_string constructor v1 = EnpkgVersion.from_string("1.3.3-1") v2 = EnpkgVersion.from_string("1.3.2-3") assert v1 > v2
Version instances are designed to be immutable, and to be used as keys in dictionaries.
Platform parsing
To parse epd platform strings (rh5-64, rh6_x86_64, etc.) consistently:
from okonomiyaki.platforms import EPDPlatform # Internal representation is normalized. rh5_new_name = EPDPlatform.from_string("rh5-x86_64") rh5_old_name = EPDPlatform.from_string("rh5-64") assert rh5_old_name == rh5_new_name
As for Version instances, EPDPlatform instances are designed to be immutable and to be used as keys in dictionaries.
Egg metadata
To parse Enthought eggs:
from okonomiyaki.file_formats import EggMetadata # Only works for Enthought eggs metadata = EggMetadata.from_egg("numpy-1.10.1-1.egg") print(metadata.metadata_version) print(metadata.name) print(metadata.version)
This will take care of a lot of low-level, legacy details you don’t want to know about.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file okonomiyaki-1.3.1.tar.gz
.
File metadata
- Download URL: okonomiyaki-1.3.1.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7d45e69dfa9316600a551661dc37d35aa7be189f027b6ab47e8f45742661008 |
|
MD5 | ab3abd572799f3ddcc4a594bc4d1b5e1 |
|
BLAKE2b-256 | cfb4710c5e991e2bfc716a2cd26ad9d2c80853910e4ced80d3e3eab600afe9d8 |
File details
Details for the file okonomiyaki-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: okonomiyaki-1.3.1-py3-none-any.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a77113f457138d179ea06ef7afe21a724a8cee4503c2056557ab1565e5e12a85 |
|
MD5 | 60f538a896d632fc7f3b63152da89839 |
|
BLAKE2b-256 | 8bf0173e3e5a65e7d9aadf3004ccd649e596f5097eb8357bd901def3ca8db5b5 |