Fast anime metadata parser - extracts title, episode, resolution, codecs from filenames
Project description
Zantetsu Python
Fast anime metadata parser for Python. Extracts title, episode, resolution, codecs, and more from anime filenames.
Installation
pip install zantetsu
Usage
from zantetsu import HeuristicParser
parser = HeuristicParser()
result = parser.parse("[SubsPlease] Spy x Family - 01 (1080p).mkv")
print(result.title) # 'Spy x Family'
print(result.episode) # '1'
print(result.resolution) # 'FHD1080'
print(result.group) # 'SubsPlease'
Development
Prerequisites
- Rust 1.85+
- Python 3.8+
- maturin:
pip install maturin
Build
cd bindings/python
maturin develop # For local development
maturin build # Build wheels
Publish to PyPI
# Build and publish
maturin publish
# Or use twine
maturin build --release
twine upload target/wheels/*
License
MIT
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 Distribution
zantetsu-0.1.2.tar.gz
(45.3 kB
view details)
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 zantetsu-0.1.2.tar.gz.
File metadata
- Download URL: zantetsu-0.1.2.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f63b8860914fb40f2b095264e3f42eb875be1a9341fd28bfb454c436824ec4fb
|
|
| MD5 |
4df2925eead5ef4e6445a96f1e5c7561
|
|
| BLAKE2b-256 |
6f6174407ba6f28cb79893a03fdfe5e06e5a5052c5b9b7efb9886ddf44325d5a
|
File details
Details for the file zantetsu-0.1.2-cp314-cp314-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: zantetsu-0.1.2-cp314-cp314-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.14, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57ca526c69a3596dc704c43c495739bdac2045d310baf9aa1b9624c3b832d345
|
|
| MD5 |
109a46b643d427fef61fbbac58cde266
|
|
| BLAKE2b-256 |
7f5925b6a1c9f8ea3460a6b683ff47f65559250d18597b096a7e2670ef389fa2
|