Send new file notifications
Project description
youvegotdata
Uses RabbitMQ to send new file notifications, with the ultimate purpose of getting the file metadata into the Data Inventory Database.
The "producer" youvegotdata.py will usually be called by the CIRA data
ingest scripts when a new file is added to the CIRA data stores, and will send
a message through RabbitMQ to the consumers with the file's metadata.
Message "consumers" will be running to receive the file metadata and insert it into the database. It is expected that multiple consumers process will be accepting messages in RabbitMQ's "fair dispatch" configuration. A given notification will be received by one consumer.
Installing youvegotdata
This module requires Python 3.8 or greater. It is deployed to PyPi, so it can be installed with:
pip install youvegotdata
Which will install the ygd CLI command in your current Python environment.
Running youvegotdata.py as ygd
Create the ~/.config/youvegotdata/ directory if it does not already exist.
Create a config.ini file in this directory that looks like:
[Settings]
RMQ_HOST = <host of the RabbitMQ server>
[Data-store-mappings]
# The list of common Ceph IPs for every Ceph data store
# A dictionary of lists in Python format
CEPH_IPS = {"name": ["IP", "IP", "IP"], "name2": ["IP", "IP", "IP"],}
And fill it in with the RabbitMQ server's host name, and the IP address mappings across different Linux versions for the Ceph data stores.
Run the code with:
ygd [-h] [-v] [-p PRODUCT] [-r VERSION] [-s START_TIME] [-e END_TIME] [-l LENGTH] [-c CHECKSUM] [-t CHECKSUM_TYPE] filepath
Run this with the -h (--help) argument to see the available flagged arguments.
This will usually be run with just the filepath argument. An example is:
ygd /full/path/to/local/file/data_file.hdf
If run from a local repository of this project.
The filepath file must exist on the local machine.
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 youvegotdata-1.1.4.tar.gz.
File metadata
- Download URL: youvegotdata-1.1.4.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c5dab275724f97789a438ba73923fbe1b57a7b271996a685e0c2cbdbe1fe4a
|
|
| MD5 |
e5732de25035dc6bc5719ab3d38fe99a
|
|
| BLAKE2b-256 |
3624823d46fa62e57984851c8e583e0ece5b5d3bba69e2a4f33b3533e3bb637e
|
Provenance
The following attestation bundles were made for youvegotdata-1.1.4.tar.gz:
Publisher:
package-and-publish.yaml on CIRA-GEOIPS/youvegotdata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
youvegotdata-1.1.4.tar.gz -
Subject digest:
e3c5dab275724f97789a438ba73923fbe1b57a7b271996a685e0c2cbdbe1fe4a - Sigstore transparency entry: 1358913656
- Sigstore integration time:
-
Permalink:
CIRA-GEOIPS/youvegotdata@1a6071d524d657d7d3afa3bdc2b100020f4bb2cd -
Branch / Tag:
refs/tags/1.1.4 - Owner: https://github.com/CIRA-GEOIPS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-and-publish.yaml@1a6071d524d657d7d3afa3bdc2b100020f4bb2cd -
Trigger Event:
release
-
Statement type:
File details
Details for the file youvegotdata-1.1.4-py3-none-any.whl.
File metadata
- Download URL: youvegotdata-1.1.4-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdd0221988389747f7e1ba9e8242f93052f57e42d8e9c45de4f0ca51330e2a91
|
|
| MD5 |
e4b10bb21ca16ac93885dccf3c231298
|
|
| BLAKE2b-256 |
b6285209fa0b476f27f0606474d6eb5f200bca6141885bfd631282258d4a6140
|
Provenance
The following attestation bundles were made for youvegotdata-1.1.4-py3-none-any.whl:
Publisher:
package-and-publish.yaml on CIRA-GEOIPS/youvegotdata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
youvegotdata-1.1.4-py3-none-any.whl -
Subject digest:
cdd0221988389747f7e1ba9e8242f93052f57e42d8e9c45de4f0ca51330e2a91 - Sigstore transparency entry: 1358913755
- Sigstore integration time:
-
Permalink:
CIRA-GEOIPS/youvegotdata@1a6071d524d657d7d3afa3bdc2b100020f4bb2cd -
Branch / Tag:
refs/tags/1.1.4 - Owner: https://github.com/CIRA-GEOIPS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-and-publish.yaml@1a6071d524d657d7d3afa3bdc2b100020f4bb2cd -
Trigger Event:
release
-
Statement type: