TOM Toolkit Facility module for the European Southern Observatory telescopes
Project description
tom_eso
European Southern Obervatory Facility module for TOM Toolkit
NOTE: This TOM Toolkit facility module is in the prototype stage. Any type of feedback is greatly appreciated. Please feel free to create an Issue.
This module is designed mainly to facilitate getting Target and Observation data from your TOM to the ESO P2 Tool (without having to re-enter it). Submitting observations is still expected to be done through the P2 Tool itself.
This facility is still in prototype stage and feature requests are welcome. Please let us know your use cases.
Installation
-
Install the module into your TOM environment:
pip install tom-eso
You'll want to update your pyproject.toml or requirements.txt file as well.
-
In your project
settings.py, addtom_esoto yourINSTALLED_APPSsetting:INSTALLED_APPS = [ ... 'tom_eso', ]
-
Add
tom_eso.eso.ESOFacilityto theTOM_FACILITY_CLASSESin your TOM'ssettings.py:TOM_FACILITY_CLASSES = [ 'tom_observations.facilities.lco.LCOFacility', ... 'tom_eso.eso.ESOFacility', ]
-
Create the ESOProfile tables in your database:
$ ./manage.py migrate
Configuration Options
After installation, each user will have an ESOProfile card in their TOM user profile where they can
enter their ESO P2 Tool username and password and set the ESO environment to Demo, Production,
or Production La Silla.
If a TOM admin wants to have a single default set of ESO credentials accessible by all of their TOM's users, they can
include the following to thier settings.py:
FACILITIES = {
...
# defaults set from ESO p2 API Tutorial
# https://www.eso.org/sci/observing/phase2/p2intro/Phase2API/api--python-programming-tutorial.html
# You should have your own credentials.
'ESO': {
'environment': os.getenv('ESO_ENVIRONMENT', 'demo'),
'username': os.getenv('ESO_USERNAME', '52052'),
'password': os.getenv('ESO_PASSWORD', 'tutorial'),
},
}
Note: The user specific credentials will always take precendence over these TOM-wide defaults.
Project details
Release history Release notifications | RSS feed
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_eso-0.2.4.tar.gz.
File metadata
- Download URL: tom_eso-0.2.4.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c10249a7435e477dcd9f23a280f11154b57a5d22d395d2c6ad9394bcaf3178d
|
|
| MD5 |
c79b84d44cf918a5603dbdf34edcf3c6
|
|
| BLAKE2b-256 |
d380b23c0d64aa4ed6c2d59c87189216e5f4c60c2083166e18506b6cb0fe3c57
|
Provenance
The following attestation bundles were made for tom_eso-0.2.4.tar.gz:
Publisher:
pypi-release.yml on TOMToolkit/tom_eso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tom_eso-0.2.4.tar.gz -
Subject digest:
6c10249a7435e477dcd9f23a280f11154b57a5d22d395d2c6ad9394bcaf3178d - Sigstore transparency entry: 1332452527
- Sigstore integration time:
-
Permalink:
TOMToolkit/tom_eso@9889cd32153fbcc5fc86897aaadfb005445da7a6 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/TOMToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@9889cd32153fbcc5fc86897aaadfb005445da7a6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tom_eso-0.2.4-py3-none-any.whl.
File metadata
- Download URL: tom_eso-0.2.4-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f045738acb069915ffca9269ffb52ed44ae1fe873ba60cc7fd5cb5aa278aa8e
|
|
| MD5 |
6f343640f64ba558b7f78f14d5748cea
|
|
| BLAKE2b-256 |
5b6fdecc744cabde23fe14e82d6b35f8736c8679eb2a18cfea225aa078d810c1
|
Provenance
The following attestation bundles were made for tom_eso-0.2.4-py3-none-any.whl:
Publisher:
pypi-release.yml on TOMToolkit/tom_eso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tom_eso-0.2.4-py3-none-any.whl -
Subject digest:
4f045738acb069915ffca9269ffb52ed44ae1fe873ba60cc7fd5cb5aa278aa8e - Sigstore transparency entry: 1332452588
- Sigstore integration time:
-
Permalink:
TOMToolkit/tom_eso@9889cd32153fbcc5fc86897aaadfb005445da7a6 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/TOMToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@9889cd32153fbcc5fc86897aaadfb005445da7a6 -
Trigger Event:
release
-
Statement type: