No project description provided
Project description
datagov-harvesting-logic
This is a library that will be utilized for metadata extraction, validation, transformation, and loading into the data.gov catalog.
Features
The datagov-harvesting-logic offers the following features:
- Extract
- general purpose fetching and downloading of web resources.
- catered extraction to the following data formats:
- DCAT-US
- Validation
- DCAT-US
- jsonschema validation using draft 2020-12.
- DCAT-US
- Load
- DCAT-US
- conversion of dcatu-us catalog into ckan dataset schema
- create, delete, update, and patch of ckan package/dataset
- DCAT-US
Requirements
This project is using poetry to manage this project. Install here.
Once installed, poetry install
installs dependencies into a local virtual environment.
Testing
CKAN load testing
- CKAN load testing doesn't require the services provided in the
docker-compose.yml
. - catalog-dev is used for ckan load testing.
- Create an api-key by signing into catalog-dev.
- Create a
credentials.py
file at the root of the project containing the variableckan_catalog_dev_api_key
assigned to the api-key. - run tests with the command
poetry run pytest ./tests/load/ckan
Harvester testing
- These tests are found in
extract
, andvalidate
. Some of them rely on services in thedocker-compose.yml
. run using dockerdocker compose up -d
and with the commandpoetry run pytest --ignore=./tests/load/ckan
.
If you followed the instructions for CKAN load testing
and Harvester testing
you can simply run poetry run pytest
to run all tests.
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
Close
Hashes for datagov_harvesting_logic-0.0.2.post4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba6923573a95044469ad35684131afabde918ed644b2333de11b2b1ac189aa9 |
|
MD5 | 3b49b19683512adb6ae7da3531ac1faf |
|
BLAKE2b-256 | 9fa2e094f412cf4b7f53554d13839e5e6c8ba077b46ca40ed3fa1e07e1888f16 |
Close
Hashes for datagov_harvesting_logic-0.0.2.post4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68a4d8f42d23af2be7bb537bae95c5288ffd8279b918041b0a06d9432d26031b |
|
MD5 | 21483b2580f88d4a0c9d626f5ef67148 |
|
BLAKE2b-256 | 32651359dbd638d61d8a48d7d340681c383f2fa08f505c2d51f85e29c294d2f1 |