Revoize Python SDK
Project description
Revoize SDK
This package allows you to interact with Revoize through Python.
Installation
To install:
pip install revoize
Basic usage
To use this package you will need to have created an account with Revoize and received an API Key from the Revoize Support team.
To enhance your file (my-file.wav) with Revoize you can either use the CLI:
revoize-enhance \
--api-key **** \
--input-file-path my-file.wav \
--output-file-path my-file-revoize.wav
or through the Python API:
from revoize import RevoizeClient
client = RevoizeClient(api_key="***")
client.enhance_file("my-file.wav", "my-file-revoize.wav")
Advanced usage
Additional parameters
You can also specify some processing parameters:
- output loudness - in LUFS, between -32 and -8
Using the CLI you can specify this through the --output-loudness parameter.
Using the Python API:
from revoize.api import RevoizeClient
from revoize.schema import EnhancementParameters
client = RevoizeClient(username="****", password="****")
params = EnhancementParameters(loudness=-20)
client.enhance_file("my-file.wav", "my-file-revoize.wav", params)
Using with a different Revoize tenant
You may need to use this SDK against a different Revoize environment than our global production. In that case, you should be provided a dedicated revoize_url. This should be passed to the RevoizeClient constructor like:
from revoize.api import RevoizeClient
client = RevoizeClient(
api_key="****",
revoize_url=revoize_url,
)
After this setup, you can use the client object as usual.
Publishing to PyPI
This section contains a guide for maintainers about publishing to PyPI.
Before you can publish updates to this package you need to go through a few steps of configuration:
- Globally install
poetry(https://python-poetry.org/) andpoethepoet(https://poethepoet.natn.io/) - Create a PyPI account.
- Contact Revoize admins to add you to package maintainers.
- Create a PyPI API token.
- Configure Poetry to use the API token with
poetry config pypi-token.pypi <token>
You can then issue updates with:
poe bump-version (major|minor|patch)- Commit the change, have it reviewed and merged
poe publish
Testing
To test the SDK against production environment, all you need to do is run:
TEST_API_KEY="<your Revoize API Key>" poe test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file revoize-0.3.0.tar.gz.
File metadata
- Download URL: revoize-0.3.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.8 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75625f790a2843a8abc8e6e8c3655cf0e08cb425d96105a8fcb93098e0c37d90
|
|
| MD5 |
7cbca8a6669d3cecc689c52a57081f74
|
|
| BLAKE2b-256 |
7329a548b12f1e5202e5f4aeebdfd6ce9dfeb92be311201b5eee8eda986a9ede
|
File details
Details for the file revoize-0.3.0-py3-none-any.whl.
File metadata
- Download URL: revoize-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.8 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d72b1caa4f401b257112b306dc7aac386ed91edea60785259f07fee0c86c962
|
|
| MD5 |
be95cff231e41f169ba9238c65acc1a7
|
|
| BLAKE2b-256 |
f6a33c4272229fcd862cf785aa73289d7b6cd30639ef918dc49ba86a091a5a57
|