Skip to content

zackees/static-sox

Repository files navigation

static-sox

MacOS_Tests Ubuntu_Tests Win_Tests Linting

Installs sox binaries and allows you to use them in your python code. Why? Because deploying binaries is a pain. This library makes it not-your-problem. Now you can make a tool that uses sox backend and distribute it easily.

Usage

Outside of python, static_sox can be used to access the library (which will trigger a download on first use).

> pip install static-sox
> static_sox  # static_sox will pass all args to sox

Inside python, you can just add the paths (which will trigger a download on first use) then use sox as you normally would.

import static_sox
import os
static_sox.add_paths(weak=True)  # Only install if sox is not available.
# static_sox.add_paths()  # Sox is installed unconditionally.
os.system("sox --help")

Development

To develop software, run . ./activate.sh. Note that on windows you need to have git-bash installed for development.

Linting

Run ./lint.sh to find linting errors using pylint, flake8 and mypy.

Release

  • 1.0.1: Improve readme.
  • 1.0.0: Initial release. All builds pass.

About

Static binaries for Sox on Win/MacOS/Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published