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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86bb7c65f6ef6223c2f0f5f2ed43af5405d78f135efa283d37dde21c835123fd |
|
MD5 | 4cec708374778d8942303344b6a61f59 |
|
BLAKE2b-256 | 2dc1ed7c35424cb4fd3fab09f20ea080da1e0ad7b19c76e04714d82e07168a11 |
Close
Hashes for datagov_harvesting_logic-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b50d96cc11673ac6e5b0a2b6db2460b4dd38a5d188aab5924b23de34cd3f609 |
|
MD5 | 091d1e114c9e62488e0d5d320dad4a7c |
|
BLAKE2b-256 | 4180833eb3a3d6eec4235ae90814102bbae5bac72f36de2a6eb473629b8e1807 |