semvec/pypi-packages huggingface dataset:
app_error_handler 1.0.1
An Alternative to web application error handling
License: MIT
Keywords: error-handling flask-error-handler flask django error handler

Web Application Error Handler

An alternative to web application error handling which attempts to provide an extensible and structured approach to exception handling for expected possible error scenario as well as the unexpected ones.

Compatible with Flask, Django and many other web frameworks

View https://github.com/raviparekh/webapp-error-handler for documentations
ddexreader 0.1.1
This small project allows you to decode DDEX files into friendly Python data types.
License: MIT
Keywords: ddexreader

======================
DDEX Reader for Python
======================

.. image:: https://travis-ci.org/Trax-air/ddexreader.svg
        :target: https://travis-ci.org/traxair/ddexreader

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

.. image:: https://coveralls.io/repos/Trax-air/ddexreader/badge.svg?branch=master&service=github
        :target: https://coveralls.io/github/Trax-air/ddexreader?branch=master


This project allows you to read DDEX files into friendly Python data types. XML files are decoded using the PyXB
library.

Keep in mind that this is a fairly low level library that only aims at making DDEX files easier to read using Python. Some DDEX data structures expose lists containing only one element, and some value like UpdateIndicator are not cast as booleans.

* Free software: MIT license
* Documentation: https://ddexreader.readthedocs.org.
* Repository: https://github.com/Trax-air/ddexreader

Features
--------

* Open an XML file into a DDEX data structure generated by pyxb corresponding to the DDEX version.
* Parse this DDEX data structure into a Python dict.

Supported DDEX versions
-----------------------

* 3.1.2
* 3.2 (untested)
* 3.3
* 3.4
* 3.4.1
* 3.5
* 3.5.1
* 3.6

Version 3.7 is causing issues with PyXB.

Quickstart
----------

::

  from ddexreader import open_ddex, ddex_to_dict

  xml_path = '/path/to/my/ddex_file.xml'
  ddex = open_ddex(xml_path)
  ddex_dict = ddex_to_dict(ddex)

How to add more DDEX definitions
--------------------------------

After installing pyxb on your (unix) system, enter:

::

  pyxbgen -u [the url to the definition file]




History
-------

0.1.1 (2015-09-14)
---------------------

* Added support for ERN 3.1.2

0.1.0 (2015-01-11)
---------------------

* First release on PyPI.
django-easyfilters 0.6
Easy creation of link-based filtering for a list of Django model objects.
License: MIT
Keywords: django filter autofilter drilldown easy simple

==================
django-easyfilters
==================

Overview
========

This library provides filters similar in some ways to ``list_filter`` and
``date_hierarchy`` in Django's admin, but for use outside the
admin. Importantly, it also includes result counts for the choices. It is
designed to be very easy to get started with.

Download/install
================
Just install as a Python library.

PyPI page: http://pypi.python.org/pypi/django-easyfilters

Docs
====

See the docs/ directory, especially docs/overview.rst

Also hosted here: http://packages.python.org/django-easyfilters
And here: https://django-easyfilters.readthedocs.org/en/latest/

Demo
====

A small demo app is included, see the instructions in docs/develop.rst

A (currently) live example can be seen at:

http://www.christchurchbradford.org.uk/sermons/

Status
======

The library is in a useful state and is used in production. Test coverage is
extensive. Feedback regarding API or features is very welcome!

Support
=======

File bugs/feature request in the 'issues' in BitBucket:

https://bitbucket.org/spookylukey/django-easyfilters/issues?status=new&status=open

Or drop `me <http://lukeplant.me.uk/>`_ an email, I always like to hear when
people are using my stuff.

TODO
====

* Possible: ability to specify 'defaults' attribute for FilterSet
* Allow the automatic 'page' resetting to be customized


Version 0.5
-----------

* Python 3.3 compatibility :-) Tests are run against Python 2.6, 2.7 and 3.3,
  and Django 1.3 to 1.5

Version 0.4
-----------

* Cleaned up internal ``Filter`` implementation/API

