Skip to main content

A Python library that makes playing audio simple.

Project description


pypat is a Python library that makes playing audio simple. pypat uses FFmpeg to provide robust support for virtually any audio format and SDL2 to play back audio.


Install Prerequisites before installing.


pip3 install pypat


>>> import pypat

# Play a file

# Play a file asynchronously
>>> pypat.play_async('amerika.mpga')

# Skip the current file
>>> pypat.skip()

# Pause audio playback
>>> pypat.pause()

# Resume audio playback
>>> pypat.resume()

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 pypat, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size pypat-0.2.2.tar.gz (22.6 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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page