Skip to main content

No project description provided

Project description

TagTor

JS & Rust parser for the TRAKTOR4 metadata tag

test_status last-commit license Rust



About

This is a parser for the TRAKTOR4 metadata tag, written in Rust and portable using wasm. It was mainly created to be used in our Beets Frontend.

Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

tagtor-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl (186.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file tagtor-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tagtor-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d280c9a4086b246d6652f12e4b83caecb6dc570d9d8d7190da9cc6c8f8a81c82
MD5 583425596322897502e44d7599e543d4
BLAKE2b-256 aacacfb12c2301afaf24be33e3f0156df9ac38eba0c92cd244e01ab170c54949

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