Coder Social home page Coder Social logo

nzbget-file-opener's Introduction

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

Optional: macOS users can install the app to attach .nzb files, to automatically send them to the server when double clicked.

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

nzbget-file-opener's People

Contributors

bil0u avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.