Re: Is distro-tracker accessible by some sort of API?

2020-03-15 Thread Jelmer Vernooij
On Sat, Jan 18, 2020 at 01:50:29AM +1100, Stuart Prescott wrote: > > does source package 'foo' exist in release 'bar'? > > > > Looking at the UDD wiki page and the associated examples, it seems like > > the query I need is something roughly like: > > > > SELECT COUNT(*) FROM public.packages

Re: Is distro-tracker accessible by some sort of API?

2020-01-17 Thread Paul Wise
On Fri, Jan 17, 2020 at 1:11 PM Roberto C. Sánchez wrote: > My initial thought was to query the tracker for a given package to > determine its availability. > > does source package 'foo' exist in release 'bar'? I don't know the context for this question but if command-line is enough then just

Re: Is distro-tracker accessible by some sort of API?

2020-01-17 Thread Paul Wise
On Fri, Jan 17, 2020 at 3:18 PM Stuart Prescott wrote: > FWIW there are python bindings and CLI tools for UDD floating around ... I > really should package them (and having people interested in them would be > good motivation for that) I think it would be great to have those in devscripts,

Re: Is distro-tracker accessible by some sort of API?

2020-01-17 Thread Stuart Prescott
Hi Roberto > does source package 'foo' exist in release 'bar'? > > Looking at the UDD wiki page and the associated examples, it seems like > the query I need is something roughly like: > > SELECT COUNT(*) FROM public.packages WHERE source='foo' AND release='bar'; > > Is this the best approach?

Re: Is distro-tracker accessible by some sort of API?

2020-01-17 Thread Roberto C . Sánchez
On Fri, Jan 17, 2020 at 02:41:26AM +, Paul Wise wrote: > On Thu, Jan 16, 2020 at 7:06 PM Roberto C. Sánchez wrote: > > > I've read the distro-tracker documentation and it seems like interaction > > is by visiting with a web browser or via email. Is there an official or > > even unofficial

Re: Is distro-tracker accessible by some sort of API?

2020-01-16 Thread Paul Wise
On Thu, Jan 16, 2020 at 7:06 PM Roberto C. Sánchez wrote: > I've read the distro-tracker documentation and it seems like interaction > is by visiting with a web browser or via email. Is there an official or > even unofficial API for access to data in distro-tracker? There are a few APIs defined

Is distro-tracker accessible by some sort of API?

2020-01-16 Thread Roberto C . Sánchez
I've read the distro-tracker documentation and it seems like interaction is by visiting with a web browser or via email. Is there an official or even unofficial API for access to data in distro-tracker? Regards, -Roberto -- Roberto C. Sánchez