Git Product home page Git Product logo

juicenet-cli's Introduction


Logo

juicenet

CLI tool designed to simplify the process of uploading files to Usenet

PyPI - Version PyPI - Python Version GitHub Workflow Status (with event) GitHub Workflow Status (with event) License Checked with mypy Ruff

Table Of Contents

About The Project

Uploading stuff to Usenet is tedious so I tried to make it easier.

  • Uses ParPar and Nyuu under the hood
  • Recursively searches for files with pre-defined extensions in juicenet.yaml or as passed in --exts
  • Alternatively, searches for glob patterns passed in --glob
  • Preserves folder structure without RAR. RAR sucks and here's why
  • Does everything automatically and gives you the resulting nzbs in a neatly sorted manner
  • Offers the option to pick and choose what it does if you don't want it doing everything automatically
  • Automatically checks for and reposts failed articles from last run. Also has the option to not do this.
  • Can continue from where it stopped if it gets interrupted for any reason

Installation

Local

Prerequisites

Installation

  1. With pipx (recommended):

    pipx install juicenet-cli
  2. With pip:

    pip install juicenet-cli

For more details, checkout the local installation guide here

Docker

---
version: "2.1"
services:
  juicenet:
    image: ravencentric/juicenet-cli:latest
    container_name: juicenet
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - host/path/to/config/nyuu.docker.private.json:/config/nyuu.docker.private.json
      - host/path/to/config/nyuu.docker.public.json:/config/nyuu.docker.public.json
      - host/path/to/data/nzbs:/data/nzbs
      - host/path/to/data/appdata:/data/appdata
      - host/path/to/data/raw:/data/raw
      - host/path/to/media:/media
docker compose -f "path/to/docker-compose.yml" run juicenet --help

For more details, checkout the docker installation guide here

Docs

Checkout the complete documentation here

License

Distributed under the Unlicense License. See UNLICENSE for more information.

juicenet-cli's People

Contributors

dependabot[bot] avatar ravencentric avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

juicenet-cli's Issues

Switch to cyclopts

Cyclopts v2 is exactly what I wanted. I'll wait for it to release and then port this over.

Benefits of switching:

  1. I can get rid of my shitty env var logic because cyclopts has it out of the box
  2. Same with --version
  3. Input validation out of the box

Ref:

Fun fact: I first wrote this using click, but while working on it I found things I did not like and then switched over to Typer which turned out to have the same issues so I just settled with argparse.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
github-actions
.github/workflows/docker.yml
  • actions/checkout v4
  • docker/setup-buildx-action v3
  • docker/login-action v3
  • docker/login-action v3
  • docker/metadata-action v5
  • docker/build-push-action v5
.github/workflows/dockerhub-description.yml
  • actions/checkout v4
  • peter-evans/dockerhub-description v4
.github/workflows/docs.yml
  • actions/checkout v4
  • actions/setup-python v5
  • actions/cache v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-python v5
  • tj-actions/git-cliff v1
  • ncipollo/release-action v1
.github/workflows/test.yml
  • actions/checkout v4
  • actions/setup-python v5
  • actions/cache v4
  • actions/upload-artifact v4
