Skip to main content

TagTor

JS, Python & Rust parser for the TRAKTOR4 metadata tag

test_status last-commit license Rust

PyPi NPM



About

This is a parser for the TRAKTOR4 metadata tag, written in Rust. Wrapped for use in JavaScript, Python are available.

At the moment writing is not supported as the TRAKTOR4 metadata has an CHECKSUM field which is not trivial to calculate. If you have an idea how to do this, please open an issue or a pull request! Help is very welcome!

Usage

Python

import mutagen
from tagtor import parse_frame
# Get traktor4 metadata from a file somehow (example using mutagen)
f = mutagen.File('path/to/file.mp3')
traktor4_metadata = bytes(f.tags.getall("PRIV")[0])

# Parse the metadata
frame = parse_frame(traktor4_metadata)

JavaScript

import { parse_frame } from 'tagtor';

// Get traktor4 metadata from a file somehow
const traktor4_metadata = getTraktor4MetadataFromFile();
// Parse the metadata
const frame = parse_frame(traktor4_metadata);

See type information to understand the structure of the returned frame object.

Rust

use tagtor::parse_frame;

// Get traktor4 metadata from a file somehow
let traktor4_metadata = get_traktor4_metadata_from_file();
// Parse the metadata
let frame = parse_frame(traktor4_metadata).unwrap();

Using wasm32 as target will pull in wasm-bindgen and tsify.

Development

This rust project can be compiled to a JavaScript module using wasm-pack:

wasm-pack build

Alternatively, you can also compile it as python module using maturin:

maturin build --release --features python-binding
# Or 
maturin develop --features python-binding

Metadata

Release files for tagtor 0.2.4

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

Built distribution (wheel)

Table of built distributions (wheels) for tagtor 0.2.4
File Interpreter ABI Platform Actions
tagtor-0.2.4-cp39-abi3-manylinux_2_34_x86_64.whl CPython 3.9 abi3 Linux glibc 2.34+ x86-64 Details for tagtor-0.2.4-cp39-abi3-manylinux_2_34_x86_64.whl

Release files / tagtor-0.2.4-cp39-abi3-manylinux_2_34_x86_64.whl

Download URL tagtor-0.2.4-cp39-abi3-manylinux_2_34_x86_64.whl
Size 185.1 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
27f6793b6b6e058229b780599fb6ebafa72ecf49b2c5103a1525d0b38b230776
BLAKE2b-256 checksum
How to use checksums
95750a62385fb0f85c6586ce36449d46d696077a3bec25d101d67b2657523f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Security for tagtor 0.2.4

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file 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