semvec/pypi-packages huggingface dataset:
pipita 0.4.0
An API wrapper for PyPI
License: MIT

pipita
======

|Build| |downloads| |license| |version| |PEP8|

An API wrapper for PyPI

Install (automatic)
-------------------

::

    $ pip install pipita

Install (manual)
----------------

::

    $ git clone 
    $ cd pipita
    $ python setup.py install

Usage
-----

::

Demo
~~~~

License
-------

.. |Build| image:: https://travis-ci.org/walidsa3d/pipita.svg?branch=master
.. |downloads| image:: https://img.shields.io/pypi/dm/pipita.svg
.. |license| image:: https://img.shields.io/pypi/l/pipita.svg
.. |version| image:: https://img.shields.io/pypi/v/pipita.svg
.. |PEP8| image:: https://img.shields.io/badge/code%20style-pep8-orange.svg
   :target: https://www.python.org/dev/peps/pep-0008/
uorm 0.3
Very lightweight, memory-efficient (uses generator
protocol), dependency-free anti-ORM (Object-Relational Mapper) for
MicroPython. Using this module, one can simplify typical database access
operations, without trading well-known SQL for an obscure and inefficient
ORM pseudo-language.
License: MIT

uorm is very lightweight "Anti-ORM" style ORM (Object-Relational Mapper)
for MicroPython (https://github.com/micropython/micropython).

uorm doesn't try to define obscure API to conceal SQL from a programmer,
it's sole purpose is to provide very thin "model" abstraction just to
keep code organized, and automate the most repeative, trivial SQL
queries. More complex queries, you will write in full SQL as usual, so
you will know what exactly is executed, will be able to easily optimize
it, etc.

See examples/ directory for usage examples.
pymys 0.2
It is a module to make easier communication with MySensor's network.
License: MIT
Keywords: MYS MySensors

pyMYS
=======

It is a module to make easier communication with MySensor's network.

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

Currently, all documentation can be accessed in project's GitHub page.

Dependencies
============

You can find all dependencies in requirements.txt and
install them using pip.

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

    python setup.py install

or

    pip pymys

Support
=======

This project should support all Python 3 versions. However, it was onlye tested with Python 3.4.

Examples
========

If you just want to print all messages that your Gateway send to you.

::

    from pymys import mysensors as mys


    def show_msg(msg):
        print(msg)

    gw = mys.SerialGateway("/dev/ttyACM0", message_callback=show_msg)
    print("Trying to connect...")
    gw.connect()
    print("Connected!")

    while True:
        gw.process()

Creating an application with threads which allow you write raw messages and send to your network over your Gateway

::

    import threading

    from pymys import mysensors as mys


    def run_gateway():
        while True:
            gw.process()


    def show_msg(msg):
        print("Read: {}".format(msg))

    gw = mys.SerialGateway("/dev/ttyACM0", message_callback=show_msg)
    print("Trying to connect...")
    gw.connect()
    print("Connected!")

    t = threading.Thread(target=run_gateway)
    t.start()

    while True:
        data = input("")
        msg = mys.Message(data)
        gw.send(msg)

What's new
===========
- Base structure for Gateway
- Support to Serial Gateway
- Support to protocol 1.4
- Support to protocol 1.5
- Support to protocol 1.6
- Support to change callback functions
- Support to get dinamically the protocol version from the Gateway
cfgtodict 0.1.3
A simple class for converting a *.cfg file to a Python Dictionary
License: MIT

-- ConfigToDictionary
Convert a python config file of to a python dictionary

-- Example
Return the information in `info.cfg` as a `JSON` response from a `Flask` server:

info.cfg
----------
[info]
name = risk
version = 1
description = A simple game of chance. Risk 1000 Satoshis, win 2000, or lose them all.
project = https://github.com/joelklabo/risk

[risk]
price = 1000
description = 49/100 chance you will double your satoshis
```

server.py
----------
from flask import Flask
from flask.ext.responses import json_response
from cfgtodict import ConfigToDictionary

app = Flask(__name__)

@app.route('/info')
def info():
  about = ConfigToDictionary('info.cfg').dict() 
  return json_response(about)
```

JSON response
----------
{
  "info": {
    "description": "A simple game of chance. Risk 1000 Satoshis, win 2000, or lose them all.",
    "name": "risk",
    "project": "https://github.com/joelklabo/risk",
    "version": "1"
  },
  "risk": {
    "description": "49/100 chance you will double your satoshis",
    "price": "1000"
  }
}
```