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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c7de1f0fe12de19c9ed51e1cce4afce873b09bb773b58dc0017155a82f186e |
|
MD5 | f32f83d135aabd52f5e347b6c66ce1fc |
|
BLAKE2b-256 | 0bbb59cd1a9b7fb5cbcf508cc56b7f1818568542ed699006f27b72e7bdfd7622 |
Close
Hashes for datagov_harvesting_logic-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e54cdf991d08a1d4776ce42936b495be5dcdc69ead9d0f24705676c74a62e96a |
|
MD5 | 5053d6a8b18aca94f3c8c5430594daea |
|
BLAKE2b-256 | 033cf3d4cee3bf42d62a7c3e7b0aaddab7e1d81eb81ff8a4539a8dc82a2ba78d |