Metadata-Version: 2.1
Name: ptutils
Version: 1.1.2
Summary: A repository of oft used functions and utility classes.
Home-page: https://www.principledtechnologies.com
Author: Christopher Wolfe
Author-email: cwolfe@principledtechnologies.com
License: Proprietary
Project-URL: Documentation, https://principled.technologies.gitlab.io/community/ptutils
Project-URL: Bug Tracker, https://gitlab.com/principled.technologies/community/ptutils/issues
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/x-rst; charset=UTF-8
License-File: LICENSE.txt

Principled Technologies Boilerplate Utilities
=============================================

.. cut-here

This library provides oft-reused boilerplate functions and classes. This library is under construction.  Please see LICENSE.txt for licensing information.
For the moment the `GitLab repository <https://www.gitlab.com/principled.technologies/community/ptutils>`_ is private, but will be made available soon.

Usage
-----

Install with PIP
^^^^^^^^^^^^^^^^

Install the package (or add it to your ``requirements.txt`` file):

.. code-block:: bash

    pip install ptutils


Import in Python
^^^^^^^^^^^^^^^^

Import the library in python:

.. code-block:: python

    from logging import getLogger
    from ptutils.io import File
    from ptutils.encoding import pretty_json

    logger = getLogger(__name__)
    f      = File('/etc/docker/daemon.json')
    data   = f.content
    text   = pretty_json( data )
    
    logger.debug( text )

