Skip to content
/ dptn Public

Fetch and search news from Debian Package Tracker.

Notifications You must be signed in to change notification settings

pablos123/dptn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ...

About

Fetch and search news from Debian Package Tracker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages