Skip to main content

Logo

A spec compliant parser and meta editor for NZB files

PyPI - Version PyPI - Python Version License Checked with mypy Ruff

GitHub Workflow Status (with event) GitHub Actions Workflow Status codecov

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)

Source distribution for nzb 0.2.2
File Size Uploaded
nzb-0.2.2.tar.gz 144.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nzb 0.2.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.2 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page