* Added and documented ``Filter.render_choice_object`` which can
  be overridden for easy customization of filters.

* Fixed various bugs with DateTimeFilter. Thanks to psyton for a bug fix.

Version 0.3.2
-------------

* Correction to new ``FilterSet.title`` attribute.

Version 0.3.1
-------------

* Fixed crasher in 0.3

Version 0.3
-----------

* Added the ``FilterSet.title`` attribute, and the ``title_fields`` attribute
  that can be used to control it.

Version 0.2
-----------

* Added NumericRangeFilter

* More docs, and API firmed up.

* Fixed bug with test_settings.py which caused static media not to be served
  with most recent Django.

Version 0.1.1
-------------

Cleaned up the release tarball to remove old files.

Version 0.1
-----------

Initial release
rswt-flasher 0.1.1
Firmware upload utility for a RobertSonics WavTrigger.
License: MIT

rswt-flasher
============
The `RobertSonics WavTrigger`_ is an audio player for wave files. Audio playback can be controlled through a serial port. 

``rswt-flasher`` is a commandline utility written in python to upload new firmware to a WavTrigger.
``rswt-flasher`` uses the `python serial library`_ 

Documentation
-------------
Documentation for the utility is on the `Github project page`_

A users guide for the WavTrigger is on the `RobertSonics website`_

Install
-------
The module supports Python 2.7 and Python 3.3 onwards::

        pip install rswt-flasher

or::        

        pip3 install rswt-flasher

Source code
-----------

The project is hosted on `Github`_


.. _`Github project page` : https://github.com/wayoda/rswt-flasher/
.. _`RobertSonics WavTrigger` : http://robertsonics.com/wav-trigger/
.. _`python serial library` : http://pyserial.sourceforge.net 
.. _`RobertSonics website` : http://robertsonics.com/wav-trigger-online-user-guide
.. _`Github` : https://github.com/wayoda/rswt-flasher
afthermal 0.3.1
UNKNOWN
License: MIT

afthermal
=========

.. note:: afthermal is currently in alpha status. This is a snapshot release of
          the development branch. While it is used productively, some features
          may be unfinished or undocumented.

``afthermal`` is a driver/library for the popular `Adafruit
<https://www.adafruit.com/products/597>`_ (originally Cashino
A2) thermal printer [1]_.

Partially, it is inspired by previous efforts:

* https://github.com/adafruit/Adafruit-Thermal-Printer-Library
* https://github.com/adafruit/Python-Thermal-Printer/
* https://github.com/luopio/py-thermal-printer/

``afthermal`` try to be more pythonic and efficient than previous efforts,
which have mostly been 1:1 ports from other languages.
Additionally it is not focused on education but rather on being a
reliable library for handling this kind of hardware.

Features include:

* Comfortable handling of text formatting
* Adapters to print images from PIL_ / Pillow_ as well as OpenCV_
* A fast Floyd-Steinberg_ implementation to dither OpenCV_ images.
* Command-line utilities for calibrating the printer for optimum speed and
  quality, as well as other capabilities
* Support for printing QR codes via PyQRCode_ without having to render them
  into images first

.. [1] Specification is available at http://www.adafruit.com/datasheets/CSN-A2%20User%20Manual.pdf

.. _PyQRCode: https://pypi.python.org/pypi/PyQRCode
.. _OpenCV: https://opencv-python-tutroals.readthedocs.org
.. _Pillow: http://pillow.readthedocs.org
.. _PIL: http://www.pythonware.com/products/pil/
.. _Floyd-Steinberg: https://en.wikipedia.org/wiki/Floyd%E2%80%93Steinberg_dithering


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

``afthermal`` is installable from ``pip``. It supports an extra feature named
``tools``, installing it will include cli tools for calibrating the
printer, printing test images or other tasks:

.. code-block:: sh

   $ pip install 'afthermal[tools]'

It includes a C extension for Floyd-Steinberg_ dithering, since OpenCV_ does
not ship with a dithering function. For this reason C-modules must be
compileable when installing ``afthermal``.


Full docs
---------

