Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 707 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 707 Bytes

JarManifest

Extract manifest information from Java library files (jars).

Description

Use this library to look at jar META-INF/MANIFEST files and extract Implementation-Title, and Implementation-Version. Based on the specification of jars found here

Installation

pip install virtualenv

A jarmanfiest.cfg file should you copied to your python's etc directory

Usage

$ python3
>>> from jarmanifest import manifest
>>> manifest.getAttributes('/tmp/spring/META-INF/MANIFEST.MF')
[{'implementationtitle': 'org.springframework.core', 'implementationversion': '3.1.3.RELEASE'}]