Metadata-Version: 2.1
Name: inspecta
Version: 0.1.0
Summary: Python application configuration - highly inspired by `node-config`.
Home-page: https://github.com/grimen/python-inspecta
Author: Jonas Grimfelt
Author-email: grimen@gmail.com
License: MIT
Download-URL: https://github.com/grimen/python-inspecta
Project-URL: bugs, https://github.com/grimen/python-inspecta/issues
Project-URL: repository, https://github.com/grimen/python-inspecta
Description: 
        # `inspecta` [![Build Status](https://travis-ci.com/grimen/python-inspecta.svg?branch=master)](https://travis-ci.com/grimen/python-inspecta) [![PyPI version](https://badge.fury.io/py/inspecta.svg)](https://badge.fury.io/py/inspecta)
        
        *A colorized object pretty printer - for Python.*
        
        ## Introduction
        
        The default `pprint` is not human friendly enough - color syntax highlighting to the rescue.
        
        
        ## Install
        
        Install using **pip**:
        
        ```sh
        $ pip install inspecta
        ```
        
        
        ## Use
        
        Very basic **[example](https://github.com/grimen/python-inspecta/tree/master/examples/basic.py)**:
        
        ```python
        import inspecta
        
        data = {
            'foo': {
                'bar': {
                    'baz': [
                        {
                            'a': 1,
                            'b': 'two',
                            'c': ('three', 4, 'five')
                        }
                    ]
                }
            },
            'bar': [1, 2, 3],
            'baz': True
        }
        
        print('\n.inspect(data)\n')
        
        print(inspecta.inspect(data))
        
        print('\n.print(data)\n')
        
        inspecta.print(data)
        ```
        
        Run this with optional environment variables `COLORS` / `ERROR_COLORS` set too truthy or falsy values, so see various error info formatting in terminal.
        
        Something like this (imagine some colorized formatting):
        
        ```bash
        
        .inspect(data)
        
        {   'bar': [1, 2, 3],
            'baz': True,
            'foo': {'bar': {'baz': [{'a': 1, 'b': 'two', 'c': ('three', 4, 'five')}]}}}
        
        
        .print(data)
        
        {   'bar': [1, 2, 3],
            'baz': True,
            'foo': {'bar': {'baz': [{'a': 1, 'b': 'two', 'c': ('three', 4, 'five')}]}}}
        
        
        ```
        
        
        ## Test
        
        Clone down source code:
        
        ```sh
        $ make install
        ```
        
        Run **colorful tests**, with only native environment (dependency sandboxing up to you):
        
        ```sh
        $ make test
        ```
        
        Run **less colorful tests**, with **multi-environment** (using **tox**):
        
        ```sh
        $ make test-tox
        ```
        
        
        ## About
        
        This project was mainly initiated - in lack of solid existing alternatives - to be used at our work at **[Markable.ai](https://markable.ai)** to have common code conventions between various programming environments where **Python** (research, CV, AI) is heavily used.
        
        
        ## License
        
        Released under the MIT license.
        
Keywords: config,configuration,configurations,settings,env,environment,environments,application,node-config,python-config
Platform: UNKNOWN
Classifier: Topic :: Software Development :: Libraries
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Description-Content-Type: text/markdown
