semvec/pypi-packages huggingface dataset:
aubergine 0.1.2
aubergine: create REST APIs using API-first approach.
License: MIT
Keywords: openapi rest api

aubergine: create REST APIs using API-first approach.
==========================================================================

|License: MIT|

**aubergine** is a library that helps you effortlessly create REST API using
API-first approach.

Creating an API in **aubergine** is simple and requires only the following steps:

1. Create your OpenAPI 3 specification file, with ``operationId`` set to the callable of your choice.

.. code:: yaml

   openapi: "3.0.0"
   servers:
     - url: /v1/rest
   info:
     version: 1.0.0
     title: Hello World
     description: My first api.
   paths:
     /hello:
       get:
	 operationId: hello_world.hello
	 parameters:
	   - who: who
	     in: query
	     description: who to great
	     required: true
	     schema:
	       type: string
	 responses:
	   '200':
	     description: Greeting dedicated to given name.
	     content:
	       application/json:
		 schema:
		     $ref: '#/components/schemas/Greeting'
   components:
     schemas:
       Greeting:
	 required:
	   - message
	 properties:
	   message:
	     type: string

2. Implement operations that you declared in your specification. Place ``hello_world`` module with the following content in an importable directory.

.. code:: python

   def hello(who):
       """Handles v1/rest/hello"""
       return {'message': 'Hello {}!'.format(who)}


3. Tell aubergine to create an app for you. Create a ``hello_app.py`` with the following contents:

.. code:: python

   from aubergine import Aubergine

   app = Aubergine.from_file('hello_world.yml')
   api = app.build_api()

4. Your app is ready to go. You can run it with any WSGI server like so:

.. code:: bash

   gunicorn hello_app:api


Test it by navigating to ``http://localhost:8000/v1/rest/hello?who=World``

.. |License: MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
   :target: https://opensource.org/licenses/MIT
opti-ssr 0.1.4
Using an OptiTrack system for different applications of the SoundScape Renderer
License: MIT
Keywords: optitrack,motive,natnet,ssr,soundscaperenderer

Opti_SSR
========

This python package provides the necessary tools to use an 
OptiTrack_ optical tracking system for different applications of the SoundScape_ Renderer_ (SSR)
including listener position and orientation tracking in local sound field synthesis.

It contains several modules including a module to connect to the OptiTrack system (opti_client) and
a seperate one to connect to and control instances of the SSR (ssr_client).
The module that connects these aforementioned ones and implements sequence and desired functionality is also part of the package (bridges).

Note that the optirx_ 1.10 library is included here with only minor changes from the original source and
that the modules ssr_client and opti_client respectively are designed
to be used independently in other projects as well.

Documentation:
    http://opti-ssr.rtfd.io/

Source code:
    https://github.com/OptiTools/opti_ssr

Python Package Index:
    http://pypi.python.org/pypi/opti_ssr/

Example files to set up the SSR:
    https://github.com/OptiTools/opti_ssr-examples

License:
    MIT -- see the file ``LICENSE`` for details.

.. _SoundScape: http://spatialaudio.net/ssr/
.. _Renderer: http://spatialaudio.net/ssr/
.. _OptiTrack: http://optitrack.com/
.. _optirx: https://bitbucket.org/astanin/python-optirx/src

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

Aside from Python_ itself, NumPy_ and pyquaternion_ are needed. It should work with both Python3 as well as Python2.

.. _Python: http://www.python.org/
.. _NumPy: http://www.numpy.org/
.. _pyquaternion: http://kieranwynn.github.io/pyquaternion/

The easiest way to install this package is using pip_ to download the latest release from PyPi_::

   pip install opti_ssr

.. _pip: https://pip.pypa.io/en/stable/installing/
.. _PyPi: http://pypi.python.org/pypi/opti_ssr/

Usage
-----
To use opti_ssr you can use a demo function like the basic one below.
Simply instantiate the necessary class objects according to the given parameters and start the thread in the class that contains the functionality.
Ready-to-use demo functions to demonstrate head orientation tracking in binaural synthesis or 
listener tracking in local sound field synthesis are available at the github repository.
The SoundScape Renderer has to be started prior to opti_ssr. ::

    import opti_ssr

    def demo(ssr_ip, ssr_port, opti_unicast_ip, opti_multicast_ip, opti_port, ssr_end_message):
        optitrack = opti_ssr.OptiTrackClient(opti_unicast_ip, opti_multicast_ip, opti_port)
        ssr = opti_ssr.SSRClient(ssr_ip, ssr_port, ssr_end_message)
        headtracker = opti_ssr.HeadTracker(optitrack, ssr)
        headtracker.start()

    if __name__ == "__main__":
        demo()