Skip to content

Caltech-IPAC/firefly_client

Folders and files

NameName
Last commit message
Last commit date
Aug 30, 2024
Dec 19, 2024
May 23, 2024
Dec 19, 2024
Aug 12, 2021
Mar 28, 2024
Nov 14, 2016
Aug 11, 2020
Mar 28, 2024
Feb 18, 2025

Repository files navigation

firefly_client

Python API for Firefly, IPAC's Advanced Astronomy Web UI Framework

Usage

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 detailed explanation on the usage, see the online documentation. Following is a very simple example:

from firefly_client import FireflyClient
fc = FireflyClient.make_client()  # can also explictly pass url of a firefly server; default is http://localhost:8080/firefly

A FITS image may be uploaded and displayed:

fval = fc.upload_file('image.fits')
fc.show_fits(fval, 'myimage')

For more examples, check notebooks & python files in the examples and test directories.