Skip to main content

Ferramenta CLI para upload automatizado em Usenet com RAR, PAR2 e nyuu

Project description

UpaPasta

Português (pt-BR)

Automated Usenet Uploader. One command, full pipeline: PAR2 → upload → NZB ready.

upapasta /tv/Night.of.the.Living.Dead.S01/

PyPI CI Python License: MIT


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 or 7z with password before upload
  • Logs everything in a centralized history (JSONL)
  • Cross-platform: works on Linux, macOS, and Windows

Installation

pip install upapasta

System dependencies:

Binary Function Install
nyuu NNTP Upload npm install -g nyuu
parpar PAR2 Generation (recommended) npm install -g @animetosho/parpar
7z Open source packaging (recommended) apt install p7zip-full / brew install p7zip
rar RAR5 support apt install rar / brew 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 your configuration file:

upapasta --config
  • Linux/macOS: ~/.config/upapasta/.env
  • Windows: %APPDATA%\upapasta\.env

Use cases

Case Command
Entire folder upapasta Folder/
Single file upapasta Episode.S01E01.mkv
Reversible obfuscation upapasta Folder/ --obfuscate
Pack + Password (default) upapasta Folder/ --password "abc123"
Force 7z upapasta Folder/ --7z
Force RAR upapasta Folder/ --rar
Each file = release upapasta /tv/Show.S04/ --each
Season + Single NZB upapasta /tv/Show.S04/ --season
Daemon (watch folder) upapasta /downloads/ --watch
Resume interrupted upload upapasta Folder/ --resume

Recommended Workflow 2026

RAR/7z 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 --par-profile safe

Use packaging (--compress, --rar or --7z) only when you need a password or when the downloader does not support folder reconstruction via PAR2.

Obfuscation

Since v0.28.0, the --obfuscate flag provides maximum stealth by default:

  • Files and PAR2 volumes are renamed to random strings.
  • NZB subjects are obfuscated (protected from indexer "peepers").
  • NZB file headers allow downloaders to restore original names automatically.

Main options

-c, --compress           Activate packaging using default compressor from .env
--rar                    Force RAR5 packaging (ignores .env)
--7z                     Force 7z packaging (ignores .env)
--password PASSWORD      Encryption password (uses default compressor if unspecified)
--obfuscate              Maximum privacy: random names for everything
--tmdb                   Enrich NFO with TMDb metadata (requires API Key)
--tmdb-search TERMO      Search TMDb and list IDs (utility)
--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 files 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


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

upapasta-0.33.0.tar.gz (163.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upapasta-0.33.0-py3-none-any.whl (126.4 kB view details)

Uploaded Python 3

File details

Details for the file upapasta-0.33.0.tar.gz.

File metadata

  • Download URL: upapasta-0.33.0.tar.gz
  • Upload date:
  • Size: 163.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for upapasta-0.33.0.tar.gz
Algorithm Hash digest
SHA256 15c97124139765a31319e5a746c1e69e710429d5ed7d79823efb2d47f891dcfb
MD5 683286a0ea124f7628615d49b4263b7d
BLAKE2b-256 f7eaddaac10587a979e58a126fce8ee8fcd24cf50657743948741499de4f4a47

See more details on using hashes here.

Provenance

The following attestation bundles were made for upapasta-0.33.0.tar.gz:

Publisher: publish.yml on franzopl/upapasta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file upapasta-0.33.0-py3-none-any.whl.

File metadata

  • Download URL: upapasta-0.33.0-py3-none-any.whl
  • Upload date:
  • Size: 126.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for upapasta-0.33.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49c4a0433ad403a9425aaf8914f4e7491ea8d871d09697f9d0ac3890f7e3e9ec
MD5 b450c0f06ca00631c2a2db0b41b214df
BLAKE2b-256 9ec4b541d7e152ce93d01417b7b67a24106af1180eedc7db9dfa0d54336ea6bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for upapasta-0.33.0-py3-none-any.whl:

Publisher: publish.yml on franzopl/upapasta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page