Skip to main content

CKAN integration for udata

Project description

CKAN

![Crowdin](https://crowdin.com/project/udata-ckan)

CKAN integration for uData

Usage

Install the harvester package in you udata environement:

pip install udata-ckan

The harvester will be automatically available as a backend choice.

Develop

Python dependencies

Assuming you are in an active virtualenv with udata installed and in the current project cloned repository directory, install all dependencies using:

pip install -e requirements/develop.pip

##CKAN ==== instance

A docker-compose is availbe to start up a CKAN instance if you want to test your harvester on a custom catalog.

Testing

Tests are located into the tests folder and be run with:

inv test

Changelog

3.0.2 (2024-01-25)

  • Use datetime.utcnow to make sure to handle utc datetimes #246

  • Remove valid_at on deprecated GeoZones #248

3.0.1 (2023-03-17)

  • Use id as remote_id ASAP for better error handling #239

  • Update mongoDB in CI #242

  • Refactor tests to mock CKAN results instead of starting a CKAN instance #245

  • Upgrade CKAN images used in docker-compose #244

  • Fix resource.published that is not needed anymore #243

3.0.0 (2022-11-14)

  • warning:

    Breaking change Use harvest dynamic field introduced in udata 5 #227

2.0.1 (2022-09-01)

  • Replace mongo legacy image in CI #219

  • Make revision_id optional to match latest CKAN versions #220

2.0.0 (2020-03-11)

  • Migrate to python3 🐍 #110

1.3.0 (2020-01-06)

1.2.3 (2019-05-29)

  • Always fill extras.remote_url #103

1.2.2 (2019-05-24)

  • Max out package_search rows limit #100

1.2.1 (2019-05-24)

  • Fix filetype (always remote) #98

1.2.0 (2018-10-02)

  • Support both inclusion and exclusion filters #42

  • Localization support #43

  • Test the minimum accepted CKAN dataset payload and make the extras property optional #57

  • Improved error handling (support details in JSON responses, also handle raw quoted strings and HTML) #56

1.1.1 (2018-06-15)

  • Only store url field in remote_url extra if this is an URL otherwise store it in ckan:source #30

  • Properly handle geometry errors #31

  • Improve extras parsing #32: - Skip empty extras - Parse update frequencies as RDF URI or udata frequency identifier - Parse spatial-text matching a known zone name or slug - Store unknown spatial-uri, spatial-text and frequency as ckan:spatial-uri, ckan:spatial-text and ckan:frequency

1.1.0 (2018-06-06)

  • Test against a real CKAN instance #23

  • Allows to filter on Organizations and Tags #26

  • Register ckan: prefixed extras #28

1.0.1 (2018-03-13)

  • Fix packaging #2

  • Make use of udata pytest plugin #3

  • Enable the ckan plugin in test (plugin needs to be enabled to use the harvester) #8

1.0.0 (2017-10-20)

  • Initial release

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page