Skip to main content

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

  1. 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.

  1. In your project settings.py, add tom_eso to your INSTALLED_APPS setting:

    INSTALLED_APPS = [
        ...
        'tom_eso',
    ]
    
  2. Add tom_eso.eso.ESOFacility to the TOM_FACILITY_CLASSES in your TOM's settings.py:

     TOM_FACILITY_CLASSES = [
         'tom_observations.facilities.lco.LCOFacility',
         ...
         'tom_eso.eso.ESOFacility',
     ]
    
  3. 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.

Metadata

Release files for tom-eso 0.3.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-eso 0.3.1
File Size Uploaded
tom_eso-0.3.1.tar.gz 32.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tom-eso 0.3.1
File Interpreter ABI Platform
tom_eso-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 72.1 kB

Release files / tom_eso-0.3.1.tar.gz

Download URL tom_eso-0.3.1.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
decb6a948aa06999c1ab0e02a29d41c885519b412f72fbdcfe8f6a34def559da
BLAKE2b-256 checksum
How to use checksums
077d52138318132c3919a07f579b50cb133da0e93b4c050b768b9804a3607d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.

Transparency log

Release files / tom_eso-0.3.1-py3-none-any.whl

Download URL tom_eso-0.3.1-py3-none-any.whl
Size 39.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e041bbd81e2e809adceccd345326a390a5891726dc5f151a1a4fe6200b5314f
BLAKE2b-256 checksum
How to use checksums
ff11480f8d4c90163c06de45a93d16cdc8548bdad15688142e48ae36fc1ce25f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.1.1

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