Skip to main content

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


Download files

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

Source Distribution

youvegotdata-1.0.1b0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

youvegotdata-1.0.1b0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file youvegotdata-1.0.1b0.tar.gz.

File metadata

  • Download URL: youvegotdata-1.0.1b0.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

Hashes for youvegotdata-1.0.1b0.tar.gz
Algorithm Hash digest
SHA256 15d5d9d655c93ed8edc0347c42504701b454fc95d4fc007596b4f2fd26232e9f
MD5 bf846a6dd9d60fbc0bb00ac5268e3b29
BLAKE2b-256 76c30a965e219609a752b20105abcabd33ece2b7a7a238f7ef71e9c2cc7479d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for youvegotdata-1.0.1b0.tar.gz:

Publisher: package-and-publish.yaml on CIRA-GEOIPS/youvegotdata

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

File details

Details for the file youvegotdata-1.0.1b0-py3-none-any.whl.

File metadata

  • Download URL: youvegotdata-1.0.1b0-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

Hashes for youvegotdata-1.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1325cabfa7ec50c2be4b7d12680526f888c4ed5d151e9cd5081c53f2d8cecf
MD5 c1ff1144590e7d49d1f1352a20fcd98f
BLAKE2b-256 2d97fe159042289ade300c74b6a303d5e62eb18e4c91baeec625c4505c97e6c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for youvegotdata-1.0.1b0-py3-none-any.whl:

Publisher: package-and-publish.yaml on CIRA-GEOIPS/youvegotdata

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 Pingdom Monitoring Sentry Error logging StatusPage Status page