semvec/pypi-packages huggingface dataset:
fbsd_gpio 0.5.0
cffi-based Python bindings for FreeBSD GPIO
License: BSD
Keywords: FreeBSD GPIO

fbsd_gpio: cffi-based Python bindings for FreeBSD libgpio
=========================================================

Requirements:

- Python 2.7 or 3.4
- cffi

How to install
--------------

Python package on FreeBSD 11 have problem when using python source that needed to compile thing, so the easiest way is to use the binary packages uploaded to pypi:

.. code-block:: shell

    pip install --only-binary freebsd-11 fbsd_gpio

How to use
----------

The fbsd_gpio module expose two classes, GpioController and GpioPin

Use gpio controller unit 0 (/dev/gpioc0) and list all the pins name:

.. code-block:: python

   from fbsd_gpio import GpioController

   gpioc = GpioController(0)
   for pin in gpioc:
       print(pin)

Set pin 127 to output and logical value 1

.. code-block:: python

   from fbsd_gpio import GpioController, GPIO_VALUE_HIGH

   gpioc = GpioController(0)
   gpioc.pin_output(127)
   # The two following lines are equivalent
   gpioc.pin_set(127, GPIO_VALUE_HIGH)
   gpioc.pin_high(127)

Alternativelly you can use the GpioPin class:

.. code-block:: python

   from fbsd_gpio import GpioPin, GPIO_VALUE_HIGH

   pin = GpioPin(127, unit=0)
   pin.ouput = True
   # The following lines are equivalent
   pin.set(GPIO_VALUE_HIGH)
   pin.high()
   pin(GPIO_VALUE_HIGH)

Or use the name of the pin directly:

.. code-block:: python

   from fbsd_gpio import GpioController, GPIO_VALUE_HIGH

   gpioc = GpioController(0)
   gpioc.gpioled0.output = True
   # The three following lines are equivalent
   gpioc.gpioled.set(GPIO_VALUE_HIGH)
   gpioc.gpioled0.high()
   gpioc.gpioled0(GPIO_VALUE_HIGH)

Get the value of a pin:

.. code-block:: python

   from fbsd_gpio import GpioPin

   pin = GpioPin(128, unit=0)
   if pin.input:
       print('Pin is input mode')
   else
       print('Pin is output mode')
   # The two following lines are equivalent
       value = pin.get()
       value = pin()

Toggle the value of a pin:

.. code-block:: python

   from fbsd_gpio import GpioPin

   pin = GpioPin(128, unit=0)
   pin.toggle()

Change the name of a pin:

.. code-block:: python

   from fbsd_gpio import GpioPin

   pin = GpioPin(128, unit=0)
   pin.name = 'green_led'
django-hstore 1.4.2
PostgreSQL HStore support for Django
License: BSD
Keywords: django,hstore,schemaless

=============
django-hstore
=============

.. image:: https://travis-ci.org/djangonauts/django-hstore.svg
   :target: https://travis-ci.org/djangonauts/django-hstore

.. image:: https://coveralls.io/repos/djangonauts/django-hstore/badge.svg
  :target: https://coveralls.io/r/djangonauts/django-hstore

.. image:: https://requires.io/github/djangonauts/django-hstore/requirements.svg?branch=master
   :target: https://requires.io/github/djangonauts/django-hstore/requirements/?branch=master
   :alt: Requirements Status

.. image:: https://badge.fury.io/py/django-hstore.svg
    :target: https://pypi.python.org/pypi/django-hstore

.. image:: https://img.shields.io/pypi/dm/django-hstore.svg
   :target: https://pypi.python.org/pypi/django-hstore

------------

You need **dynamic columns** in your tables. What do you do?

- Create lots of tables to handle it. Nice, now you’ll need more models and lots of additional sqls. Insertion and selection will be slow as hell.
- Use a **noSQL** database just for this issue. **Good luck**.
- Create a serialized column. Nice, insertion will be fine, and reading data from a record too. But, what if you have a condition in your select that includes serialized data? Yeah, regular expressions.

------------

Documentation_ - `Mailing List`_

.. _Documentation: http://djangonauts.github.io/django-hstore/
.. _`Mailing List`: https://groups.google.com/forum/#!forum/django-hstore

------------

Projects using this package
---------------------------

- `django-rest-framework-hstore <https://github.com/djangonauts/django-rest-framework-hstore>`__: **django-rest-framework** tools for **django-hstore**
- `Nodeshot <https://github.com/ninuxorg/nodeshot>`__: extensible django web application for management of community-led georeferenced data - some features of **django-hstore**, like the ``schema-mode`` have been developed for this project