Transient Name Server (TNS) Report and Classification plugin for TOM Toolkit
TOMtoolkit module for reporting transients to the TNS
Installation
-
Install the package into your TOM environment:
pip install tom-tns
-
In your project
settings.py, addtom_tnsto yourINSTALLED_APPSsetting:
INSTALLED_APPS = TOMTOOKIT_INSTALLED_APPS + [
'custom_code',
...
'tom_TNS',
]
-
Add TNS account credentials to your
settings.pyto enable TNS submission.If you don't have access to a TNS Bot for your TOM, you can make one from the TNS website.
NOTE: If you are testing on the sandbox, the sandbox is only synced every Sunday, so new bots created using the above link won't show up until after the next update.
Submit to TNS directly
Add your TNS credentials to your
settings.pyif they don't already exist for the TNS Data Service.DATA_SERVICES = { ... 'TNS': { 'bot_id': os.getenv('TNS_BOT_ID', ''), # This is the BOT ID you plan to use to submit to TNS 'bot_name': os.getenv('TNS_BOT_NAME', ''), # This is the BOT name associated with the above ID 'api_key': os.getenv('TNS_API_KEY', ''), # This is the API key for the associated BOT 'base_url': 'https://sandbox.wis-tns.org/', # This is the sandbox URL. Use https://www.wis-tns.org/ for live submission. 'group_names': ['bot_group', 'PI_group'], # Mandatory. You must choose an affiliated Group Name when reporting. 'internal_name_format': { 'prefix': 'MyProgramName', 'year_format': 'YY', 'postfix': '' }, # Optional formatting for internal name used by default if no specific name is given. (ex. MyProgramName24xxx for TNS object 2024xxx) 'filter_mapping': { 'o': 'Other', 'c': 'Clear', ... }, # Optional mapping from your photometry filter values to TNS filter options. 'instrument_mapping': { 'fa20': 'LCO1m - Sinistro', ... }, # Optional mapping from your reduced datum instrument name to TNS instrument names 'default_authors': 'Foo Bar <foo@bar.com>, Rando Calrissian, et al.', # Optional default authors string to populate the author fields for tns submission. If not specified, defaults to saying "<logged in user> using <tom name>". 'report_max_attempts': 10, # Optional max number of attempts to make to retrieve a report after submission (Defaults o 10) 'report_delay_seconds': None, # Optional number of seconds to wait per attempt to retrieve a report (Scales up linearly by default) }, }
Once configured, a TNS button should appear below the Target Name on the default Target Detail page.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tom_tns-0.5.0.tar.gz.
File metadata
- Download URL: tom_tns-0.5.0.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fdb7e9df226525aa768c8bf5c830398f5096e84dc3d2fb685e441db4bbb73da
|
|
| MD5 |
0dd61d2975283959e3135b12e81cc100
|
|
| BLAKE2b-256 |
3abdbd80f89a6be8107a4d55b255bd172f44f9421d8ef117aa44c27a3b0291a5
|
Provenance
The following attestation bundles were made for tom_tns-0.5.0.tar.gz:
Publisher:
pypi-release.yml on TOMToolkit/tom_tns
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tom_tns-0.5.0.tar.gz -
Subject digest:
2fdb7e9df226525aa768c8bf5c830398f5096e84dc3d2fb685e441db4bbb73da - Sigstore transparency entry: 2178002966
- Sigstore integration time:
-
Permalink:
TOMToolkit/tom_tns@219a10a71c025e26d3c54e091e5483d84517479d -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/TOMToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@219a10a71c025e26d3c54e091e5483d84517479d -
Trigger Event:
release
-
Statement type:
File details
Details for the file tom_tns-0.5.0-py3-none-any.whl.
File metadata
- Download URL: tom_tns-0.5.0-py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c55032d66671f226c80ec4ed4860da5e66ae9c8a76a1ea52a72e780c66f78a
|
|
| MD5 |
b581b5cf8af255200d1fd871ade30fad
|
|
| BLAKE2b-256 |
508b8a636c0b1dc137af48c0a9a623ed4e3d15a907b7890ecb2b641b60a4340a
|
Provenance
The following attestation bundles were made for tom_tns-0.5.0-py3-none-any.whl:
Publisher:
pypi-release.yml on TOMToolkit/tom_tns
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tom_tns-0.5.0-py3-none-any.whl -
Subject digest:
47c55032d66671f226c80ec4ed4860da5e66ae9c8a76a1ea52a72e780c66f78a - Sigstore transparency entry: 2178003293
- Sigstore integration time:
-
Permalink:
TOMToolkit/tom_tns@219a10a71c025e26d3c54e091e5483d84517479d -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/TOMToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@219a10a71c025e26d3c54e091e5483d84517479d -
Trigger Event:
release
-
Statement type: