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, 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.1.1

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.1
File Size Uploaded
tom_transients_fyi-0.1.1.tar.gz 32.9 kB Details

Built distribution (wheel)

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

Total release size: 55.1 kB

Release files / tom_transients_fyi-0.1.1.tar.gz

Download URL tom_transients_fyi-0.1.1.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
871d7a24777813f39a1d02ce7fd5fc2a39f7ffa9a9b551baaf2c34ff5b136f58
BLAKE2b-256 checksum
How to use checksums
435f513dd19e5f41c4f00ff1f99661c995b3ca21b342296f08887ab17a153923
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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.1-py3-none-any.whl

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

This release

0.1.1 This release

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