Little tool to generate a JSON file using OpenBSD sqlports as source.
Go to file
Juan Francisco Cantero Hurtado 6f0451de18 Update repo url. 2020-11-22 00:38:20 +01:00 Update repo url. 2020-11-22 00:38:20 +01:00 Indent the entries. 2019-08-10 23:57:40 +02:00

Ports JSON generator

$ doas pkg_add python%3 sqlports
$ git clone
$ cd ports-json
$ ./ -h
usage: [-h] [-l | -o OUTPUT] database

positional arguments:
  database              sqlports database file

optional arguments:
  -h, --help            show this help message and exit
  -l, --list            list columns, useful to detect new entries in the DB
  -o OUTPUT, --output OUTPUT
                        json file where the results will be written
$ ./ -o packages.json /usr/local/share/sqlports