3 ms·
Recutils is really handy when coupled with command-line tools that return structured data. `guix search`[^] outputs data in recutils format, so if you are sear
by ymse 7y ago
Recutils is really handy when coupled with command-line tools that return structured data.
`guix search`[^] outputs data in recutils format, so if you are searching for a database driver for Python, but want to filter out "python2" variants, and ignore uninteresting fields such as versions or dependencies, you can do:
$ guix search python mysql | recsel -q 'python-' -p name,synopsis,homepage
name: python-mysqlclient
synopsis: MySQLdb is an interface to the popular MySQL database server for Python
homepage: https://github.com/PyMySQL/mysqlclient-python
name: python-pymysql
synopsis: Pure-Python MySQL driver
homepage: https://github.com/PyMySQL/PyMySQL/
name: python-peewee
synopsis: Small object-relational mapping utility
homepage: https://github.com/coleifer/peewee/
Without recsel, the output is 100 lines long, with lots of duplication between the Python 2 and 3 variants.
[^] GNU Guix is a package manager that works on top of any GNU/Linux distribution.
- bjoli 7y agoBrilliant! Thanks. I Will start outputting recfile format from now on.