semvec/pypi-packages huggingface dataset:
qvibe-recorder 0.1.5
Bridges data to/from a mpu6050 to a tcp socket
License: MIT
Requires Python: >=3.7

# qvibe-recorder

[![Build Status](https://travis-ci.com/3ll3d00d/qvibe-recorder.svg?branch=master)](https://travis-ci.com/3ll3d00d/qvibe-recorder)

[![Code Coverage](https://codecov.io/gh/3ll3d00d/qvibe-recorder/branch/master/graph/badge.svg)]( https://codecov.io/gh/3ll3d00d/qvibe-recorder)

An vibration measurement app for the RPI.

Install from pypi as

    $ pip install qvibe-recorder

Designed to be used with [qvibe-analyser](https://github.com/3ll3d00d/qvibe-analyser/)
snuggs 1.4.7
Snuggs are s-expressions for Numpy
License: MIT

======
snuggs
======

.. image:: https://travis-ci.org/mapbox/snuggs.svg?branch=master
   :target: https://travis-ci.org/mapbox/snuggs

.. image:: https://coveralls.io/repos/mapbox/snuggs/badge.svg
   :target: https://coveralls.io/r/mapbox/snuggs

Snuggs are s-expressions for Numpy

.. code-block:: python

    >>> snuggs.eval("(+ (asarray 1 1) (asarray 2 2))")
    array([3, 3])

Syntax
======

Snuggs wraps Numpy in expressions with the following syntax:

.. code-block::

    expression = "(" (operator | function) *arg ")"
    arg = expression | name | number | string

Examples
========

Addition of two numbers
-----------------------

.. code-block:: python

    import snuggs
    snuggs.eval('(+ 1 2)')
    # 3

Multiplication of a number and an array
---------------------------------------

Arrays can be created using ``asarray``.

.. code-block:: python

    snuggs.eval("(* 3.5 (asarray 1 1))")
    # array([ 3.5,  3.5])

Evaluation context
------------------

Expressions can also refer by name to arrays in a local context.

.. code-block:: python

    snuggs.eval("(+ (asarray 1 1) b)", b=np.array([2, 2]))
    # array([3, 3])

This local context may be provided using keyword arguments (e.g.,
``b=np.array([2, 2])``), or by passing a dictionary that stores
the keys and associated array values. Passing a dictionary, specifically
an ``OrderedDict``, is important when using a function or operator that
references the order in which values have been provided. For example,
the ``read`` function will lookup the `i-th` value passed:

.. code-block:: python

    ctx = OrderedDict((
        ('a', np.array([5, 5])),
        ('b', np.array([2, 2]))
    ))
    snuggs.eval("(- (read 1) (read 2))", ctx)
    # array([3, 3])

Functions and operators
=======================

Arithmetic (``* + / -``) and logical (``< <= == != >= > & |``) operators are
available. Members of the ``numpy`` module such as ``asarray()``, ``mean()``,
and ``where()`` are also available.

.. code-block:: python

    snuggs.eval("(mean (asarray 1 2 4))")
    # 2.3333333333333335

.. code-block:: python

    snuggs.eval("(where (& tt tf) 1 0)",
        tt=numpy.array([True, True]),
        tf=numpy.array([True, False]))
    # array([1, 0])

Higher-order functions
======================

New in snuggs 1.1 are higher-order functions ``map`` and ``partial``.

.. code-block:: python

    snuggs.eval("((partial * 2) 2)")
    # 4

    snuggs.eval('(asarray (map (partial * 2) (asarray 1 2 3)))')
    # array([2, 4, 6])

Performance notes
=================

Snuggs makes simple calculator programs possible. None of the optimizations
of, e.g., `numexpr <https://github.com/pydata/numexpr>`__ (multithreading,
elimination of temporary data, etc) are currently available.

If you're looking to combine Numpy with a more complete Lisp, see
`Hy <https://github.com/hylang/hy>`__:

.. code-block:: clojure

    => (import numpy)
    => (* 2 (.asarray numpy [1 2 3]))
    array([2, 4, 6])
pipelinetweak 0.1.0
additional wrapper and classes for sklearn' pipeline API
License: MIT
Requires Python: >=3.6

[![Build Status](https://travis-ci.org/kmedian/pipelinetweak.svg?branch=master)](https://travis-ci.org/kmedian/pipelinetweak)
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/kmedian/pipelinetweak/master?urlpath=lab)

# pipelinetweak

## Table of Contents
* [Installation](#installation)
* [Usage](#usage)
* [Commands](#commands)
* [Support](#support)
* [Contributing](#contributing)


## Installation
The `pipelinetweak` [git repo](http://github.com/kmedian/pipelinetweak) is available as [PyPi package](https://pypi.org/project/pipelinetweak)

```
pip install pipelinetweak
```


## Usage
Check the [examples](http://github.com/kmedian/pipelinetweak/examples) folder for notebooks.


## Commands
* Check syntax: `flake8 --ignore=F401`
* Run Unit Tests: `python -W ignore -m unittest discover`
* Remove `.pyc` files: `find . -type f -name "*.pyc" | xargs rm`
* Remove `__pycache__` folders: `find . -type d -name "__pycache__" | xargs rm -rf`
* Upload to PyPi: `python setup.py sdist upload -r pypi`
* Upload to PyPi with twine: `python setup.py sdist && twine upload -r pypi dist/*`


## Debugging
* Notebooks to profile python code are in the [profile](http://github.com/kmedian/pipelinetweak/profile) folder


## Support
Please [open an issue](https://github.com/kmedian/pipelinetweak/issues/new) for support.


## Contributing
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/kmedian/pipelinetweak/compare/).