Commit 98fa4865 authored by Fred. Galusik's avatar Fred. Galusik

fixes

parent 02e1d298
Copyright (c) 2013, Frédéric Galusik
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of {{the ORGANIZATION nor the names of its contributors}} may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY {{THE COPYRIGHT HOLDERS AND CONTRIBUTORS}} "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL {{THE COPYRIGHT HOLDER OR CONTRIBUTORS}} BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
include *.rst
include LICENSE
Metadata-Version: 1.1
Name: ParsePkgtxt
Version: 0.1
Summary: Parse a Slackware PACKAGES.TXT and build a dictionnary
Home-page: https://gitlab.com/alienus/ParsePkgtxt
Author: Frédéric Galusik
Author-email: f at galusik.xyz
License: BSD revised
Description: ParsePkgtxt
###########
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:
.. code-block:: sh
pip install ParsePkgtxt
Usage example:
==============
.. code-block:: python
>>> from ParsePkgtxt import Package
>>> for k, v in Package.parse(Package(), 'PACKAGES.TXT').iteritems():
>>> ....print ';'.join([k,v[0],v[9])
Output:
-------
.. code-block::
package1_name;package1_version;package1_description
package2_name;package2_version;package2_description
...
...
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Utilities
LICENSE
MANIFEST.in
README.rst
setup.py
ParsePkgtxt/__init__.py
ParsePkgtxt/parsepkgtxt.py
ParsePkgtxt.egg-info/PKG-INFO
ParsePkgtxt.egg-info/SOURCES.txt
ParsePkgtxt.egg-info/dependency_links.txt
ParsePkgtxt.egg-info/top_level.txt
\ No newline at end of file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This class read and parse a Slackware Linux PACKAGES.TXT file and build
a dictionnary which contains all packages names as keys and all detailed
informations about the packages as values (version, arch, release,
dependancies, location, sizes, slackdesc).
"""
__version__ = "0.1"
from parsepkgtxt import Package
ParsePkgtxt
###########
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:
.. code-block:: sh
pip install ParsePkgtxt
Usage example:
==============
.. code-block:: python
>>> from ParsePkgtxt import Package
>>> for k, v in Package.parse(Package(), 'PACKAGES.TXT').iteritems():
>>> ....print ';'.join([k,v[0],v[9])
Output:
-------
.. code-block::
package1_name;package1_version;package1_description
package2_name;package2_version;package2_description
...
...
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment