From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: How to get the package metadata as structured data? Date: Thu, 04 Aug 2016 23:08:43 +0200 Message-ID: <87a8gss0mc.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVPsq-0001It-5a for guix-devel@gnu.org; Thu, 04 Aug 2016 17:08:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVPsl-0002rl-5j for guix-devel@gnu.org; Thu, 04 Aug 2016 17:08:51 -0400 In-Reply-To: (David Craven's message of "Thu, 4 Aug 2016 22:49:37 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Philippe Ombredanne , David Craven Cc: guix-devel Hi! David Craven skribis: > All package metadata can be accessed easily through scheme. There is > no way to export this data currently, although it probably wouldn't be > too hard to implement. One way is: guix package -s . which returns a recutils database=C2=B9, which is essentially plain text. Alternately we could write a snippet to export it as JSON if you prefer. Ludo=E2=80=99. =C2=B9 https://gnu.org/s/recutils/manual/html_node/The-Rec-Format.html