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.post6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d495a27162a212619c5cdca6da6a9b30e54a47153729ce1ec4a9c53304fa51a5 |
|
MD5 | ee5411dfdff4003ce56ddecbbae74887 |
|
BLAKE2b-256 | a646a6c7bbf3e234a0e20ed4679aaa1212b4062ab17481e7fd07cd03851e132c |
Close
Hashes for datagov_harvesting_logic-0.0.2.post6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b454fcbf265c60097fb74ec1f8b165c5cb6148bdd3eb60e5a5c641ed43d5610a |
|
MD5 | 64324c98d4480af35213c1b05814c071 |
|
BLAKE2b-256 | 0f7a92c46c6d14d3cea00fb2b122c5b02ef4e8e664f479198e669c52929e4a2f |