Metadata-Version: 1.1
Name: python-pragmatic
Version: 0.3.0
Summary: Pragmatic tools and utilities for Python projects
Home-page: https://github.com/PragmaticMates/python-pragmatic
Author: Pragmatic Mates
Author-email: info@pragmaticmates.com
License: BSD License
Description: python-pragmatic
        ================
        
        Pragmatic tools and utilities for Python projects.
        
        Tested on Python 2.7.
        
        
        Requirements
        ------------
        Some utilities require additional libraries as:
        
        - Pillow/PIL
        - pyBarcode
        
        
        Installation
        ------------
        
        Using pip: pip install python-pragmatic
        
        
        Usage
        -----
        
        Classes
        '''''''
        ``get_subclasses(classes, level=0)``
            Return the list of all subclasses for given class (or list of classes).
        
        ``get_parent_classes(class)``
            Return the list of all parent classes for given class.
        
        Dates
        '''''''
        ``diff_month(date_from, date_to)``
            Returns number of months between dates 'date_from' and 'date_to'
        
        Numbers
        '''''''
        ``round_to_n_decimal_places(value, n)``
            Returns number rounded to n decimal places.
        
        OS
        ''''
        ``base64_to_file(content, file_path)``
            Stores base64 encoded content to file.
        
        Strings
        '''''''
        ``generate_hash(length=5)``
            Returns random generated string
        
        ``barcode(code, args=None)``
            Returns barcode as string encoded in base64 format.
        
        ``remove_accents(input)``
            Returns input string without accent characters.
        
        
        Thirdparty
        ''''''''''
        ``class BarcodeImageWriter(ImageWriter)``
            Fixed version of barcode.writer.ImageWriter.
        
Keywords: pragmatic tools utils
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Development Status :: 3 - Alpha
