semvec/pypi-packages huggingface dataset:
PyFlot 0.2
Python Interface the JavaScript Flot chart librabry
License: MIT

======
pyflot
======

.. image:: https://secure.travis-ci.org/andrefsp/pyflot.png
    :target: https://travis-ci.org/andrefsp/pyflot

.. image:: https://coveralls.io/repos/andrefsp/pyflot/badge.png?branch=master
    :target: https://coveralls.io/r/andrefsp/pyflot?branch=master


Python Interface for the known JavaScript Flot librabry


Motivation
==========

The idea behind *PyFlot* its to provide an easy and quick way to create graphs in Python and to plot them out in a web page.

Backend developers sometimes have to work with statistics and metrics and bring that data from a server to a web page in form of charts. 

When this situations happens developers some times find themselves thinking on things like, which data format should they push from the server to the pages, how to catch the data in the templates and how to plot the charts, sometimes situations even gets worst when in a team there is a lack of javascript skills to create those fancy graph pages.

*PyFlot*, appears as a shortcut and as a solution for some of this problems providing a nice a simple way to plot graphs just by modeling it in the backend.

It uses the known flot_ javaScript/jQuery plotting library as interface.

.. _flot: http://www.flotcharts.org

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

Documentation_ is available on readthedocs. 

.. _Documentation: http://pyflot-docs.readthedocs.org
human_dates 0.2.0
Dates for humans
License: MIT

human_dates
===========

I came from the Ruby/Rails world and I missed some of my date sugar.  And instead of keeping complaining about it, I
thought I would do something about it


It offers two sets of functionality:

#. and foremost it has a nice `time_ago_in_words` function.
#. has some natural language for getting to the beginning and end of things

Note I stole much of this from the following StackOverflow post: http://stackoverflow.com/a/1551394/192791

Note: when you do not pass a time into a function it uses `datetime.utcnow()`


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

.. code-block:: bash

    $ pip install human_dates


time_ago_in_words Usage
-----

.. code-block:: python

    from human_dates import time_ago_in_words, beginning_of_day

    print time_ago_in_words()
    #prints "just now"

    print time_ago_in_words(beginning_of_day())
    # prints 8 hours ago


Natural Language Helpers

.. code-block:: python

    from human_dates import *

    print beginning_of_day()
    print beginning_of_hour()
    print beginning_of_year()
    print end_of_month()
    # and so on ....

    # you can also pass a datetime to each of these functions
    import human_dates
    from datetime import datetime
    date = datetime.strptime('Feb 13 2008  1:33PM', '%b %d %Y %I:%M%p')
    result = human_dates.end_of_month(date)
    print result
    # 2008-02-29 23:59:59.999999


Alternatives
------------

- Delorean: http://delorean.readthedocs.org/en/latest/quickstart.html  (<-- please look at this before using human_dates.
It's heavyweight for me but might be great for you)

Other Important Time Libraries
- DateUtil: http://labix.org/python-dateutil
- PyTz: http://pytz.sourceforge.net/
BeautifulHue 0.1.2
A Python module for the Philips Hue Lighting System API.
License: MIT
Keywords: Philips hue, home automation, module, API

============
beautifulhue
============

Installation
============
Using pip::

    pip install beautifulhue

Using setuptools::

    easy_install beautifulhue

Using `source <https://github.com/allanbunch/beautifulhue>`_ ::

    python setup.py install

Example
============
::

    """Update light #3's state."""

    from beautifulhue.api import Bridge
    
    # Connect to a Philips Hue bridge.
    bridge = Bridge(device={'ip':'bridge_ip_address'}, user={'name':'your_username'})
    # Define the target resource, and its new related states.
    resource = {
        'which':3,
        'data':{
            'state':{'on':True, 'ct':222}
        }
    }
    # Signal the bridge to execute your command when appropriate.
    bridge.light.update(resource)

Features
============

* Complete Philips Hue API v1.0 coverage.
* Consistent method names.
* Designed to get things done.
* JSON/Pyton dictionary resource representation.
* Default response structures are closely aligned with the official Philips Hue API response structures.
* Extensible design.
* Fine-grained system state control.
* `Complete Documentation <https://github.com/allanbunch/beautifulhue/blob/master/README.md#documentation>`_