A spec compliant parser and meta editor for NZB files
Project description
A spec compliant parser and meta editor for NZB files
Table Of Contents
About
A spec compliant parser and meta editor for NZB files.
Installation
nzb
is available on PyPI, so you can simply use pip to install it.
pip install nzb
Usage
from nzb import NZBParser
nzb = NZBParser.from_file("Big Buck Bunny - S01E01.mkv.nzb").parse()
print(f"{nzb.file.name} ({nzb.file.size.human_readable()})")
#> Big Buck Bunny - S01E01.mkv (16.7MiB)
for file in nzb.files:
print((file.name, file.size, file.datetime.isoformat(), file.groups))
#> ("Big Buck Bunny - S01E01.mkv", 17521761, "2024-01-28T11:18:28+00:00", ("alt.binaries.boneless",))
#> ("Big Buck Bunny - S01E01.mkv.par2", 1089, "2024-01-28T11:18:29+00:00", ("alt.binaries.boneless",))
#> ("Big Buck Bunny - S01E01.mkv.vol00+01.par2", 741017, "2024-01-28T11:18:29+00:00", ("alt.binaries.boneless",))
#> ("Big Buck Bunny - S01E01.mkv.vol01+02.par2", 1480494, "2024-01-28T11:18:29+00:00", ("alt.binaries.boneless",))
#> ("Big Buck Bunny - S01E01.mkv.vol03+04.par2", 2960528, "2024-01-28T11:18:29+00:00", ("alt.binaries.boneless",))
Docs
Checkout the complete documentation here.
License
Distributed under the MIT License. See LICENSE for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nzb-0.2.2.tar.gz
(144.3 kB
view details)
Built Distribution
nzb-0.2.2-py3-none-any.whl
(13.3 kB
view details)
File details
Details for the file nzb-0.2.2.tar.gz
.
File metadata
- Download URL: nzb-0.2.2.tar.gz
- Upload date:
- Size: 144.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 582bbe5ba8381d35ae89cb8fe7d33357597304d584921a5a52361492d60213aa |
|
MD5 | 5442f27f6f25264e7e56d35ce55e52fd |
|
BLAKE2b-256 | 5c5e0af5fd202674453f87515004a142218d3e45ed5bc40ac14f992f996a27d0 |
File details
Details for the file nzb-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: nzb-0.2.2-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53bf68ca99b606873322d29f6f588e3f736bcaefc3377a1cb88afd9add3720a3 |
|
MD5 | 337450b50b09245529c77b79667051b1 |
|
BLAKE2b-256 | 1c4c6ded38032e346f704205ac7f479fc786e20fefd1502e63b7c30468fdccfc |