The complete documentation is housed at http://pythonhosted.org/afthermal.
flask_trace 0.0.4
Log trace decorator function for Flask
License: MIT
Keywords: flask log trace logging

Flask Trace
===========

A Simple logging decorator for Flask applications

Usage
-----

Simply import the trace decorator and apply it to any function you want to log.

.. code-block:: python

    from flask_trace import trace

    @trace
    def my_awesome_function(arg1, arg2):
        pass


Now, any call to the my_awesome_function will be logged like this::

    TRACE: trace_uuid=44f64962-3468-4273-bcd7-1c2067faacdf func_name=my_awesome_function arg1=1 arg2=2
emencia-cms-snippet 2.4.2
"cms.plugins.snippet" (from djangocms) cloned to extend it with some facilities
License: MIT

.. _DjangoCMS: https://www.django-cms.org
.. _djangocodemirror: https://github.com/sveetch/djangocodemirror

snippet
=======

This is a "cms.plugins.snippet" (from djangocms) cloned to extend it with some facilities.

Original code is from the original `DjangoCMS`_ plugin.

Changes from original code
--------------------------

This clone try to change as few orignal code as possible, actually the differences are :

* Adding a template tag to directly use snippet fragments in the templates, not only from CMS pages;
* Add usage of `djangocodemirror`_ for the HTML editor;
* Add a slug field;

Requires
--------

* Django 1.4 to 1.6;
* `DjangoCMS`_ version 2.3.6 to 3.0.x;
* `djangocodemirror`_ 0.9.x;

In the admin, the HTML content will be edited with the `djangocodemirror`_ editor.

Install
-------

The only thing needed is to replace the ``cms.plugins.snippet`` in your `DjangoCMS`_ settings, like this : ::

    INSTALLED_APPS = (
        'cms',
        # Plugins
        ...
        #'cms.plugins.snippet',
        'snippet', # the snippet plugin clone
        'djangocodemirror', # the editor
        ...
    )

Then add : ::

    CODEMIRROR_SETTINGS = {
        'cms_snippet': {
            'mode': {'name': "jinja2", 'htmlMode': True},
            'lineWrapping': True,
            'lineNumbers': True,
            'search_enabled': True,
            'embed_settings': True,
            'add_jquery': True,
            'lib_buttons_path': 'djangocodemirror/snippet_buttons.js',
        },
    }


Because the code is cloned from the original plugin with just a few changes, all CMS stuff should work as with the original plugin, you should even add it in an existing install without loss in database and without any syncdb.

Usage
-----

Template tags
.............

Use the template tags in your templates : ::

    {% load snippet_tags %}
    {% snippet_fragment [Snippet ID or slug or instance] %}

Like this : ::

    {% load snippet_tags %}
    {% snippet_fragment 42 %}

Or with the slug : ::

    {% load snippet_tags %}
    {% snippet_fragment 'my-snippet' %}
    
The first argument is required, you can use either 

* The Snippet ID;
* The Snippet slug;
* The Snippet instance.

Use as a template block with fallback : ::

    {% snippet_fragment 'my-snippet' or %}
        ... clumsy safe ...
    {% endsnippet_fragment %}

In case there is no snippet instance/id/slug, fallback template will be rendered.
sphinx-epytext 0.0.4
Sphinx "epytext" extension.
License: MIT

Sphinx epytext support
======================

sphinx-epytext provides basic support for epytext docstrings
<http://epydoc.sourceforge.net/epytext.html> 
in Sphinx autodoc <http://sphinx-doc.org/ext/autodoc.html>. 

It connects to the 'autodoc-process-docstring' hook of Sphinx, to perform the following:

- Replaces '@' with ':' for epydoc fields. <http://epydoc.sourceforge.net/fields.html>
- Replaces L{..} and C{..} with :py:obj:`..`
- Removes U{..} from around links

Configuration
-------------

Add it to your extensions in ``conf.py``::

    extensions = [
        'sphinx.ext.autodoc',
        'sphinx_epytext',
        # your other sphinx extensions
        # ...
    ]

Then run ``sphinx-build``.