Show output when used from python cli
Output is show in ipython:
❯ ipython
Python 3.7.5 (default, Nov 20 2019, 09:21:52)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.10.2 -- An enhanced Interactive Python. Type '?' for help.
Warning: Autoreload of modules is enabled. Disable autoreload in ipython_config.py to improve performance.
In [1]: from greenhost_cloud import cosmos;
In [2]: cosmos.list_droplets()
ID Name IPv4 Status
---- --------------------------------------------------------------- --------------- --------
1745 oas.varac.net 213.108.108.227 running
3277 varac-test 213.108.108.204 running
4008 oas.greenhost.net 213.108.105.219 running
4286 ci-1711 213.108.105.206 running
4313 441-test-cluster-easily 213.108.108.196 running
4324 294-move-back-to-iptables 213.108.108.200 running
4332 451-freeze-all-dependencies-versions-for-beta-test-2 213.108.105.203 running
4334 459-grafana-single-sign-on 213.108.105.164 running
4340 451-freeze-all-dependencies-versions-for-beta-test 213.108.105.192 running
4341 166-make-rocketchat-test-deployment 213.108.105.229 running
4345 434-create-custom-perststant-volume-for-nextcloud-and-onlyoffic 213.108.105.136 running
4347 fix-cert-manager-installation 213.108.105.236 running
4348 444-nextcloud-single-sign-on 213.108.105.195 running
4349 439-integration-of-single-sign-on-into-oas 213.108.105.237 running
4351 master 213.108.108.134 running
4352 455-include-command-line-tests-in-testing-instructions 213.108.105.166 running
but not with python:
❯ python
Python 3.7.5 (default, Nov 20 2019, 09:21:52)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from greenhost_cloud import cosmos;
>>> cosmos.list_droplets()
>>>