Skip to main content

uploadkit-audio

CI Coverage Python

Audio validators, policies, and metadata for UploadKit.

What problem does this solve?

Codec, duration, and structural checks for audio uploads that plug into UploadPolicy.validators without modifying UploadKit Core.

When to use it

Use for MP3, WAV, FLAC, OGG/Opus, M4A/AAC, and WebM audio uploads.

When not to use it

  • Do not transcode, normalize, or generate waveforms here.
  • Do not put generic MIME/filename checks here (see uploadkit-security).

Installation

Requires Python 3.10+.

pip install uploadkit-audio

Quick Start

from uploadkit import Uploader
from uploadkit_audio import AudioPolicy

uploader = Uploader(
    AudioPolicy(max_duration_sec=600, allowed_codecs=frozenset({"mp3", "wav"})),
    storage=my_storage,
)

Public API

Symbol Kind
AudioPolicy Public
AudioMetadata / inspect_audio Public
AudioStructureValidator / AudioCodecValidator / AudioLimitsValidator Public
default_audio_validators / default_async_audio_validators Public
Async validator equivalents Public

Coverage

The coverage badge is a measured total from coverage report --include='src/*', not an aspirational 100%. CI enforces --fail-under=80.

Most of the gap is defensive and format-variant code in metadata.py (non-WAV codecs, mutagen edge cases). Validators and policies are largely covered. Unlike Core / framework adapters, this package does not claim 100% yet — fixtures for those branches are welcome.

Changelog

See CHANGELOG.md.

Contributing

See CONTRIBUTING.md.

Metadata

Release files for uploadkit-audio 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uploadkit-audio 0.1.0
File Size Uploaded Provenance
uploadkit_audio-0.1.0.tar.gz 11.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for uploadkit-audio 0.1.0
File Interpreter ABI Platform
uploadkit_audio-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.5 kB

Release files / uploadkit_audio-0.1.0.tar.gz

Download URL uploadkit_audio-0.1.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1baec7a8b8ead14176af0fa8c35086acd21d29029022f143cdb7d51775a0b950
BLAKE2b-256 checksum
How to use checksums
acb910039276b6e5065931cea4bc268243e5aa7d5eb3b93efb4be8f03a4576bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / uploadkit_audio-0.1.0-py3-none-any.whl

Download URL uploadkit_audio-0.1.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfb30ba243df1234dbee54a60ae8e19be24f82a231ed4030b92dd291ecce67c4
BLAKE2b-256 checksum
How to use checksums
1b41b69d48a51c7f5b2b37e07126b274a7f26c4b15d91ff87eee5f706052418e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for uploadkit-audio 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page