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.3.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b065eb73a789ce7771ebd1cae33c638d072bc070b98d59bd527dc0d59f61a4f4 |
|
MD5 | 4cc2a998711c30ea6fa911f8a3b48abc |
|
BLAKE2b-256 | 562e04a485de8adac84c2f9cefa88c766ff595c1cea600a7a604ed18d93e87f7 |
Close
Hashes for datagov_harvesting_logic-0.0.3.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 092eefd1952b7996b198bba87d857c0b6c1ff5a6d62dc384fbd878cdbf327989 |
|
MD5 | 73983421db4714633dae59b5182a4fbf |
|
BLAKE2b-256 | 8f8ffbf210bca3d13037914c4bbe89516638af0e7c9dca9a40d5268bb187d68d |