semvec/pypi-packages huggingface dataset:
cgnxpyairpal 1.0.0
Python Client/SDK for Airpal
License: MIT

# cgnxpyairpal
Python Client/SDK for Airpal

## Synopsis

cgnxpyairpal: Python Client/SDK to allow headless queries and response retrieval for Airpal.

## Code Example

View the included example.py

## Motivation

Airpal (http://airbnb.io/airpal/) is a great WebUI/Front end for PrestoDB (https://prestodb.io/)

One really nice thing Airpal does is create a method of User Access Control/logging/etc to the PrestoDB interface.

Native PrestoDB clients will likely be more efficient, but this stack allows organizations to provide batch/scripting 
access to the PrestoDB Via Airpal, while maintaining the nice UAC/etc that Airpal provides.

## Requirements

* Working Airpal server
* Python modules:
    * Requests - http://docs.python-requests.org/en/master/
    * SSEClient - https://pypi.python.org/pypi/sseclient
    * Pandas (for example script only) - http://pandas.pydata.org/

## License

MIT

## Version
Version | Changes
------- | --------
**1.0.0**| Initial Release
ldm 0.1.3
get the landmars,positions,features for reconition of the face in the image
License: MIT

Info
====
`ldm.py 2018-05-25`

`Author: Zhao Mingming <471106585@qq.com>`

`Copyright: This module has been placed in the public domain.`

`version:0.1.0`
- `add compare2dir` 

`version:0.1.1`
- `add face_rec_ms` 
`version:0.1.3`
- `add compare2imglist` 

Classes:
- `LDM`: you can use a function to get landmarks and face feature  with no other libs 

Functions:

- `face_feature`: the feature of face in the image for face recognition 
- `landmarks`: get the landmarks and face in the image 
- `face_rec`: return the face similarity of the  face in two images
- `has_same_person`: return a int(>0) if there have a same person in two images,otherwise 0
- `compare2dir`: compare the face in the images of the two dirs,and return the rate ,score_avg,class_id1,class_id2
- `compare2imglist`: compare the face in the imglist ,and return the rate ,score_avg,class_id1,class_id2

How To Use This Module
======================
.. image:: funny.gif
   :height: 100px
   :width: 100px
   :alt: funny cat picture
   :align: center

1. example code:


.. code:: python

    imagepath="closed_eye/9.jfif"
    img=io.imread(imagepath)
    img1=img
    imagepath="closed_eye/14.jfif"
    img2=io.imread(imagepath)

    ldmer=ldm.LDM()
    print img.shape[0]
    ldl,facel,txt=ldmer.landmarks(img)
    print txt

    for ld in ldl:
        print 10*'-'
        print 'nose:'
        print ld['nose']
    for face in facel:
        print 10*'-'
        print 'face:'
        print face.top()
        print face.left()
        print face.width()
        print face.height()
        print face.bottom()
        print face.right()
        x,y,w,h=[face.top(),face.left(),face.width(),face.height()]
        print x,y,w,h
    print "feature:"
    ffl=ldmer.face_feature(img,facel)
    for ff in ffl:
        print help(ff)
        print 'ff='+str(ff)
        print 'len(ff)='+str(len(ff))
        print 'ff[0]='+str(ff[0])
        print 'ff[127]='+str(ff[127])

    print "face compare:"
    print ldmer.face_rec(img1,img2)
    print ldmer.has_same_person(img1,img2)
    print ldmer.has_same_person(img2,img2)

    print "face number:"
    print ldmer.face_number(img,facel)



Refresh
========

add a function : ldmer.imread(imgpath) 
modify  the return value number to: has_flag,max_score=ldmer.has_same_person(img1,img2)
pyinspector 1.3
A module to easely run quality pipeline for python project
License: MIT

# pyquality

Pipeline to run quality tools on python projet :
* unittest
* coverage report
* flake8
* pylint
* radon for maintainability report
* xenon for cyclomatic complexity

## Install

```
pip install pyinspector
```

## Usage
```
pyinspector <project_path> <options_not_required>
```
<project_path> need to be explicit path. Don't use '.'

You can use options :
* `--no-report`: to not print results and not coverage report
* `--no-unittest`: to not run unittest
* `--no-flake8`: to not run flake8
* `--no-pylint`: to not run pylint
* `--no-mi`: to not inspect maintainability
* `--no-cc`: to not inspect cyclomatic complexity
spacemakerlog 0.2.8
Structured logging for Spacemaker AI
License: MIT

# log

Python library/client for structured log output

```bash
pip install spacemakerlog
```

## Usage

```python
from spacemakerlog import log

log.debug('hello something happened', some_key='with some value', another_key=123.12)
```

Output:

```bash
{"message": "hello something happened", "timestamp": "2018-08-05T18:08:01.780036Z", "another_key": 123.12, "level": "debug", "some_key": "with some value"}
```

### Log exception with stacktrace:

```python
from spacemakerlog import log

try:
    raise Exception('some error message')
except Exception as e:
    log.error('oooops, an error occured while doing something', exception=e)
```

Output:

```bash
{"message": "oooops, an error occured while doing something", "timestamp": "2018-08-15T08:49:46.707435Z", "level": "error", "exception": "Traceback (most recent call last):\n  File \"/someProject/some-spacemaker-app/some_module.py\", line 76, in some_method\n    raise Exception('some error message')\nException: some error message"}
```

### Settings

The log client will read from environment variables at "init" for log level and format.

| Env          | default |
| ------------ | ------- |
| `LOG_FORMAT` | "json"  |
| `LOG_LEVEL`  | "debug" |

Set log format to "text":

```python
log.set_format('text');
```

Set log level to "info":

```python
log.set_level('info');
```

## Publish

Using [twine](https://pypi.org/project/twine/) for publishing to [PyPI](https://pypi.org/project/spacemakerlog/).

```bash
brew install twine
```

```bash
python setup.py bdist_wheel
twine upload dist/*
```
utah 0.9
The official module for Utah Python / SLCPython
License: MIT
Keywords: utah meetup slc

# utah

This module is used as an example package for the Sept 2018 meetup,
and also used as an example on slcpy.com.

# Standard Installation

- `pip install utah`
- Set your `MEETUP_API_KEY` value: `$export MEETUP_API_KEY=api_key_value`, located at [meetup.com](https://secure.meetup.com/meetup_api/key/).
- Test with `from utah import slcpython; slcpython.howdy()` in a python interpreter. You should see details of the next meetup.

# Dev Installation

- Install `pipenv`: `python3 -m pip install pipenv`.
- Install the pipenv requirements: `pipenv sync --dev'
- After hacking, use `pipenv install -e .` 
- For testing use: `python -m pytest`


## TODO

- [x] Add tests
- [x] Integrate `meetup api` to find latest meetups.
  - [ ] Research if public api exists.
  - [ ] Figure out friendly auth flow for API key.
- [ ] Use rst for README