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.
Release files for nzb 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nzb-0.2.2.tar.gz | 144.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nzb-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 157.6 kB
Release files / nzb-0.2.2.tar.gz
| Download URL | nzb-0.2.2.tar.gz |
|---|---|
| Size | 144.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
582bbe5ba8381d35ae89cb8fe7d33357597304d584921a5a52361492d60213aa
|
|
BLAKE2b-256 checksum How to use checksums |
5c5e0af5fd202674453f87515004a142218d3e45ed5bc40ac14f992f996a27d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / nzb-0.2.2-py3-none-any.whl
| Download URL | nzb-0.2.2-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53bf68ca99b606873322d29f6f588e3f736bcaefc3377a1cb88afd9add3720a3
|
|
BLAKE2b-256 checksum How to use checksums |
1c4c6ded38032e346f704205ac7f479fc786e20fefd1502e63b7c30468fdccfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|