From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: [Feature idea] Adding wikidata, wikipedia & screenshot-url fields to package-recipes Date: Fri, 2 Nov 2018 16:37:56 +0100 Message-ID: <20181102153756.kaf3wcau3smbhi3s@thebird.nl> References: <20181101102150.naklct2uiujtp2rl@thebird.nl> <301f9d56-2091-2fbc-da89-c2ca53d0f580@riseup.net> <20181102072426.t6od5xusftivw6t6@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIbWM-00020z-Bu for guix-devel@gnu.org; Fri, 02 Nov 2018 11:38:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIbWI-0000S6-Uo for guix-devel@gnu.org; Fri, 02 Nov 2018 11:38:02 -0400 Received: from mail.thebird.nl ([94.142.245.5]:34532) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIbWI-0000Qy-O1 for guix-devel@gnu.org; Fri, 02 Nov 2018 11:37:58 -0400 Content-Disposition: inline In-Reply-To: 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: swedebugia Cc: guix-devel@gnu.org On Fri, Nov 02, 2018 at 12:37:15PM +0100, swedebugia wrote: > Ok. Is there a json guile module? Yup. Dave wrote one, I believe. There is one shipped with Guix. It is probably this one https://directory.fsf.org/wiki/Guile-json#Details > How would I go about mixing python and guile? Export the list of > package records from guile -> JSON and import in a python script? > Can I call a python-script from guile and receive input from it? > So something like: iterate over record fields calling a python > script to fetch data from wikidata acting on the data feeding it > to the console/web template code fire up the webserver serving > the html That could work, for sure. Pj.