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.0b7.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.0b7-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for drs_id_mongo_publisher-0.1.0b7.tar.gz
Algorithm Hash digest
SHA256 935c583dde553aa0274549cc581c4efd602df74d512963986ddfbb06a870e75a
MD5 50c7f0b1650a7d564a654709236e57bc
BLAKE2b-256 11aeba623a6765de7d45159fa1eddb06cb537ebb6b4f564119877b6f3b0c20be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for drs_id_mongo_publisher-0.1.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 d4191bec5e5f2ea65447bf7c67f91862a0da9d6142895783bbe6cb671b0db327
MD5 a19e67cb8a345ca8b4d9edf6029d01db
BLAKE2b-256 a88fef27e96d22232db57c581bd29c1f58a35fb829e8edcdda9b5feb5823b790

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