Skip to main content

Official Python SDK for the AIStemSplitter public API.

Project description

AIStemSplitter Python SDK

Official Python SDK for the AIStemSplitter public API.

Installation

The package source is prepared for conda-forge review. After publication:

conda install -c conda-forge aistemsplitter

Usage

import os
from aistemsplitter import AIStemSplitter

client = AIStemSplitter(os.environ["AISTEMSPLITTER_API_KEY"])

split = client.create_split({
    "input": {
        "type": "direct_url",
        "url": "https://example.com/song.mp3",
    },
    "stemModel": "6s",
})

print(split["id"])

Uploading local audio

with open("song.mp3", "rb") as handle:
    upload = client.upload_audio(
        handle.read(),
        filename="song.mp3",
        content_type="audio/mpeg",
    )

split = client.create_split({"input": upload["input"], "stemModel": "6s"})
result = client.wait_for_split(split["id"])

Development

PYTHONPATH=src python -m unittest discover -s tests

The conda-forge recipe skeleton lives in conda-forge/staged-recipes/recipes/aistemsplitter.

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

aistemsplitter-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aistemsplitter-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file aistemsplitter-0.1.0.tar.gz.

File metadata

  • Download URL: aistemsplitter-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for aistemsplitter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3faf117a2d2acdc8c98c71f296e152466a167c2b53159e3c7542395be34a142
MD5 f9654c679630ef2f787cc28aa142bb73
BLAKE2b-256 8117d8653de6a7e2c0a41dc8a570ca802baeee83d608a1ef4af9a4f1ef79ef73

See more details on using hashes here.

File details

Details for the file aistemsplitter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aistemsplitter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for aistemsplitter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a94fdac152b6eaed9a1afd5b07529d69858727b79e4070033404ee6b0150877d
MD5 10b224ac633ba3596e69422b581ae2f8
BLAKE2b-256 542d68e32539dd51eae80019732b542b15f47932cecdeb85fa622d56462506a2

See more details on using hashes here.

Supported by

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