semvec/pypi-packages huggingface dataset:
graystruct 0.1.1
Integration between structlog and graylog GELF, provided by graypy
License: BSD

============
 graystruct
============

Integration between structlog and graylog GELF, provided by graypy.


Rationale
=========

Structlog_ provides a rich tool for producing structured log messages
from applications.  Graypy_ provides a Python interface to emit logs in
the GELF_ format accepted by graylog_.  In effect, structlog_
pre-processes the _inputs_ to Python ``logging`` module, while graypy_
processes the outputs (``LogRecord`` instances), and neither expects the
other to be present.

``graystruct`` provides a small integration layer composed of two main
components that are used in conjunction with both structlog_ and
graypy_.  These components minimally alter the behaviour of structlog_
and graypy_ at their interface points so that they are able to cooperate
in producing structured logs.


Example
=======


.. code-block:: python

    >>> import logging
    >>> import structlog
    >>> from graystruct.encoder import GELFEncoder
    >>> from graystruct.handler import GELFHandler
    >>> from graystruct.utils import add_app_context
    >>> structlog.configure(
    ...     logger_factory=structlog.stdlib.LoggerFactory(),
    ...     processors=[
    ...         # Prevent exception formatting if logging is not configured
    ...         structlog.stdlib.filter_by_level,
    ...         # Add file, line, function information of where log occurred
    ...         add_app_context,
    ...         # Format positional args to log as in stdlib
    ...         structlog.stdlib.PositionalArgumentsFormatter(),
    ...         # Add a timestamp to log message
    ...         structlog.processors.TimeStamper(fmt='iso', utc=True),
    ...         # Dump stack if ``stack_info=True`` passed to log
    ...         structlog.processors.StackInfoRenderer(),
    ...         # Format exception info is ``exc_info`` passed to log
    ...         structlog.processors.format_exc_info,
    ...         # Encode the message in GELF format (this must be the final processor)
    ...         structlog.processors.GELFEncoder(),
    ...     ],
    ... )
    >>> std_logger = logging.getLogger()
    >>> std_logger.setLevel(logging.WARNING)
    >>> gelf_handler = GELFHandler('localhost', 12201)
    >>> std_logger.addHandler(gelf_handler)
    >>> logger = structlog.get_logger('some.package')
    # Will transmit a GELF-encoded message
    >>> logger.error('user.login', username='sjagoe')


.. _structlog: https://pypi.python.org/pypi/structlog
.. _Structlog: https://pypi.python.org/pypi/structlog

.. _graypy: https://pypi.python.org/pypi/graypy
.. _Graypy: https://pypi.python.org/pypi/graypy

.. _graylog: https://www.graylog.org
.. _GELF: https://www.graylog.org/resources/gelf-2/
palpatine 0.1.0
Manipulate your console screen like an emperor.
License: BSD
Keywords: palpatine

===============================
Palpatine
===============================

.. image:: https://travis-ci.org/uranusjr/palpatine.png?branch=master
        :target: https://travis-ci.org/uranusjr/palpatine

.. image:: https://pypip.in/d/palpatine/badge.png
        :target: https://pypi.python.org/pypi/palpatine


Manipulate your console screen like an emperor.

* Free software: BSD license
* Documentation: https://palpatine.readthedocs.org.

Features
--------

* TODO




History
-------

0.1.0 (2015-03-01)
---------------------

* First release on PyPI.
django_cohort_analysis 0.0.2b
A small app to perform cohort analysis in Django
License: BSD
Keywords: django,cohort,cohort analysis

===============================
Django Cohort Analysis
===============================

.. image:: https://img.shields.io/travis/jturner/django_cohort_analysis.svg
        :target: https://travis-ci.org/jturner/django_cohort_analysis

.. image:: https://img.shields.io/pypi/v/django_cohort_analysis.svg
        :target: https://pypi.python.org/pypi/django_cohort_analysis


A small app to perform cohort analysis in Django

* Free software: BSD license
* Documentation: https://django_cohort_analysis.readthedocs.org.

Features
--------

* Perform cohort analysis on any django model that has a date_created or date_joined field

Credits
-------
This project was inspired by Alex Kehayia's django_cohorts_

.. _django_cohorts: http://alexkehayias.tumblr.com/post/18608787713/cohort-analysis-django

Work on this project was original undertaken at SpringMoves_.

.. _SpringMoves: http://www.springmoves.com




History
-------

0.0.1 (2015-02-28)
---------------------

* First release on PyPI.