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.
Running youvegotdata.py
This must be run in a Python environment that includes pika - for connecting
to RabbitMQ - and other needed packages. The environ-3.8.yml file in this
repository can be used to create a workable conda environment. Setting one up
using pip will certainly also work. Python 3.8 is the minimum version needed
to run the script. Higher versions should work.
Copy the template-config.ini file to config.ini and edit the config.ini as described inside that file. Run the code with:
python youvegotdata.py [-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:
python youvegotdata/youvegotdata.py /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.0.1b4.tar.gz.
File metadata
- Download URL: youvegotdata-1.0.1b4.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e897ebef6b8ab78fe4b2ca1aaeddbfbf31976a088fe29402fc99c99ec721c6
|
|
| MD5 |
eeb4577427a59706e91312b20a064fb8
|
|
| BLAKE2b-256 |
ca320c34ede21b1f3441a5fb0f23565088726b4b3cb2b5119f8b29475ff56650
|
Provenance
The following attestation bundles were made for youvegotdata-1.0.1b4.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.0.1b4.tar.gz -
Subject digest:
02e897ebef6b8ab78fe4b2ca1aaeddbfbf31976a088fe29402fc99c99ec721c6 - Sigstore transparency entry: 1186999050
- Sigstore integration time:
-
Permalink:
CIRA-GEOIPS/youvegotdata@bda95cd8fc506602a5521e2f73f8acf987aaeb57 -
Branch / Tag:
refs/tags/1.0.1b4 - 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@bda95cd8fc506602a5521e2f73f8acf987aaeb57 -
Trigger Event:
release
-
Statement type:
File details
Details for the file youvegotdata-1.0.1b4-py3-none-any.whl.
File metadata
- Download URL: youvegotdata-1.0.1b4-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c34894f6ee1225b538af86046ebca1b75b5ae578c61510082544a0884086f2a
|
|
| MD5 |
f534c5de145134b99827fac0ea99fce9
|
|
| BLAKE2b-256 |
8ab6c5179059371cacfa557ea30b1bcafced0c23c2d6cce7c9468e480706e31a
|
Provenance
The following attestation bundles were made for youvegotdata-1.0.1b4-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.0.1b4-py3-none-any.whl -
Subject digest:
2c34894f6ee1225b538af86046ebca1b75b5ae578c61510082544a0884086f2a - Sigstore transparency entry: 1186999059
- Sigstore integration time:
-
Permalink:
CIRA-GEOIPS/youvegotdata@bda95cd8fc506602a5521e2f73f8acf987aaeb57 -
Branch / Tag:
refs/tags/1.0.1b4 - 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@bda95cd8fc506602a5521e2f73f8acf987aaeb57 -
Trigger Event:
release
-
Statement type: