~fredg/ParsePkgtxt

98fa4865bef4f9c05227d27230e26cb14975a2c1 — Fred. Galusik 9 years ago 02e1d29 master
fixes
A LICENSE => LICENSE +12 -0
@@ 0,0 1,12 @@
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

A MANIFEST.in => MANIFEST.in +2 -0
@@ 0,0 1,2 @@
include *.rst
include LICENSE

A ParsePkgtxt.egg-info/PKG-INFO => ParsePkgtxt.egg-info/PKG-INFO +51 -0
@@ 0,0 1,51 @@
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

A ParsePkgtxt.egg-info/SOURCES.txt => ParsePkgtxt.egg-info/SOURCES.txt +10 -0
@@ 0,0 1,10 @@
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

A ParsePkgtxt.egg-info/dependency_links.txt => ParsePkgtxt.egg-info/dependency_links.txt +1 -0
@@ 0,0 1,1 @@


A ParsePkgtxt.egg-info/top_level.txt => ParsePkgtxt.egg-info/top_level.txt +1 -0
@@ 0,0 1,1 @@
ParsePkgtxt

A ParsePkgtxt/__init__.py => ParsePkgtxt/__init__.py +13 -0
@@ 0,0 1,13 @@
#!/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

A README.rst => README.rst +34 -0
@@ 0,0 1,34 @@
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
    ...
    ...


A setup.cfg => setup.cfg +5 -0
@@ 0,0 1,5 @@
[egg_info]
tag_build = 
tag_date = 0
tag_svn_revision = 0