pep621
pyproject.toml
pip_requirements
requirements-dev.txt
  • annotated-types ==0.6.0
  • attrs ==23.2.0
  • babel ==2.14.0
  • certifi ==2024.2.2
  • cfgv ==3.4.0
  • charset-normalizer ==3.3.2
  • click ==8.1.7
  • colorama ==0.4.6
  • cyclopts ==2.4.0
  • distlib ==0.3.8
  • docstring-parser ==0.15
  • docutils ==0.20.1
  • filelock ==3.13.1
  • ghp-import ==2.1.0
  • griffe ==0.41.0
  • identify ==2.5.35
  • idna ==3.6
  • importlib-metadata ==7.0.1
  • jinja2 ==3.1.3
  • loguru-mypy ==0.0.4
  • loguru ==0.7.2
  • markdown-it-py ==3.0.0
  • markdown ==3.5.2
  • markupsafe ==2.1.5
  • mdurl ==0.1.2
  • mergedeep ==1.3.4
  • mkdocs-autorefs ==1.0.1
  • mkdocs-material-extensions ==1.3.1
  • mkdocs-material ==9.5.12
  • mkdocs ==1.5.3
  • mkdocstrings-python ==1.8.0
  • mkdocstrings ==0.24.1
  • mkdocstrings ==0.24.1
  • mypy-extensions ==1.0.0
  • mypy ==1.8.0
  • natsort ==8.4.0
  • nodeenv ==1.8.0
  • packaging ==23.2
  • paginate ==0.5.6
  • pathspec ==0.12.1
  • platformdirs ==4.2.0
  • pre-commit ==3.6.2
  • pydantic-core ==2.16.3
  • pydantic ==2.6.3
  • pygments ==2.17.2
  • pymdown-extensions ==10.7
  • python-dateutil ==2.8.2
  • pyyaml-env-tag ==0.1
  • pyyaml ==6.0.1
  • regex ==2023.12.25
  • requests ==2.31.0
  • rich-rst ==1.2.0
  • rich ==13.7.1
  • ruff ==0.2.2
  • setuptools ==69.1.1
  • six ==1.16.0
  • strenum ==0.4.15
  • tomli ==2.0.1
  • typing-extensions ==4.10.0
  • urllib3 ==2.2.1
  • virtualenv ==20.25.1
  • watchdog ==4.0.0
  • win32-setctime ==1.1.0
  • zipp ==3.17.0
requirements.txt
  • annotated-types ==0.6.0
  • attrs ==23.2.0
  • colorama ==0.4.6
  • cyclopts ==2.4.0
  • docstring-parser ==0.15
  • docutils ==0.20.1
  • importlib-metadata ==7.0.1
  • loguru ==0.7.2
  • markdown-it-py ==3.0.0
  • mdurl ==0.1.2
  • natsort ==8.4.0
  • pydantic-core ==2.16.3
  • pydantic ==2.6.3
  • pygments ==2.17.2
  • pyyaml ==6.0.1
  • rich-rst ==1.2.0
  • rich ==13.7.1
  • strenum ==0.4.15
  • typing-extensions ==4.10.0
  • win32-setctime ==1.1.0
  • zipp ==3.17.0
poetry
pyproject.toml
  • python ^3.9
  • cyclopts ^2.4.0
  • PyYAML ^6.0.1
  • loguru ^0.7.2
  • rich ^13.7.0
  • colorama ^0.4.6
  • pydantic ^2.6.2
  • strenum ^0.4.15
  • importlib-metadata ^7.0.1
  • natsort ^8.4.0
  • ruff ^0.2.1
  • mypy ^1.8.0
  • loguru-mypy ^0.0.4
  • pre-commit ^3.6.2
  • mkdocs-material ^9.5.11
  • mkdocstrings ^0.24.0
  • mkdocs-autorefs ^1.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Password NZBs

I've attempted to add into my nyuu.private.json

    " *** NZB Options *** ":0,
    "out":                "{filename}.nzb",
    "overwrite":          true,
    "nzb-subject":        "[{filenum}/{files}] - \"{filename}\" yEnc ({part}/{parts}) {filesize}",
    "nzb-password":       "${rand(15)}",

But checking the header of the NZB it just shows it as pure text and not a randomly generated password, other functions of the generation worked fine.

<!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.1//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.1.dtd">
<nzb xmlns="http://www.newzbin.com/DTD/2003/nzb">
	<head>
		<meta type="password">${rand(15)}</meta>
	</head>

two attempted names of nzb-password but if I tried just doing "password" nyuu thought it was part of the NNTP login so got

[2024-04-17 12:16:01.999][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)
[2024-04-17 12:16:01.999][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)
[2024-04-17 12:16:02.000][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)
[2024-04-17 12:16:02.000][WARN] NNTP connection failed: Unexpected response to auth pass (code: 502): Authentication Failed, reconnecting after 15 second(s)... (attempt 1/1)

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.