Skip to main content

tom-transients-fyi

A TOM Toolkit data service for transients.fyi: bring a view's objects into your TOM as targets, with their light curves, non-detections included.

  • Targets from a view. Paste the API URL from the Subscribe panel of a transients.fyi objects view (https://transients.fyi/api/table?…) or a /tonight.json?… URL, or fill in a few fields (window, source, TNS type, discovered within, brightness, a declination band, AAVSO campaigns). Each object becomes a SIDEREAL target named by its TNS name (else its designation or id), with its other names as aliases and its class, redshift, discovery night and link as extras.
  • Photometry. Reported objects' detections and 5σ limits from transients.fyi (TNS, ATLAS and CBAT reports; magnitudes AB, Vega ones converted). ZTF and Rubin objects' alerts from the Fink broker: ZTF's upper limits, and Rubin's forced photometry on visits without a detection as 5σ limits (Rubin's times are TAI, converted to UTC).
  • Update Reduced Data on a target page fetches its photometry again (from its tfyi_id extra).

Requires TOM Toolkit 3 (tom_dataservices). Tested with tomtoolkit 3.0.1.

Installation

pip install tom-transients-fyi

Add the app to INSTALLED_APPS in your TOM's settings.py:

INSTALLED_APPS = [
    ...
    'tom_dataservices',
    'tom_transients_fyi',
]

The service appears under Data Services as transients.fyi. No key is needed. To point it at another copy of the site:

DATA_SERVICES = {
    "transients.fyi": {"base_url": "https://transients.fyi"},
}

Credits

Please credit transients.fyi and the providers of the data you use, as transients.fyi/data lists them: Fink (Möller et al. 2021), ZTF (Bellm et al. 2019), the Vera C. Rubin Observatory (Ivezić et al. 2019), the TNS, CBAT, ATLAS (Tonry et al. 2018; Smith et al. 2020; Shingles et al. 2021) and AAVSO.

Development

With uv:

uv sync                                                           # .venv with the locked versions
uv run python tom_transients_fyi/tests/run_tests.py               # tests on recorded responses
uv run python tom_transients_fyi/tests/run_tests.py --canary      # against the live services
uv run python tom_transients_fyi/tests/check_migrations.py
uv run ruff check . && uv run ruff format --check .

The tests run on responses recorded from transients.fyi and Fink on 2026-09-30 (tom_transients_fyi/tests/data). CI (.github/workflows/ci.yml) runs the same on Python 3.10–3.13, Linux and macOS; the canary runs daily.

Releasing

The version comes from the git tag (hatch-vcs). Tag and push:

git tag v0.1.0 && git push origin v0.1.0

.github/workflows/release.yml runs CI, builds with uv build, publishes to PyPI by trusted publishing (no token) and makes a GitHub release with the files.

Metadata

Release files for tom-transients-fyi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tom-transients-fyi 0.1.0
File Size Uploaded
tom_transients_fyi-0.1.0.tar.gz 31.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tom-transients-fyi 0.1.0
File Interpreter ABI Platform
tom_transients_fyi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 53.0 kB

Release files / tom_transients_fyi-0.1.0.tar.gz

Download URL tom_transients_fyi-0.1.0.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c8c3db809a9aca75fc0f88c89afc43ad5a4f34aa6eacfc9645ea8396b88e9d7a
BLAKE2b-256 checksum
How to use checksums
c61a237edacb233d4359288eed4b9811fdc3d6336704322046f3bb9614214f5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tom_transients_fyi-0.1.0-py3-none-any.whl

Download URL tom_transients_fyi-0.1.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd07eb63877210d54fd72e7c94574f31e2107b4f8f90298af8996ae00be5cdc3
BLAKE2b-256 checksum
How to use checksums
45c8462c775162222d8d3627a6410d1faeb66c0926869db5a9fe33718e971c62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page