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.
Metadata
Release files for tom-hermes 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tom_hermes-0.2.1.tar.gz | 36.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tom_hermes-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.4 kB
Release files / tom_hermes-0.2.1.tar.gz
| Download URL | tom_hermes-0.2.1.tar.gz |
|---|---|
| Size | 36.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bafa283694ebd58c632f07f83ed2322d84dea57904ba371677a7e9e241c2647
|
|
BLAKE2b-256 checksum How to use checksums |
08bcf98945f1ac9642681e08f81d1726e4f0e47bfc444e22e57c62785c076473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 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 logRelease files / tom_hermes-0.2.1-py3-none-any.whl
| Download URL | tom_hermes-0.2.1-py3-none-any.whl |
|---|---|
| Size | 45.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57d4150e4af5dd6f51e9d42e85560a6eb3a212bc7a3ef1f6973ef1a57f416f8a
|
|
BLAKE2b-256 checksum How to use checksums |
ba67668b972624be433532be904f476ec4421423f37eb411f7b77df11c88c814
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 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