Blame
Date:
Sun May 10 06:03:05 2015 UTC
Message:
fixes
01
2015-05-10
f
Metadata-Version: 1.1
02
2015-05-10
f
Name: ParsePkgtxt
03
2015-05-10
f
Version: 0.1
04
2015-05-10
f
Summary: Parse a Slackware PACKAGES.TXT and build a dictionnary
05
2015-05-10
f
Home-page: https://gitlab.com/alienus/ParsePkgtxt
06
2015-05-10
f
Author: Frédéric Galusik
07
2015-05-10
f
Author-email: f at galusik.xyz
08
2015-05-10
f
License: BSD revised
09
2015-05-10
f
Description: ParsePkgtxt
10
2015-05-10
f
###########
11
2015-05-10
f
12
2015-05-10
f
A Python Class to parse a Slackware linux PACKAGES.TXT file in order to build
13
2015-05-10
f
a dictionnary with packages names as keys and packages detailed informations
14
2015-05-10
f
as values.
15
2015-05-10
f
16
2015-05-10
f
You can install it via pip:
17
2015-05-10
f
18
2015-05-10
f
.. code-block:: sh
19
2015-05-10
f
20
2015-05-10
f
pip install ParsePkgtxt
21
2015-05-10
f
22
2015-05-10
f
23
2015-05-10
f
Usage example:
24
2015-05-10
f
==============
25
2015-05-10
f
26
2015-05-10
f
.. code-block:: python
27
2015-05-10
f
28
2015-05-10
f
>>> from ParsePkgtxt import Package
29
2015-05-10
f
>>> for k, v in Package.parse(Package(), 'PACKAGES.TXT').iteritems():
30
2015-05-10
f
>>> ....print ';'.join([k,v[0],v[9])
31
2015-05-10
f
32
2015-05-10
f
33
2015-05-10
f
Output:
34
2015-05-10
f
-------
35
2015-05-10
f
36
2015-05-10
f
.. code-block::
37
2015-05-10
f
38
2015-05-10
f
package1_name;package1_version;package1_description
39
2015-05-10
f
package2_name;package2_version;package2_description
40
2015-05-10
f
...
41
2015-05-10
f
...
42
2015-05-10
f
43
2015-05-10
f
44
2015-05-10
f
Platform: UNKNOWN
45
2015-05-10
f
Classifier: Programming Language :: Python
46
2015-05-10
f
Classifier: Development Status :: 4 - Beta
47
2015-05-10
f
Classifier: License :: OSI Approved :: BSD License
48
2015-05-10
f
Classifier: Natural Language :: English
49
2015-05-10
f
Classifier: Operating System :: OS Independent
50
2015-05-10
f
Classifier: Programming Language :: Python :: 2.7
51
2015-05-10
f
Classifier: Topic :: Utilities
Frédéric Galusik