Resource URL checker
Project description
ckanext-check-link
Link checker for CKAN.
Provides API, CLI commands, and views for:
- checking availability of the file, refereed by resource
- checking availability of any arbitrary link.
- storing results of these checks
- visualizing stored results
Index
Requirements
Compatibility with core CKAN versions:
CKAN version | Compatible? |
---|---|
2.9 | yes |
2.10 | yes |
Installation
-
Install
ckanext-check-link
pip install ckanext-check-link
-
Add
check_link
to theckan.plugins
setting in your CKAN config file.
Config settings
# Allow any logged-in user to check links. This implies specific security issues,
# thus disabled by default.
# (optional, default: false).
ckanext.check_link.user_can_check_url = yes
# URL for the "Link availability" page.
# (optional, default: /check-link/report/global)
ckanext.check_link.report.base_template = /ckan-admin/link-state
# A base template that is extended by the "Link availability" page.
# (optional, default: check_link/base_admin.html)
ckanext.check_link.report.base_template = check_link/base.html
UI
Link availability
Endpoint: check_link.report
Path: /check-link/report/global
Paginated listing of all the "broken" links. Access is controlled by the
check_link_view_report_page
auth function, which can be bypassed only by
sysadmin.
CLI
CLI commands are registered under ckan check-link
route.
check-packages
Check every resource inside each package.
The scope can be narrowed via arbitrary number of arguments, specifying the package's ID or name.
# check all the public packages
$ ckan check-link check-packages
# check all the active packages
$ ckan check-link check-packages --include-private
# check all the public and draft pacakges
$ ckan check-link check-packages --include-draft
# check only two specified packages
$ ckan check-link check-packages pkg-id-one pkg-name-two
API
TBA
License
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
ckanext-check-link-0.0.17.tar.gz
(30.3 kB
view hashes)
Built Distribution
Close
Hashes for ckanext-check-link-0.0.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af531c2be106ef5c67aea67237b7f09a264ab3a1534abf9372a7328ed71376fc |
|
MD5 | eda7ff192e7a3ad665f6d8319a42d008 |
|
BLAKE2b-256 | 0e6b4099b7432ce251c05b3d9a3fa61e9c2d75c01fbf236b2d467d7aceb2d774 |
Close
Hashes for ckanext_check_link-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aabe72063c2acb70124ada7dd6c5dfbbd623319bb5cb040a2c4d37fa2a582efe |
|
MD5 | ffdcc7787660f2969755f9bb5ad3acec |
|
BLAKE2b-256 | c91c540525698ce1eece4c074bb95aebe4c92dcd0918b42d3210ccae2a445cc8 |