Skip to main content

nzbget-file-opener allows you to download *.nzb files with just a double click

Project description

NZBget file opener

This scripts sends .nzb files to the specified host. You can specify many options, like deleting the files after upload. Also, it ensures that NZBGet is running before sending the files, launching it if necessary (Auto-detected on macOS. Windows users have to manually specify app path).

Install

pip install nzbget-file-opener

Usage

nzbget-file-opener [-h]
                   [-n HOSTNAME] [-u USERNAME] [-p PASSWORD]
                   [-l CONFIG] [-d DOMAIN]
                   [-c CATEGORY] [-P PRIORITY]
                   [--add-top] [--add-paused]
                   [-D]
                   [--app-path NZBGET_PATH]
                   files [files ...]


positional arguments:

  files                 the files to send


optional arguments:

  -h, --help            show this help message and exit

  -n HOSTNAME, --hostname HOSTNAME
                        the nzbget hostname to reach
  -u USERNAME, --username USERNAME
                        your nzbget username
  -p PASSWORD, --password PASSWORD
                        your nzbget password

  -l CONFIG, --load-config CONFIG
                        your nzbget config
  -d DOMAIN, --domain DOMAIN
                        the domain target defined in your nzbget config

  -c CATEGORY, --category CATEGORY
                        the category to use for the nzb files download
  -P PRIORITY, --priority PRIORITY
                        the category to use for the nzb files download

  --add-top             add the files to the top of queue
  --add-paused          add the files in pause state

  --app-path NZBGET_PATH
                        specify the nzbget app path to launch it if not
                        already running

  -D, --delete-files    to delete the files sent to NZBget

Scripts

Available pipenv run scripts :

  • install - installs the package in pipenv
  • app - runs the application
  • test - runs the tests with pytest
  • build - build the app artifacts
  • clean - clean the artifacts created with the build script
  • deploy-test - deploy to test.pypi
  • deploy - deploy to pypi

In order to properly run the deploy scripts, you should :

  • have twine installed.
  • have a ~/.pypirc file filled according to the template below

Configurations templates

~/.nzbgetrc configuration (recommended) :

[localhost]
username = local-username
password = local-password

[remote.domain.tld]
port = 6790
username = remote-username
password = remote-password

you can use defaut by not mentioning the field


.env configuration :

NZBGET_URL='[http|https]://hostname:port'
NZBGET_USERNAME='username'
NZBGET_PASSWORD='password'

url scheme and port are optional

you can also set these variables in your environment


.pypirc

[distutils]
index-servers=
    pypi
    testpypi

[pypi]
username: your_username
password: your_password

[testpypi]
repository: https://test.pypi.org/legacy/
username: your_username
password: your_password

Note: pypi.org and test.pypi.org uses two distinct databases for user accounts. You need to create an account for both domains

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

nzbget-file-opener-1.0.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

nzbget_file_opener-1.0.3-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file nzbget-file-opener-1.0.3.tar.gz.

File metadata

  • Download URL: nzbget-file-opener-1.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for nzbget-file-opener-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4cac55526aa8bfcda11553cb21ad1a17c4a91acb970bab23239ebd0217aa7c4a
MD5 f611de69f2cf1008329f54f0e4783105
BLAKE2b-256 bb1115acd38092f4d017bbb8ef83b346e8557eee6a8a94403737af4456b51133

See more details on using hashes here.

File details

Details for the file nzbget_file_opener-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: nzbget_file_opener-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for nzbget_file_opener-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c5177dafa36195771d9007c52b529265b62fd3a19c6408ab4d1a050a9428f5
MD5 7ae9e5739c33963408b9b3f2765dc3ae
BLAKE2b-256 2dd3638fffe5dbd9d55650d3b83ac002f5b05d4315fadaa56ebe80ada00dac1d

See more details on using hashes here.

Supported by

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