No project description provided
Project description
TagTor
JS & Rust parser for the TRAKTOR4 metadata tag
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
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 Distributions
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 tagtor-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: tagtor-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 186.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d280c9a4086b246d6652f12e4b83caecb6dc570d9d8d7190da9cc6c8f8a81c82
|
|
| MD5 |
583425596322897502e44d7599e543d4
|
|
| BLAKE2b-256 |
aacacfb12c2301afaf24be33e3f0156df9ac38eba0c92cd244e01ab170c54949
|