Parse a Slackware PACKAGES.TXT and build a dictionnary
Project description
A Python Class to parse a Slackware linux PACKAGES.TXT file in order to build a dictionnary with packages names as keys and packages detailed informations as values.
You can install it via pip:
pip install ParsePkgtxt
Usage example:
>>> from ParsePkgtxt import Package
>>> for k, v in Package.parse(Package(), 'PACKAGES.TXT').iteritems():
>>> ....print ';'.join([k,v[0],v[9])
Output:
package1_name;package1_version;package1_description
package2_name;package2_version;package2_description
...
...
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
ParsePkgtxt-0.1.tar.gz
(3.4 kB
view details)
File details
Details for the file ParsePkgtxt-0.1.tar.gz.
File metadata
- Download URL: ParsePkgtxt-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8674534f9c0fc42a4fc91c17a117d577b5000cd382ca1108847d94af98f53e3a
|
|
| MD5 |
5fb9041c90664bbfd0bfcb76a2336f9b
|
|
| BLAKE2b-256 |
9ec0b41015639dbcf7e4ae269a13f242956df20dc3c53462f8d294f5e5be71f7
|