Returns the contents of the manifest and pom.properties file of a given jar file in the dictionary format. This is originaly repository https://github.com/badari412/jarmanifestreader. This is forked. I added function to find metainfo file to read pom.properties and MANIFES file
Project description
jarmetainforeader
Returns and prints the contents of the manifest, pom.xml and pom.properties file of a given jar file in the dictionary format.
Originaly, This is forked from https://github.com/badari412/jarmanifestreader. I added function to find metafiles(MANIFES.MF, pom.xml and pom.properties).
Compatible with python versions > 3.x versions.
Installation:
pip install jarmetainforeader
Sample usage:
If you want to print result
>>> from jarmetainforeader import meta_file_reader
>>> meta_file_reader.print_manifest_contents('/Users/secuof/Downloads/commons-lang-2.4.jar')
>>>
>>> meta_file_reader.print_pom_properties_contents('/Users/secuof/Downloads/commons-lang-2.4.jar')
>>>
>>> meta_file_reader.print_pomxml_contents('/Users/secuof/Downloads/commons-lang-2.4.jar')
If you want to get data
>>> from jarmetainforeader import meta_file_reader
>>> meta_file_reader.get_manifest_contents('/Users/secuof/Downloads/commons-lang-2.4.jar')
>>>
>>> meta_file_reader.get_pom_properties_contents('/Users/secuof/Downloads/commons-lang-2.4.jar')
>>>
>>> meta_file_reader.get_pomxml_contents('/Users/secuof/Downloads/commons-lang-2.4.jar')
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 Distributions
Built Distribution
Hashes for jarmetainforeader-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b91e722c0be587b48bf756185d1248017e458846844df29128224ba3a0d2316b |
|
MD5 | f117afd5a008f5778221ef3d95d7c357 |
|
BLAKE2b-256 | dd9f57dbd82810a69d837ca4bc6e170c41150a5f1eaada2efcb8da4640246c84 |