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
Built Distribution
File details
Details for the file nzb-0.3.0.tar.gz
.
File metadata
- Download URL: nzb-0.3.0.tar.gz
- Upload date:
- Size: 144.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0bb45c8c8078ad4498b168c6eec3e05a0ddad9572ecf8e8d465cfc563e64807 |
|
MD5 | 9f0a9545fdb357a38b71f1b9de5aec6a |
|
BLAKE2b-256 | 1316cfb8bf13fe42f5843b4c9b088171e9c2afc0da85e77b74c48410d5a69474 |
Provenance
The following attestation bundles were made for nzb-0.3.0.tar.gz
:
Publisher:
release.yml
on Ravencentric/nzb
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
nzb-0.3.0.tar.gz
- Subject digest:
b0bb45c8c8078ad4498b168c6eec3e05a0ddad9572ecf8e8d465cfc563e64807
- Sigstore transparency entry: 139122933
- Sigstore integration time:
- Predicate type:
File details
Details for the file nzb-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: nzb-0.3.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe7d6117c86e05117198b418c68b210f3e8fe9cd7006d6d093cecb2e1c290afc |
|
MD5 | 33fdd7a71644b5238d779617102f925e |
|
BLAKE2b-256 | 561b83af2cdbc8bf154b740fe5b37a44f9a6d15ab127e91f5edfd24f34dc36e2 |
Provenance
The following attestation bundles were made for nzb-0.3.0-py3-none-any.whl
:
Publisher:
release.yml
on Ravencentric/nzb
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
nzb-0.3.0-py3-none-any.whl
- Subject digest:
fe7d6117c86e05117198b418c68b210f3e8fe9cd7006d6d093cecb2e1c290afc
- Sigstore transparency entry: 139122937
- Sigstore integration time:
- Predicate type: