semvec/pypi-packages huggingface dataset:
Si7021 0.1.1
Driver for the Si7021 humidity and temperature sensor
License: MIT

Si7021
======

Driver for the Si7021 humidity and temperature sensor.

Usage:


Dependencies
------------

* smbus-cffi (or some compatible library)

  See https://github.com/bivab/smbus-cffi/blob/master/README.rst for install instructions.

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

1. pip install from PyPi
::

  pip install Si7021

2. pip install from git
::

  pip install git+https://github.com/herm/Si7021

3. Clone the repository and run setup.py
::

  git clone https://github.com/herm/Si7021
  python setup.py install

Usage
-----

If you have a sensor connected to I2C bus 1, you may run
::

  >>> from si7021 import Si7021
  >>> from time import sleep
  >>> from smbus import SMBus
  >>> sensor = Si7021(SMBus(1))
  >>> print("%.1f %%RH, %.1f °C" % sensor.read())
  >>> sensor.heater_mA = 50
  >>> sleep(10)
  >>> print("%.1f %%RH, %.1f °C" % sensor.read())
  >>> sensor.heater_mA = 0


Bug Reporting
-------------

To submit a bugreport use the GitHub bugtracker for the project:

  https://github.com/herm/Si7021/issues
ucs 0.3
Implements the CAM02-UCS forward transform symbolically, using Theano.
License: MIT
Keywords: ciecam02 cam02 cam02-ucs color science

ucs
===

Implements the CAM02-UCS (Luo et al. (2006), "`Uniform Colour Spaces Based on CIECAM02 Colour Appearance Model <https://s3-us-west-2.amazonaws.com/4843ec7c-89cf-4d26-a36a-0e40ebc9a3a7/luo2006.pdf>`_") forward transform symbolically, using Theano.

See also: `CIECAM02 and Its Recent Developments <http://www.springer.com/cda/content/document/cda_downloaddocument/9781441961891-c1.pdf>`_.

The forward transform is symbolically differentiable in Theano and it may be approximately inverted, subject to gamut boundaries, by constrained function minimization (e.g. projected gradient descent or `L-BFGS-B <https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.fmin_l_bfgs_b.html#scipy.optimize.fmin_l_bfgs_b>`_).

Package contents
----------------

- ``constants.py`` contains constants needed by CAM02-UCS and others which are merely useful.

- ``functions.py`` contains compiled Theano functions, as well as NumPy equivalents of other symbolic functions. It also contains ``ucs_to_srgb()`` and ``ucs_to_srgb_b()``, which approximately invert the CAM02-UCS forward transform with L-BFGS-B.

- ``symbolic.py`` implements the forward transform symbolically in Theano. The functions therein can be used to construct custom auto-differentiable loss functions to be subject to optimization.
askpy 0.0.4
Python user input prompt toolkit
License: MIT

ASKpy - Collect Input from your Users
=====================================

ASKpy is a module which makes collecting Raw Input for your Python
program more robust. It supports creating prompts, conditional
questions, validation, and transforming responses.

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

Installing ASKpy is as simple as:

::

    pip install askpy

Usage
-----

ASKpy at its core is a way to build up questions and create a prompt for
users in your terminal applications.

::

    from askpy import Prompt

    prompt = Prompt()

    my_question = prompt.make_question('name', 'What is your name?')

    prompt.add(my_question)

    prompt.collect()

    name = prompt.get_response('name')

While the above may hide raw input, it does not give you much more power
than you could already use in the standard library. ASKpy allows you to
validate and transform your responses easily:

::

    from askpy import Prompt, Validator

    prompt = Prompt()

    question = prompt.make_question('age', 'How old are you?') \
                     .must(Validator.num_gt(20)) \
                     .transform(int)

    prompt.add(question)

    prompt.collect()

    question = prompt.get_response('question')

The above example will ensure the user enters an age greater 20
otherwise it will reprompt them. Once it has a valid age it will cast it
to an integer for you to use later.

There’s more too.

Sometimes questions depend on others and in order to handle these cases
you would usually rely on conditional statements and parsing. With ASKpy
you can do this by chaining questions.

::

    from askpy import Prompt, ValidationError, Validator

    prompt = Prompt()


    def validate_even(num):
        Validator.num(num)
        if int(num) % 2 != 0:
            raise ValidationError('Please choose an even number')


    def validate_odd(num):
        Validator.num(num)
        if int(num) % 2 == 0:
            raise ValidationError('Please choose an odd number')


    even_or_odd = prompt.make_question('even_or_odd', 'Do you prefer even or odd numbers?') \
                        .must(Validator.one_of(['even', 'odd']))

    even_question = prompt.make_question('even', 'What is your favorite even number?') \
                          .must(validate_even) \
                          .transform(int)

    odd_question = prompt.make_question('odd', 'What is your favorite odd number?') \
                         .must(validate_odd) \
                         .transform(int)

    prompt.add(even_or_odd) \
          .then(lambda resp: resp == 'even', even_question, odd_question)

    prompt.collect()

As you can see, you get explicit prompts with the ability to keep your
code sane.
hurumap 0.7.8
A Django application for exploring census and other place-specific data
License: MIT

HURUmap
=======

.. image:: https://badge.fury.io/py/wazimap.svg
    :target: http://badge.fury.io/py/wazimap

.. image:: https://travis-ci.org/Code4SA/wazimap.svg
    :target: http://travis-ci.org/Code4SA/wazimap

HURUmap is a Django application for exploring census and other similar data. It makes it easy to understand a place
through the eyes of the data, and to explore data across a range of places. It is most suited for census data
but can easily be used with other data that is similarly focused on places in a country.

Check out `HURUmap Tanzania <http://tanzania.hurumap.org>`_ and `HURUmap Kenya <http://kenya.hurumap.org>`_ to
get an idea of what HURUmap is about.

HURUmap is a fork of `Wazimap <https://github.com/Code4SA/wazimap>`_ and the excellent `Censusreporter <https://censusreporter.org>`_ project which was funded by a
`Knight News Challenge grant <http://www.niemanlab.org/2012/10/knight-funding-expands-ires-journalist-friendly-census-site/>`_.
You can also find `Censusreporter on GitHub <https://github.com/censusreporter/censusreporter>`_.


* Code for Africa is on Twitter as `@Code4Africa <https://twitter.com/@Code4Africa>`_.
* Read the `full Wazimap documentation <http://wazimap.readthedocs.org/en/latest/>`_.

Using HURUmap
=============

Read the `full Wazimap documentation <http://wazimap.readthedocs.org/en/latest/>`_ to get started.

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

Releasing a New Version
-----------------------

1. Run the tests::

    python manage.py test

2. Update VERSION appropriately
3. Update the CHANGES.rst
4. Commit and push to github
5. Release to PyPI::

    python setup.py sdist bdist_wheel upload

License and Copyright
=====================

HURUmap is licensed under the MIT License.

Other Licenses and Copyright
============================

Copyright (c) 2014 Census Reporter.

Wazimap is licensed under the MIT License.

The Wazimap name and branding is Copyright 2013-2017 Media Monitoring Africa (MMA) and may not be used without permission.

If you use this software, please provide attribution to Census Reporter, Code for Africa, HURUmap, Wazimap, Media Monitoring Africa and Code for South Africa.