semvec/pypi-packages huggingface dataset:
mrfh 0.0.1
Multiprocess Rotating File Handler
License: MIT
Keywords: multi process rotating file handler concurrent multiprocess

mrfh (Multiprocess Rotating File Handler)
=========================================

.. image:: https://travis-ci.org/di/mrfh.svg?branch=master
    :target: https://travis-ci.org/di/mrfh

Description
-----------

The `MultiprocessRotatingFileHandler` is a drop-in replacement for the
`logging` modules's `RotatingFileHandler
<https://docs.python.org/2/library/logging.handlers.html#rotatingfilehandler>`__
which provides a process-safe rotating log file handler using file-based locks.

Documentation
-------------

Installation
~~~~~~~~~~~~

Installing:

::

    $ pip install mrfh

Quickstart
~~~~~~~~~~

Where you once had:

.. code:: python

    from logging.handlers import RotatingFileHandler

    logger = logging.getLogger('my_logger')
    handler = RotatingFileHandler('my_log.log', maxBytes=2000, backupCount=10)
    logger.addHandler(handler)

    logger.debug('Some debug message!')

You can now have:

.. code:: python

    from mrfh import MultiprocessRotatingFileHandler

    logger = logging.getLogger('my_logger')
    handler = MultiprocessRotatingFileHandler('my_log.log', maxBytes=2000, backupCount=10)
    logger.addHandler(handler)

    logger.debug('Some debug message!')

Your rotating file handler is now process-safe!

Testing
~~~~~~~

To run the tests:

::

    python setup.py test

Authors
-------

-  `Dustin Ingram <https://github.com/di>`__

Credits
-------

Roughly based on the defunct `ConcurrentLogHandler
<https://launchpad.net/python-concurrent-log-handler>`__.

License
-------

Open source MIT license.
django-encode 1.0.4
Django media encoding.
License: MIT

django-encode
=============

``django-encode`` allows you to encode and transfer media files async.

.. image:: https://img.shields.io/pypi/v/django-encode.svg
    :target: https://pypi.python.org/pypi/django-encode
.. image:: https://travis-ci.org/collab-project/django-encode.svg?branch=master
    :target: https://travis-ci.org/collab-project/django-encode
.. image:: https://coveralls.io/repos/collab-project/django-encode/badge.svg
    :target: https://coveralls.io/r/collab-project/django-encode
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target: https://raw.githubusercontent.com/collab-project/django-encode/master/LICENSE


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

Use pip_ to install the download and install the package from PyPi_::

  pip install django-encode

Or checkout the source code from Github_::

  git clone https://github.com/collab-project/django-encode.git
  cd django-encode
  pip install -e .

The dependency ``python-video-converter`` is not available on PyPi and needs to be installed
manually::

  pip install -e git+https://github.com/thijstriemstra/python-video-converter.git#egg=python-video-converter


Documentation
-------------

Documentation can be found on `readthedocs.org`_.


.. _pip: https://pypi.python.org/pypi/pip
.. _PyPi: https://pypi.python.org/pypi/django-encode
.. _readthedocs.org: https://django-encode.readthedocs.org/en/latest
.. _Github: https://github.com/collab-project/django-encode