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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bafa283694ebd58c632f07f83ed2322d84dea57904ba371677a7e9e241c2647
|
|
| MD5 |
7a29f64c77cac1c55fbc4a0a9205685d
|
|
| BLAKE2b-256 |
08bcf98945f1ac9642681e08f81d1726e4f0e47bfc444e22e57c62785c076473
|
Provenance
The following attestation bundles were made for tom_hermes-0.2.1.tar.gz:
Publisher:
pypi-release.yml on TOMToolkit/tom_hermes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tom_hermes-0.2.1.tar.gz -
Subject digest:
9bafa283694ebd58c632f07f83ed2322d84dea57904ba371677a7e9e241c2647 - Sigstore transparency entry: 2187481091
- Sigstore integration time:
-
Permalink:
TOMToolkit/tom_hermes@b02aa771f54799ed9ef845b091b2c1ac1e2aebe1 -
Branch / Tag:
refs/tags/0.2.1 - Owner: https://github.com/TOMToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@b02aa771f54799ed9ef845b091b2c1ac1e2aebe1 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d4150e4af5dd6f51e9d42e85560a6eb3a212bc7a3ef1f6973ef1a57f416f8a
|
|
| MD5 |
0a12c7fd1a9d69d7f2612f3435f18849
|
|
| BLAKE2b-256 |
ba67668b972624be433532be904f476ec4421423f37eb411f7b77df11c88c814
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tom_hermes-0.2.1-py3-none-any.whl -
Subject digest:
57d4150e4af5dd6f51e9d42e85560a6eb3a212bc7a3ef1f6973ef1a57f416f8a - Sigstore transparency entry: 2187481101
- Sigstore integration time:
-
Permalink:
TOMToolkit/tom_hermes@b02aa771f54799ed9ef845b091b2c1ac1e2aebe1 -
Branch / Tag:
refs/tags/0.2.1 - Owner: https://github.com/TOMToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@b02aa771f54799ed9ef845b091b2c1ac1e2aebe1 -
Trigger Event:
release
-
Statement type: