This project updates the DLCS with manifests from the presentation database.
- move to the
srcfolder
cd src- create a venv
python -m venv .venv- activate the venv (using the terminal specific script)
.venv\Scripts\Activate.ps1- install the modules from requirements
pip install requirements.txt -r- create a
.envfile using the.env.distfile - run the script
python -m .\manifest-column-updater.py| name | description | type |
|---|---|---|
| DRY_RUN | This will pull details from presentation, but won't actually update protagonis | boolean |
| CONNECTION_TIMEOUT | How long the connection to the presentation database will last before timing out | integer |
| PRESENTATION_CONNECTION_STRING | The connection string used to talk to the presentation database | string |
| HIGH_WATER_MARK | A timestamp denoting the earliest point in time that data will be retrieved from the presentation database | datetime |
| PROTAGONIST_BASE_URL | The base URL for the protagonist API | string |
| DLCS_API_AUTH | base64 encoded credentials for talking to the protagonist API. NOTE: these should be admin | string |
| EXIT_ON_ERROR | If an error is detected when talking to protagonist, the application will exit when true | boolean |
if using powershell, the dependencies can be frozen using the following command:
pip freeze -l | Out-File requirements.txt -Encoding UTF8