Is there a way to get a list of all apps installed in Tethys?

14 views
Skip to first unread message

shawncrawley

unread,
Sep 9, 2016, 4:53:27 PM9/9/16
to Tethys Platform
I have been put in charge of uninstalling a number of apps on a server. The command "tethys uninstall" requires the app name to be specified. I assumed the app name would match the directory name where the app code is stored, but that is not the case. Is there a tethys command to list all of the installed apps? It would be helpful if it also showed their display name. In the meantime, I used the following (which actually worked quite well):

egrep -rw --include app.py 'name = |package = ' /var/www/tethys/apps/'

shawncrawley

unread,
Sep 9, 2016, 4:55:27 PM9/9/16
to Tethys Platform
Correction:
egrep -rw --include app.py 'name = |package = ' /var/www/tethys/apps/
(No single quote at the end)

shawncrawley

unread,
Sep 9, 2016, 5:04:05 PM9/9/16
to Tethys Platform
I just realized that the package name is the directory name... I don't know why it was causing me problems before. Unless anyone has anything to say, it seems that there is no more need for discussion here.


On Friday, September 9, 2016 at 2:53:27 PM UTC-6, shawncrawley wrote:

shawncrawley

unread,
Sep 9, 2016, 5:07:44 PM9/9/16
to Tethys Platform
This is becoming embarrassing, but I just found the issue. For the most part the package name is the directory name, but not in every case. There was one case where they were different, and that is the one that originally had me hung up. So it still stands, in my opinion, that a tethys function to list all of the app package names would be helpful.

Zhiyu (Drew) Li

unread,
Sep 9, 2016, 5:29:27 PM9/9/16
to shawncrawley, Tethys Platform
does "pip list" show the all installed apps?

--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatform+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tethysplatform/ef230532-e484-4853-8adc-5354e4323c96%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Shawn Crawley

unread,
Sep 9, 2016, 5:50:57 PM9/9/16
to Zhiyu (Drew) Li, Tethys Platform
It does, actually. That works well. The only other problem I can potentially foresee is still struggling to associate the app package with the app's name as shown on the Tethys App Library page.

On Fri, Sep 9, 2016 at 3:29 PM Zhiyu (Drew) Li <zyli...@gmail.com> wrote:
does "pip list" show the all installed apps?
On Fri, Sep 9, 2016 at 3:07 PM, shawncrawley <shawnc...@gmail.com> wrote:
This is becoming embarrassing, but I just found the issue. For the most part the package name is the directory name, but not in every case. There was one case where they were different, and that is the one that originally had me hung up. So it still stands, in my opinion, that a tethys function to list all of the app package names would be helpful.

On Friday, September 9, 2016 at 3:04:05 PM UTC-6, shawncrawley wrote:
I just realized that the package name is the directory name... I don't know why it was causing me problems before. Unless anyone has anything to say, it seems that there is no more need for discussion here.

On Friday, September 9, 2016 at 2:53:27 PM UTC-6, shawncrawley wrote:
I have been put in charge of uninstalling a number of apps on a server. The command "tethys uninstall" requires the app name to be specified. I assumed the app name would match the directory name where the app code is stored, but that is not the case. Is there a tethys command to list all of the installed apps? It would be helpful if it also showed their display name. In the meantime, I used the following (which actually worked quite well):

egrep -rw --include app.py 'name = |package = ' /var/www/tethys/apps/'

--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatfor...@googlegroups.com.

swainn

unread,
Sep 12, 2016, 10:58:24 AM9/12/16
to Tethys Platform, zyli...@gmail.com
I can certainly see the utility of having a way to list all of the apps that are installed. When you start up Tethys, the command prompt should print out a list of the installed apps.

To clarify, the name of the app should be the same as the package variable in the app.py, which should also be the same as the app package. Take a look at this documentation for an explanation of "app package": http://docs.tethysplatform.org/en/latest/supplementary/app_project.html  I'd be interested to find out more details about the case that you found where those weren't matching.
Reply all
Reply to author
Forward
0 new messages