Metadata-Version: 2.0
Name: logfmt
Version: 0.1
Summary: Parse log lines in the logfmt style.
Home-page: UNKNOWN
Author: Timothee Peignier
Author-email: timothee.peignier@tryphon.org
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Utilities

.. image:: https://secure.travis-ci.org/jkakar/logfmt-python.png?branch=master 

Logfmt
======

Python package for parsing log lines in the `logfmt` style.  See the
original project by Blake Mizerany and Keith Rarick for information
about `logfmt` conventions and use: https://github.com/kr/logfmt


Using logfmt
------------

Easily process lines from `logfmt` formatted input: ::

    from logfmt import parse

    input = StringIO('\n'.join(['key1=value1', 'key2=value2']))
    for values in parse(input):
        print values

This program produces this output: ::

    {'key1': 'value1'}
    {'key2': 'value2'}

Installation
------------

To install it, simply: ::

    pip install logfmt



