Skip to main content

A utility for populating Mongo with DRS Object records

Project description

DRS ID Mongo Publisher

This module read DRS Object information from the DRS DB and populates a Mongo collection with those object details. The designed purpose of the module is in support of the broader DRS2 OCFL Validation process.

Usage

usage: main.py [-h] -e ENVIRONMENT [-f IDS_FILE] [--dryrun] [--limit LIMIT] [--after AFTER] [--batch_size BATCH_SIZE]

Collect DRS Object details from the DRS DB and store them in a Mongo DB.

options:
  -h, --help            show this help message and exit
  -e ENVIRONMENT, --environment ENVIRONMENT
                        Must be one of: dev, qa, prod
  -f IDS_FILE, --ids_file IDS_FILE
                        A list of DRS object ids to process. If not provided, all objects will be processed.
  --dryrun              Run the script in dry run mode without making any changes.
  --limit LIMIT         Limit the number of objects to process. If not provided, all objects will be processed.
  --after AFTER         Process objects after a specific Object ID. If not provided, all objects will be processed.
  --batch_size BATCH_SIZE
                        Number of records to process in a batch. If not provided, the default is 1000.

Notes

Applications that import this component must have a '.env' file in the form of 'env-example'

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

drs_id_mongo_publisher-0.1.0.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

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

drs_id_mongo_publisher-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file drs_id_mongo_publisher-0.1.0.tar.gz.

File metadata

File hashes

Hashes for drs_id_mongo_publisher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a13f7b97e28dd54ee7fb424ac833b46f0093b689a0c9d12259715569248ef2c0
MD5 fd9f31909316f7335e72144e14e36d97
BLAKE2b-256 1d539cdb67d38639ab6cf3bd3c073a0ec3c7a18d7f79927b1613983939a96924

See more details on using hashes here.

File details

Details for the file drs_id_mongo_publisher-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for drs_id_mongo_publisher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b71890f7e0bdd1888480c05b15c0108961a27f9f71b0b7155a34f9865cd3fa91
MD5 34790059e142dd03416322e92329fffe
BLAKE2b-256 23abf48456545c7a36b56541b3fa3c9d57cc31cecb1d5174845ecfdbf96c51df

See more details on using hashes here.

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