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
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 drs_id_mongo_publisher-0.1.0.tar.gz.
File metadata
- Download URL: drs_id_mongo_publisher-0.1.0.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13f7b97e28dd54ee7fb424ac833b46f0093b689a0c9d12259715569248ef2c0
|
|
| MD5 |
fd9f31909316f7335e72144e14e36d97
|
|
| BLAKE2b-256 |
1d539cdb67d38639ab6cf3bd3c073a0ec3c7a18d7f79927b1613983939a96924
|
File details
Details for the file drs_id_mongo_publisher-0.1.0-py3-none-any.whl.
File metadata
- Download URL: drs_id_mongo_publisher-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b71890f7e0bdd1888480c05b15c0108961a27f9f71b0b7155a34f9865cd3fa91
|
|
| MD5 |
34790059e142dd03416322e92329fffe
|
|
| BLAKE2b-256 |
23abf48456545c7a36b56541b3fa3c9d57cc31cecb1d5174845ecfdbf96c51df
|