Skip to main content

No project description provided

Project description

https://travis-ci.org/tgarc/pastream.svg?branch=add_wheels https://ci.appveyor.com/api/projects/status/wk52r5jy9ri7dsi9/branch/add_wheels?svg=true

pastream Portaudio Streams for Python

pastream builds on top of portaudio and the excellent sounddevice python bindings to provide some more advanced functionality right out of the box.

Features

GIL-less Audio Callbacks

Having the portaudio callback implemented in C means audio interrupts can be serviced quickly and reliably without ever needing to acquire the GIL.

Expanded State Machine

Adds the ability to differentiate whether a stream has been aborted or completed successfully even after the stream has finished.

Input Stream iterators

Efficiently retrieve live audio capture data through an iterable. Especially useful for audio analysis tasks.

Reader/Writer Threads

pastream simplifies the process of implementing stream reader and writer threads to manipulate and/or generate data in the background while leaving the main thread free for higher level management tasks.

Dependencies

(Linux only) PortAudio

sounddevice

soundfile

(Optional) numpy

Installation

For linux platforms a recent version of PortAudio is required. You can either install the latest from your package manager (libportaudio2 for debian/raspbian) or install the latest stable build from here (Recommended).

If doing a fresh checkout:

$ git clone --recursive http://github.com/tgarc/pastream

If you already have a checkout:

$ git submodule update --init

Then do a pip install:

$ pip install <path/to/checkout>

Compilation

Note that you will need to have the proper build environment set up in order to compile pastream’s C extensions.

On linux platforms you’ll simply need to have a C compiler installed - no extra development files are required.

For Windows users this document will guide you through setting up a build environment for your Python version. To sum it up:

For Python 2.7

Install VS2008 from here

For Python 3.4

Install Windows SDK for Windows 7 and .NET Framework 4 from here

For Python 3.5

Install VS2015 from here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pastream-0.0.2.tar.gz (35.8 kB view hashes)

Uploaded Source

Built Distributions

pastream-0.0.2-cp36-cp36m-win_amd64.whl (28.8 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pastream-0.0.2-cp36-cp36m-win32.whl (27.1 kB view hashes)

Uploaded CPython 3.6m Windows x86

pastream-0.0.2-cp36-cp36m-manylinux1_x86_64.whl (41.4 kB view hashes)

Uploaded CPython 3.6m

pastream-0.0.2-cp36-cp36m-manylinux1_i686.whl (39.1 kB view hashes)

Uploaded CPython 3.6m

pastream-0.0.2-cp35-cp35m-win_amd64.whl (28.8 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

pastream-0.0.2-cp35-cp35m-win32.whl (27.1 kB view hashes)

Uploaded CPython 3.5m Windows x86

pastream-0.0.2-cp35-cp35m-manylinux1_x86_64.whl (41.4 kB view hashes)

Uploaded CPython 3.5m

pastream-0.0.2-cp35-cp35m-manylinux1_i686.whl (39.1 kB view hashes)

Uploaded CPython 3.5m

pastream-0.0.2-cp34-cp34m-win_amd64.whl (26.4 kB view hashes)

Uploaded CPython 3.4m Windows x86-64

pastream-0.0.2-cp34-cp34m-win32.whl (25.5 kB view hashes)

Uploaded CPython 3.4m Windows x86

pastream-0.0.2-cp34-cp34m-manylinux1_x86_64.whl (41.4 kB view hashes)

Uploaded CPython 3.4m

pastream-0.0.2-cp34-cp34m-manylinux1_i686.whl (39.1 kB view hashes)

Uploaded CPython 3.4m

pastream-0.0.2-cp33-cp33m-win_amd64.whl (26.4 kB view hashes)

Uploaded CPython 3.3m Windows x86-64

pastream-0.0.2-cp33-cp33m-win32.whl (25.5 kB view hashes)

Uploaded CPython 3.3m Windows x86

pastream-0.0.2-cp33-cp33m-manylinux1_x86_64.whl (41.3 kB view hashes)

Uploaded CPython 3.3m

pastream-0.0.2-cp33-cp33m-manylinux1_i686.whl (39.0 kB view hashes)

Uploaded CPython 3.3m

pastream-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl (44.7 kB view hashes)

Uploaded CPython 2.7mu

pastream-0.0.2-cp27-cp27mu-manylinux1_i686.whl (42.3 kB view hashes)

Uploaded CPython 2.7mu

pastream-0.0.2-cp27-cp27m-win_amd64.whl (26.6 kB view hashes)

Uploaded CPython 2.7m Windows x86-64

pastream-0.0.2-cp27-cp27m-win32.whl (25.6 kB view hashes)

Uploaded CPython 2.7m Windows x86

pastream-0.0.2-cp27-cp27m-manylinux1_x86_64.whl (44.7 kB view hashes)

Uploaded CPython 2.7m

pastream-0.0.2-cp27-cp27m-manylinux1_i686.whl (42.3 kB view hashes)

Uploaded CPython 2.7m

pastream-0.0.2-cp26-cp26mu-manylinux1_x86_64.whl (44.6 kB view hashes)

Uploaded CPython 2.6mu

pastream-0.0.2-cp26-cp26mu-manylinux1_i686.whl (42.2 kB view hashes)

Uploaded CPython 2.6mu

pastream-0.0.2-cp26-cp26m-manylinux1_x86_64.whl (44.6 kB view hashes)

Uploaded CPython 2.6m

pastream-0.0.2-cp26-cp26m-manylinux1_i686.whl (42.2 kB view hashes)

Uploaded CPython 2.6m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page