Ferramenta CLI para upload automatizado em Usenet com RAR, PAR2 e nyuu
Project description
UpaPasta
Automated Usenet Uploader. One command, full pipeline: PAR2 → upload → NZB ready.
upapasta /tv/Night.of.the.Living.Dead.S01/
What it does
- Generates PAR2 with redundancy profiles (5 / 10 / 20%)
- Uploads via nyuu without staging in
/tmp(direct paths) - Delivers NZB + NFO with video metadata
- (Optional) Creates RAR5 with password before upload
- Logs everything in
~/.config/upapasta/history.jsonl
Zero Python dependencies — system binaries only.
Installation
pip install upapasta
System dependencies:
| Binary | Function | Install |
|---|---|---|
nyuu |
NNTP Upload | npm install -g nyuu |
parpar |
PAR2 Generation (recommended) | pip install parpar |
par2 |
parpar alternative | apt install par2 |
rar |
RAR5 (only with --rar) |
apt install rar |
ffprobe |
Video metadata in NFO | apt install ffmpeg |
mediainfo |
Technical media info in NFO | apt install mediainfo |
See INSTALL.md for detailed instructions per platform.
Configuration
On the first run, an interactive wizard creates ~/.config/upapasta/.env:
upapasta --config
To configure failover with multiple NNTP servers, edit .env directly — see DOCS.md § Multiple NNTP servers.
Use cases
| Case | Command |
|---|---|
| Entire folder | upapasta Folder/ |
| Single file | upapasta Episode.S01E01.mkv |
| Multiple inputs | upapasta A/ B/ C/ |
| Parallel | upapasta A/ B/ C/ --jobs 3 |
| Reversible obfuscation | upapasta Folder/ --obfuscate |
| Maximum privacy | upapasta Folder/ --strong-obfuscate |
| RAR Password | upapasta Folder/ --password "abc123" |
| Each file = release | upapasta /tv/Show.S04/ --each |
| Season + Single NZB | upapasta /tv/Show.S04/ --season |
| Daemon (watch folder) | upapasta /downloads/ --watch |
| No upload (files only) | upapasta Folder/ --skip-upload |
| Dry run (simulate) | upapasta Folder/ --dry-run |
| Resume interrupted upload | upapasta Folder/ --resume |
Recommended Workflow 2026
RAR is no longer necessary for most cases. parpar stores the folder hierarchy in .par2 files, and recent SABnzbd/NZBGet versions rebuild the tree upon download:
upapasta Folder/ --obfuscate --backend parpar \
--filepath-format common --par-profile safe
Use --rar only when you need a password (legacy cases) or when the downloader does not support reconstruction via PAR2.
Obfuscation levels
| Flag | What is obfuscated | NZB shows original name? |
|---|---|---|
| (none) | nothing | yes |
--obfuscate |
files + PAR2 | yes (reversible) |
--strong-obfuscate |
files + PAR2 + NZB subjects | no |
Main options
--rar Create RAR5 before upload
--obfuscate Random names; NZB restores original names
--strong-obfuscate Maximum privacy: random names for everything
--password PASSWORD RAR password (automatically implies --rar)
--par-profile PROFILE fast (5%) · balanced (10%) · safe (20%)
--jobs N Parallel uploads for multiple inputs
--resume Resume interrupted upload
--dry-run Simulate without sending
--skip-upload Generate RAR/PAR2/NFO without uploading
--each Each file in folder = separate release
--season Like --each + single season NZB
--watch Daemon: automatically process new items
upapasta --help lists all options with full descriptions.
History and statistics
# Last 5 uploads
tail -5 ~/.config/upapasta/history.jsonl | python3 -m json.tool
# Aggregated statistics
upapasta --stats
# Archived NZBs (hardlinks by timestamp)
ls -la ~/.config/upapasta/nzb/
Webhooks and hooks
Configure post-upload notifications in .env:
# Discord, Slack, Telegram or any endpoint accepting POST JSON
WEBHOOK_URL=https://discord.com/api/webhooks/...
# External script (receives UPAPASTA_* variables)
POST_UPLOAD_SCRIPT=/home/user/notify.sh
See DOCS.md § Hooks and webhooks for the full list of variables.
Documentation
- DOCS.md — full reference: configuration, pipeline, flags, obfuscation, PAR2, multiple servers, resume, catalog, hooks
- docs/FAQ.md — frequent errors and direct answers
- docs/TROUBLESHOOTING.md — symptom-based diagnosis
- INSTALL.md — dependency installation per platform
- CHANGELOG.md — version history
License
MIT — see LICENSE.
Developed by franzopl.
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
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 upapasta-0.26.4.tar.gz.
File metadata
- Download URL: upapasta-0.26.4.tar.gz
- Upload date:
- Size: 157.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d263aebb849f2882413e26ae7517a7df5f13e91556239f6fc4301c457cc5af0
|
|
| MD5 |
c40462507e392fb5e19c5950630f106d
|
|
| BLAKE2b-256 |
8de50acde974a75c2aaf776d47240d783e29b8c7005d514a3bcb9fc9a78c719f
|
Provenance
The following attestation bundles were made for upapasta-0.26.4.tar.gz:
Publisher:
publish.yml on franzopl/upapasta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
upapasta-0.26.4.tar.gz -
Subject digest:
9d263aebb849f2882413e26ae7517a7df5f13e91556239f6fc4301c457cc5af0 - Sigstore transparency entry: 1467932046
- Sigstore integration time:
-
Permalink:
franzopl/upapasta@85436fa85d813651f9eed34475859aa59a4fcda3 -
Branch / Tag:
refs/tags/v0.26.4 - Owner: https://github.com/franzopl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@85436fa85d813651f9eed34475859aa59a4fcda3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file upapasta-0.26.4-py3-none-any.whl.
File metadata
- Download URL: upapasta-0.26.4-py3-none-any.whl
- Upload date:
- Size: 114.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
534ba2208a66fddd5db27e7c964d8a885187e4ab55cf30a1899ddc84a02517be
|
|
| MD5 |
e61c313c618fe3d12b90556537ebf80e
|
|
| BLAKE2b-256 |
5fb0aca001a8dcee6227a90baceb46aee96828b522df9c1ccd77b7b706151194
|
Provenance
The following attestation bundles were made for upapasta-0.26.4-py3-none-any.whl:
Publisher:
publish.yml on franzopl/upapasta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
upapasta-0.26.4-py3-none-any.whl -
Subject digest:
534ba2208a66fddd5db27e7c964d8a885187e4ab55cf30a1899ddc84a02517be - Sigstore transparency entry: 1467932186
- Sigstore integration time:
-
Permalink:
franzopl/upapasta@85436fa85d813651f9eed34475859aa59a4fcda3 -
Branch / Tag:
refs/tags/v0.26.4 - Owner: https://github.com/franzopl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@85436fa85d813651f9eed34475859aa59a4fcda3 -
Trigger Event:
release
-
Statement type: