Skip to main content

pypi

tom_hermes

This module adds the Hermes dataservice to the TOM Toolkit. Using this module, TOMs can query targets in the Hermes alert archive.

Installation

Install the module into your TOM environment:

pip install tom-hermes

Add tom_hermes to your settings.INSTALLED_APPS:

    INSTALLED_APPS = TOMTOOKIT_INSTALLED_APPS + [
    'custom_code',
    ...
    'tom_hermes',

    ]

Configuration

Configure your app with TOM-wide credentials by adding the following to your settings.py and setting your HERMES_API_TOKEN in your environment:

    HERMES_CONFIGURATION = {
        'HERMES_API_TOKEN': os.getenv('HERMES_API_TOKEN', None),  # Defaults here if user API token not set
        'HERMES_BASE_URL': 'https://hermes-dev.lco.global/', # Optional: Defaults to `https://hermes.lco.global/`
        'DEFAULT_TOPIC': 'myfavorite.topic',  # Optional: Defaults to 'tomtoolkit.test'
    }

You can add HERMES_BASE_URL to your settings.py if you want to point to a HERMES instance other than https://hermes.lco.global for submission testing. Retrieving targets from the HERMES Data Service will continue to use https://hermes.lco.global/. and DEFAULT_TOPIC if you want messages to default to a topic other than 'tomtoolkit.test'.

Users can also add their personal credentials via their profile. If you wish to rely on the defaults above and/or user credentials, then a settings.HERMES_CONFIGURATION configuration dictionary is not required.

Hermes is now available as a Data Service from the "Data Services" nav-bar menu. You may configure and execute your queries as you would any Data Service.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tom_hermes-0.2.1.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tom_hermes-0.2.1-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

Details for the file tom_hermes-0.2.1.tar.gz.

File metadata

  • Download URL: tom_hermes-0.2.1.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tom_hermes-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9bafa283694ebd58c632f07f83ed2322d84dea57904ba371677a7e9e241c2647
MD5 7a29f64c77cac1c55fbc4a0a9205685d
BLAKE2b-256 08bcf98945f1ac9642681e08f81d1726e4f0e47bfc444e22e57c62785c076473

See more details on using hashes here.

Provenance

The following attestation bundles were made for tom_hermes-0.2.1.tar.gz:

Publisher: pypi-release.yml on TOMToolkit/tom_hermes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tom_hermes-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tom_hermes-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 45.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tom_hermes-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57d4150e4af5dd6f51e9d42e85560a6eb3a212bc7a3ef1f6973ef1a57f416f8a
MD5 0a12c7fd1a9d69d7f2612f3435f18849
BLAKE2b-256 ba67668b972624be433532be904f476ec4421423f37eb411f7b77df11c88c814

See more details on using hashes here.

Provenance

The following attestation bundles were made for tom_hermes-0.2.1-py3-none-any.whl:

Publisher: pypi-release.yml on TOMToolkit/tom_hermes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page