GithubHelp home page GithubHelp logo

dptn's Introduction

Debian Package Tracker News

Fetch and search news from Debian Package Tracker. (https://tracker.debian.org)

Install

pipx install git+https://github.com/pablos123/dptn.git

Requires Python >=3.8.

Examples

Fetch the news for nginx package.

dptn -f openssl nginx

Search "deb10" string for openssl package.

dptn -s deb10 openssl

Search "deb10" and "2019" strings for openssl and nginx packages.

dptn -s deb10 -s 2019 nginx openssl

Fetch packages before search.

dptn -f -s deb10 -s 2019 nginx openssl

Print all news for openssl package but do it without escaped sequences.

dptn --no-color openssl

Help.

dptn -h

More complex stuff

If you want to do another kind of operation you can work with the news files directly. The files are located in ~/.dptn/ after fetching the news.

There are two files per package:

  • <package_name>
  • <package_name>.json

Each line in the first file is a news for the package and each news is in the form: <date>;;<title>;;url

The .json file is a list of hashes, each hash is a news.

Examples

or operation using rg

echo && rg --color always --smart-case --no-line-number '2003-10|1.1.1' openssl | sed -z '$ s/\n/\n\n/g' | sed 's/;;/\n/g'

Pipe to jq then do whatever

cat nginx.json | jq ...

dptn's People

Contributors

pablos123 avatar

Stargazers

Marco Martel avatar

Watchers

 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.