On Fri, May 1, 2020 at 3:55 PM Matt Sicker <boa...@gmail.com> wrote:
>
> Technically, Whimsy is running in an Apache server, so any CGI scripts
> should theoretically work. I'm not sure how that could or would be set
> up, though.

A Python script would not be able to call into the libraries that
Whimsy has.  Depending on the use case, that may not be important.

My biggest concern is "number of people willing to maintain the tool".
Meanwhile, here is what is installed on whimsy-vm4 at the moment:

rubys@whimsy-vm4:~$ python --version
Python 2.7.12
rubys@whimsy-vm4:~$ python3 --version
Python 3.5.2
rubys@whimsy-vm4:~$ which python
/usr/bin/python
rubys@whimsy-vm4:~$ which python3
/usr/bin/python3

We haven't cut over to whimsy-vm5 yet, but it has 2.7.17 and 3.6.9 installed.

Python prides itself on being a "batteries included" language, so that
may be enough, but if you need pip modules installed, that can be done
too.  Example:

https://github.com/apache/infrastructure-puppet/blob/ccd586890b333b100f1eb55579bdd015f353bac4/modules/whimsy_server/manifests/init.pp#L56

Also, if what you are doing is producing JSON that would be consumed
by another tool, that code could literally run anywhere, with
consumers of the data getting it via http fetch.

- Sam Ruby

> On Fri, 1 May 2020 at 14:45, Dave Fisher <w...@apache.org> wrote:
> >
> > Hi -
> >
> > I’ve started investigating providing project information for whimsy based 
> > on clutch2.py from the incubator in these two categories:
> >
> > (1) Releases. I plan to generate a json from scanning the 
> > https://dist.apache.org/repos/dist/release using `svn ls`
> >
> > (2) Repositories. I’ll use the gitbox.apache.org/repositories.json and also 
> > https://svn.apache.org/repos/asf/
> >
> > I understand Python and plan to use that for these routines.
> >
> > Can Whimsy have Python server side code or should I plan on running these 
> > elsewhere and Whimsy can use the json for dashboards?
> >
> > Regards,
> > Dave
>
>
>
> --
> Matt Sicker <boa...@gmail.com>

Reply via email to