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/objects?…) 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, CBAT, ASAS-SN, ATLAS and AAVSO 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); with the reported points of the designations they carry (an object's TNS name: TNS's, ATLAS's and AAVSO's points, the designation in the source name).
  • Update Reduced Data on a target page fetches its photometry again (from its tfyi_id extra). A report that a ZTF or Rubin object takes over follows it: transients.fyi redirects the report's id to that object, and the target's tfyi_id moves there.

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.2.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.2.0
File Size Uploaded
tom_transients_fyi-0.2.0.tar.gz 33.2 kB Details

Built distribution (wheel)

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

Total release size: 55.5 kB

Release files / tom_transients_fyi-0.2.0.tar.gz

Download URL tom_transients_fyi-0.2.0.tar.gz
Size 33.2 kB
Tags Source
SHA-256 checksum
How to use checksums
52c851a494ad780d3a9f1afe8a9bc3bb44603d67c17a1a98b6ee7402e8fc6be3
BLAKE2b-256 checksum
How to use checksums
7152cd72640d1b6d2984620c55024f6aca1885889a7f3204110883b6b489e401
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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.2.0-py3-none-any.whl

Download URL tom_transients_fyi-0.2.0-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
424d47cc07e72a91e516d05bc7b51110e0310c60ba26a6d9e28df04adbca244b
BLAKE2b-256 checksum
How to use checksums
a85fa1cbc4727220389f9bef43ebaceb89cf4d4196c340deaf2811f45513a40e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

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