semvec/pypi-packages huggingface dataset:
django-mathfilters 1.0.0
A set of simple math filters for Django
License: MIT
Keywords: django template filters math

##################
django-mathfilters
##################

.. image:: https://github.com/dbrgn/django-mathfilters/workflows/CI/badge.svg
    :alt: Build status
    :target: https://github.com/dbrgn/django-mathfilters/actions?query=branch%3Amaster

.. image:: https://pypip.in/d/django-mathfilters/badge.png
    :alt: PyPI download stats
    :target: https://crate.io/packages/django-mathfilters


django-mathfilters is a Python 3 module that provides different simple math
filters for Django.

Django provides an ``add`` template filter, but no corresponding subtracting,
multiplying or dividing filters.

Django ticket `#361 <https://code.djangoproject.com/ticket/361>`_ has been
closed as *wontfix*, so I had to create an alternative that is easy to install
in a new Django project.

It currently supports ``int``, ``float`` and ``Decimal`` types, or any other
type that can be converted to int or float.


Installation
============

::

    $ pip install django-mathfilters

Then add ``mathfilters`` to your ``INSTALLED_APPS``.


Usage
=====

You need to load ``mathfilters`` at the top of your template. The script
provides the following filters:

* ``sub`` – subtraction
* ``mul`` – multiplication
* ``div`` – division
* ``intdiv`` – integer (floor) division
* ``abs`` – absolute value
* ``mod`` – modulo
* ``addition`` – replacement for the ``add`` filter with support for float /
  decimal types

**Example:**

.. sourcecode:: html

    {% load mathfilters %}

    ...

    <h1>Basic math filters</h1>

    <ul>
        <li>8 + 3 = {{ 8|add:3 }}</li>

        <li>13 - 17 = {{ 13|sub:17 }}</li>

        {% with answer=42 %}
        <li>42 * 0.5 = {{ answer|mul:0.5 }}</li>
        {% endwith %}

        {% with numerator=12 denominator=3 %}
        <li>12 / 3 = {{ numerator|div:denominator }}</li>
        {% endwith %}

        <li>|-13| = {{ -13|abs }}</li>
    </ul>


Version Support
===============

This module officially supports Python 3.5+ as well as PyPy3. Support for Python
3.3 and 3.4 is provided on best-effort basis, but there are no CI tests for it.

Supported Django versions are 1.11+, 2.x and 3.x.


License
=======

`MIT License <http://www.tldrlegal.com/license/mit-license>`_, see LICENSE file.
pybpod-gui-plugin-emulator 0.1.5
Emulator for PyBpod to work with the Bpod's State Machine ports.
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*

========
Overview
========



Emulator for PyBpod to work with the Bpod's State Machine ports.

At the moment, the Emulator for PyBpod module works by overriding inputs and outputs on a running task protocol.
This will interact directly with a running State Machine in Bpod. As such, any event or state change that
would occur naturally from any of those input or output changes, will occur.


* Free software: MIT license

Current Features
================

* Allows to override the Port components (i.e., LED, Poke and Valve)
* BNC In and Out value override
* Wire inputs and outputs override for Bpod 0.7
* Override Serial message for the connected modules (sends a bytes message)
* Messages are sent while the State Machine is running, triggering the events
  and/or state changes as if the values were coming from the real inputs/outputs.


Installation
============

Please see Installation page.

Documentation
=============

https://pybpod-gui-plugin-emulator.readthedocs.io/


Development
===========

To run the all tests run::

    tox

Note, to combine the coverage data from all the tox environments run:

.. list-table::
    :widths: 10 90
    :stub-columns: 1

    - - Windows
      - ::

            set PYTEST_ADDOPTS=--cov-append
            tox

    - - Other
      - ::

            PYTEST_ADDOPTS=--cov-append tox


Changelog
=========

0.1.5 (2020-02-10)
------------------
* Renamed 'Skip all trials' button to 'Stop'
* Renamed 'Stop trial' button to 'Skip trial'

0.1.4 (2019-11-07)
------------------
* Add task kill button to UI
* Reordered the "Test Protocol IO" button in the UI

0.1.3 (2019-05-14)
------------------
* Fixed override messages not being sent properly on Windows
* Fix for pause not working

0.1.2 (2019-05-13)
------------------
* Fix for README to comply with PyPI support for reStructuredText

0.1.1 (2019-05-13)
------------------
* Fix for disappearing board on Setup window

0.1.0 (2019-05-03)
------------------

* First release on PyPI.
* Added support for Bpod version detection and automatic UI adaptation
  to the different input/output ports and connected modules
* Ports components can be overriden (i.e., LED, Poke and Valve)
* BNC In and Out value override
* Wire inputs and outputs override for Bpod 0.7
* Override Serial message for the connected modules (bytes message)