semvec/pypi-packages huggingface dataset:
mipea 0.1.1
lightning fast peripheral access on the Raspberry Pi using a mipea wrapper written in C
Keywords: c peripheral access Raspberry Pi mipea gpio

[![GitHub](https://img.shields.io/github/license/jasLogic/mipeapy?color=blue)](https://github.com/jasLogic/mipeapy/blob/master/LICENSE)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/jasLogic/mipeapy)](https://github.com/jasLogic/mipeapy/releases/)

# mipeapy: mipea Python wrapper

*Under construction*

This Python module makes use of the [mipea](https://github.com/jasLogic/mipea)
C library to access the peripherals of the Raspberry Pi.
The module is written in C and uses the Python C API.
Most functions are just wrappers to the mipea functions with conversion to
Python objects and some improvements.

Contributions are welcome (especially documentation or examples), please fork
and open a pull request.

Please add an issue if you find any bugs or have ideas for improvements.

Like the mipea C library, there are nearly **no checks performed** to protect
your Pi to archive best performance and because this is a
**library for developers**.
This library is useful to **lay a foundation for other programs or libraries**.

## Installation
You need to install the [mipea](https://github.com/jasLogic/mipea) C library to
use this library, see [README.md](https://github.com/jasLogic/mipea/blob/master/README.md)
for installation instructions.
* PyPI
        ```
        $ pip install mipea
        ```

* Source
        ```
        $ python setup.py install
        ```

## Usage
Look at the [examples](https://github.com/jasLogic/mipeapy/tree/master/examples) for some starting help.
etcd3-wrapper 0.5.4
A wrapper around etcd3 package
Requires Python: >=3.5

# etcd3_wrapper
A thin wrapper around Python module [etcd3](https://pypi.org/project/etcd3/) to make it a little easier to deal with etcd.

**Warning: The API isn't fully stable and can changed significantly in future.**

For Example, you want to get an entry from etcd.
You would write something like this

```python
from etcd3_wrapper import Etcd3Wrapper

client = Etcd3Wrapper()
entry = client.get("/planet/earth")

if entry:
    # It would print key and value of entry
    # in bytes format b'....'
    print(entry.key, entry.value)

```

Output

```
b'/planet/earth' b'{"population": "7.53 Billion"}'
```

```python
# If you know that the value in etcd is in JSON
# format. You can do the following

json_entry = client.get("/planet/earth", value_in_json=True)

if json_entry:
    # Now, entry.value is of type dict
    print(entry.key, entry.value)

    # So, you can do this too
    print(f"Earth population is {entry.value['population']}")

```

Output

```
/planet/earth {"population": "7.53 Billion"}
Earth population is 7.53 Billion
```
sqlescapy 1.0.1
Python module to escape SQL special characters and quotes in strings
Requires Python: >=2.7

Python module to escape SQL special characters and quotes in strings

install:
`pip install sqlescapy`

Assuming `dangerous_input` is a variable coming from a user input, a bad actor can exploit it to start injecting your database.
```python
from sqlescapy import sqlescape

dangerous_input = "JhonWick'"

protected_raw_statement = "\"foo_table\".username='%s'" % sqlescape(dangerous_input)

protected_query = """

SELECT "foo_table".*, "bar_table".*
FROM "foo_table", "bar_table"
WHERE "foo_table".id = "bar_table".id
      AND %s
""" % protected_raw_statement

```
docdbdemo 0.1.0a6
DocumentDB API Example
Requires Python: >=3.6

# Amazon DocumentDB Demo Construct
---

### Installing
#### Pypi (Python)
`pip install docdbdemo`

#### npm (JavaScript and TypeScript)
`npm install @richardhboyd/doc_db_lib`

---

### Usage
#### Python
```python
from aws_cdk import (
    core
)
from docdbdemo import DocDbLib


class MyStack(core.Stack):

    def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
        super().__init__(scope, id, **kwargs)

        DocDbLib(self, "MyDocDBClient")
```

#### TypeScript
```typescript
import cdk = require('@aws-cdk/core');
import docdbdemo = require('@richardhboyd/doc_db_lib');

export class DocDbClientTsStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    new docdbdemo.DocDbLib(this, "MyDocDBClient");
  }
}
```
---
### Diagram
![](https://raw.githubusercontent.com/CDK-User-Group/DocumentDBDemo/master/packages/DocumentDBDemo/diagram.png)

---
### Interacting
Deploying the stack will create an Amazon DocumentDB Cluster with one instance in each availability zone created by the CDK's VPC Construct, a Lambda function that can put items into the database and fetch them out again, and an API to send requests to the Lambda Funciton.

The stack will output an APIGateway endpoint that will front the created DocumentDB.

```bash
Outputs:
DocDbClientTsStack.MyDocDBClientMyDocDbApiMyDocDBApiEndpoint74609B36 = https://gv8ooq7zti.execute-api.us-east-1.amazonaws.com/prod/

```

Let's look at how we use this new API.

Putting a document in the DocumentDB
```bash
API=https://gv8ooq7zti.execute-api.us-east-1.amazonaws.com/prod
curl -H "Content-Type: application/json" -d '{"bestCoder":"@allenmichael", "worstCoder":"singledigit"}' -X POST $API/document
```

Getting a document out of the database
```bash
API=https://gv8ooq7zti.execute-api.us-east-1.amazonaws.com/prod
curl -H "Content-Type: application/json" $API/document?bestCoder=@allenmichael
```

Testing this out we see
```bash
$ curl -H "Content-Type: application/json" -d '{"bestCoder":"@allenmichael", "worstCoder":"@singledigit"}' -X POST $API/document

{"id": "5d7bd032c7866a33171a1261"}

$ curl -H "Content-Type: application/json" $API/document?bestCoder=@allenmichael

{'_id': ObjectId('5d7bcfe6c7866a33171a125f'), 'bestCoder': '@allenmichael', 'worstCoder': '@singledigit'}
```
holidays-co 1.0.0
Módulo de utilidades para festivos en Colombia

## holidays_co

Portado a módulo de Python desde [colombia-holidays](https://github.com/nequibc/colombia-holidays)

Días festivos no laborables en Colombia. Calculados con base en la ley 51 de 1983

**Última vez modificado**: 2019-06-30   
**Desde**: 2019-06-29   
**Version**: 0.0.2    
**Autor:** Javier Mejía <_jmjaviermejiaest@gmail.com_>

### Instalación
```shell
$ pip install holidays_co
```
### Ejemplo
```python
import holidays_co
holidays = holidays_co.get_colombia_holidays_by_year(2019)
```
o
```python
from holidays_co import get_colombia_holidays_by_year
holidays = get_colombia_holidays_by_year(2019)
```
---
#### Métodos disponibles
- **get_colombia_holidays_by_year(year)**: Devuelve la lista de festivos no laborables en Colombia para un año

    _Input_: `type(int)`    
    _Output_: `list(namedtuple("Holiday", ["date", "celebration"]))`
- **is_holiday_date(date)**: Returna `True`, si la fecha ingresada corresponde a un día festivo, `False` en caso contrario.     
    _Input_: `type(date)`   
    _Output_: `type(bool)`
vedadb 0.2.5
A small example package
Requires Python: >=3.6

Vedadb - Base de donnée de Vedadb
========================================================

Ce module est la base de donnée de vedadb 
Vous pouvez l'installer avec pip:

    pip3 install vedadb

Pour installer le paqueage:

    python setup.py install 

Pour installer le paqueage:

    -->Toutes les version:

        sudo rm -r vedadb-*-py3.7.egg
    -->Une version spécifique ici le 0.0.2:
        sudo rm -r vedadb-0.0.2-py3.7.egg
openstackclient 4.0.0
OpenStack Command-line Client

===============
OpenStackClient
===============

.. image:: https://img.shields.io/pypi/v/openstackclient.svg
    :target: https://pypi.org/project/openstackclient/
    :alt: Latest Version

.. image:: https://img.shields.io/pypi/dm/openstackclient.svg
    :target: https://pypi.org/project/openstackclient/
    :alt: Downloads

OpenStackClient (aka OSC) is a command-line client for OpenStack that brings
the command set for Compute, Identity, Image, Network, Object Store and Block
Storage APIs together in a single shell with a uniform command structure.

The ``openstackclient`` package is a metapackage that installs
``python-openstackclient`` and a number of optional plugins all at the same
time to simplify the installation of OSC.  The major version of
``openstackclient`` will always correspond to the major version of
``python-openstackclient`` that will be installed.

* `PyPi`_ - package installation
* `Online Documentation`_
* `Launchpad project`_ - release management
* `Blueprints`_ - feature specifications
* `Bugs`_ - issue tracking
* `Source`_
* `Developer` - getting started as a developer
* `Contributing` - contributing code
* `Testing` - testing code
* IRC: #openstack-sdks on Freenode (irc.freenode.net)
* License: Apache 2.0

.. _PyPi: https://pypi.org/project/openstackclient
.. _Online Documentation: http://docs.openstack.org/developer/python-openstackclient/
.. _Launchpad project: https://launchpad.net/python-openstackclient
.. _Blueprints: https://blueprints.launchpad.net/python-openstackclient
.. _Bugs: https://storyboard.openstack.org/#!/project/975
.. _Source: https://opendev.org/openstack/openstackclient
.. _Developer: http://docs.openstack.org/project-team-guide/project-setup/python.html
.. _Contributing: http://docs.openstack.org/infra/manual/developers.html
.. _Testing: http://docs.openstack.org/developer/python-openstackclient/developing.html#testing

Getting Started
===============

OpenStack Client can be installed from PyPI using pip::

    pip install openstackclient

There are a few variants on getting help.  A list of global options and supported
commands is shown with ``--help``::

   openstack --help

There is also a ``help`` command that can be used to get help text for a specific
command::

    openstack --help
    openstack server create --help