Python API for Firefly, IPAC's Advanced Astronomy Web UI Framework
The client must be connected to a Firefly server. The Firefly repository is located at http://github.com/Caltech-IPAC/firefly. Standalone Firefly servers may be obtained from this Dockerhub repository.
For examples, see the online documentation, or the documentation source file.
from firefly_client import FireflyClient
fc = FireflyClient('http://localhost:8080')
A FITS image may be uploaded and displayed.
fval = fc.upload_file('image.fits')
fc.show_fits(fval, 'myimage')