semvec/pypi-packages huggingface dataset:
mopidy-raspberry-gpio 1.0.4
Mopidy extension for GPIO input on a Raspberry Pi
License: Apache License, Version 2.0
Requires Python: >=3.7

****************************
Mopidy-Raspberry-GPIO
****************************

.. image:: https://img.shields.io/pypi/v/Mopidy-Raspberry-GPIO.svg
    :target: https://pypi.org/project/Mopidy-Raspberry-GPIO/
    :alt: Latest PyPI version

.. image:: https://img.shields.io/circleci/build/gh/pimoroni/mopidy-raspberry-gpio
    :target: https://circleci.com/gh/pimoroni/mopidy-raspberry-gpio
    :alt: CircleCI build status

.. image:: https://img.shields.io/codecov/c/gh/pimoroni/mopidy-raspberry-gpio
    :target: https://codecov.io/gh/pimoroni/mopidy-raspberry-gpio
    :alt: Test coverage

Mopidy extension for GPIO input on a Raspberry Pi


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

Ensure Mopidy has access to GPIO::

    sudo usermod -a -G gpio mopidy
    
Make sure you have the RPi.GPIO library installed::

    sudo apt install python3-rpi.gpio

Install by running::

    python3 -m pip install Mopidy-Raspberry-GPIO

Or, if available, install the Debian/Ubuntu package from `apt.mopidy.com
<https://apt.mopidy.com/>`_.


Configuration
=============

Before starting Mopidy, you must add configuration for
Mopidy-Raspberry-GPIO to your Mopidy configuration file::

    [raspberry-gpio]
    enabled = true
    bcm5 = play_pause,active_low,250
    bcm6 = prev,active_low,250
    bcm16 = next,active_low,250
    bcm21 = volume_down,active_low,10,rotenc_id=vol,step=1
    bcm20 = volume_up,active_low,10,rotenc_id=vol,step=1

Each bcmN entry corresponds to the BCM pin of that number.

You must assign an event, mode and bouncetime (ms) to your desired pins.

Supported events:

- play_pause
- volume_up
- volume_down
- next
- prev

Supported modes:

- active_low - configures the pin with a pull-up and triggers when it reads 0/low (RECOMMENDED)
- active_high - configures the pin as a pull-down and triggers when it reads 1/high

Events volume_up and volume_down both support an (optional) "step" option, which controls the amount (in percent) that the volume is adjusted with each button press.

Eg::

    [raspberry-gpio]
    enabled = true
    bcm5 = play_pause,active_low,250
    bcm6 = volume_down,active_low,250,step=1
    bcm16 = next,active_low,250
    bcm20 = volume_up,active_low,250,step=1


Project resources
=================

- `Source code <https://github.com/pimoroni/mopidy-raspberry-gpio>`_
- `Issue tracker <https://github.com/pimoroni/mopidy-raspberry-gpio/issues>`_
- `Changelog <https://github.com/pimoroni/mopidy-raspberry-gpio/blob/master/CHANGELOG.rst>`_


Credits
=======

- Original author: `Phil Howard <https://github.com/pimoroni>`__
- Current maintainer: `Phil Howard <https://github.com/pimoroni>`__
- `Contributors <https://github.com/pimoroni/mopidy-raspberry-gpio/graphs/contributors>`_
fluentcms-teaser 2.0
A teaser plugin for django-fluent-pages
License: Apache License, Version 2.0

fluentcms-teaser
================

.. image:: https://github.com/django-fluent/fluentcms-teaser/actions/workflows/tests.yaml/badge.svg?branch=master
    :target: https://github.com/django-fluent/fluentcms-teaser/actions/workflows/tests.yaml
.. image:: https://img.shields.io/pypi/v/fluentcms-teaser.svg
    :target: https://pypi.python.org/pypi/fluentcms-teaser/
.. image:: https://img.shields.io/pypi/l/fluentcms-teaser.svg
    :target: https://pypi.python.org/pypi/fluentcms-teaser/
.. image:: https://img.shields.io/codecov/c/github/django-fluent/fluentcms-teaser/master.svg
    :target: https://codecov.io/github/django-fluent/fluentcms-teaser?branch=master

A teaser plugin for django-fluent-contents_

Originally authored by `Basil Shubin <https://github.com/bashu>`_.


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

First install the module, preferably in a virtual environment. It can be installed from PyPI:

.. code-block:: shell

    pip install fluentcms-teaser


Backend Configuration
---------------------

First make sure the project is configured for django-fluent-contents_.

Then add the following settings:

.. code-block:: python

    INSTALLED_APPS += (
        'fluentcms_teaser',
    )

    # The upload folder for teasers
    # Default: '.'
    FLUENTCMS_TEASER_UPLOAD_TO = 'teasers/'

The database tables can be created afterwards:

.. code-block:: shell

    python ./manage.py migrate

Now, the ``TeaserPlugin`` can be added to your ``PlaceholderField`` and
``PlaceholderEditorAdmin`` admin screens.

Frontend Configuration
----------------------

If needed, the HTML code can be overwritten by redefining ``fluentcms_teaser/teaser.html``.

Contributing
------------

If you like this module, forked it, or would like to improve it, please let us know!
Pull requests are welcome too. :-)

.. _django-fluent-contents: https://github.com/django-fluent/django-fluent-contents