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.

Files for pastream, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pastream-0.0.2-cp26-cp26m-manylinux1_i686.whl (42.2 kB) File type Wheel Python version cp26 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp26-cp26m-manylinux1_x86_64.whl (44.6 kB) File type Wheel Python version cp26 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp26-cp26mu-manylinux1_i686.whl (42.2 kB) File type Wheel Python version cp26 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp26-cp26mu-manylinux1_x86_64.whl (44.6 kB) File type Wheel Python version cp26 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp27-cp27m-manylinux1_i686.whl (42.3 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp27-cp27m-manylinux1_x86_64.whl (44.7 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp27-cp27mu-manylinux1_i686.whl (42.3 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl (44.7 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp27-cp27m-win32.whl (25.6 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp27-cp27m-win_amd64.whl (26.6 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp33-cp33m-manylinux1_i686.whl (39.0 kB) File type Wheel Python version cp33 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp33-cp33m-manylinux1_x86_64.whl (41.3 kB) File type Wheel Python version cp33 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp33-cp33m-win32.whl (25.5 kB) File type Wheel Python version cp33 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp33-cp33m-win_amd64.whl (26.4 kB) File type Wheel Python version cp33 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp34-cp34m-manylinux1_i686.whl (39.1 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp34-cp34m-manylinux1_x86_64.whl (41.4 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp34-cp34m-win32.whl (25.5 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp34-cp34m-win_amd64.whl (26.4 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp35-cp35m-manylinux1_i686.whl (39.1 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp35-cp35m-manylinux1_x86_64.whl (41.4 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp35-cp35m-win32.whl (27.1 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp35-cp35m-win_amd64.whl (28.8 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp36-cp36m-manylinux1_i686.whl (39.1 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp36-cp36m-manylinux1_x86_64.whl (41.4 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp36-cp36m-win32.whl (27.1 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pastream-0.0.2-cp36-cp36m-win_amd64.whl (28.8 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pastream-0.0.2.tar.gz (35.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page