ckanext-aiextract
A CKAN extension that automates feeding information from documents into AI applications.
Whenever a document resource (by default: PDF) is created or updated, the extension enqueues a background job that sends the file to a configurable text-extraction service and uploads the extracted content back to the dataset. A new tab in the dataset view shows the extraction status and lets users trigger or delete extractions manually.
Requirements
| CKAN version | Compatible? |
|---|---|
| 2.9 and earlier | no |
| 2.10 | yes |
| 2.11 | yes |
- Python 3.10 or newer
- CKAN background jobs worker (
ckan jobs worker) running - A text-extraction HTTP endpoint that accepts multipart file uploads and returns a file response
Installation
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate -
Install the extension from PyPI:
pip install ckanext-aiextract
-
Add
aiextractto theckan.pluginssetting in your CKAN config file (by default/etc/ckan/default/ckan.ini). -
Restart CKAN and the background jobs worker.
Development installation
git clone git@github.com:MBueschelberger/ckanext-aiextract.git
cd ckanext-aiextract
pip install -e ".[dev]"
pre-commit install
Config settings
| Option | Default | Description |
|---|---|---|
ckanext.aiextract.extract_url |
"" |
URL of the text-extraction API endpoint |
ckanext.aiextract.ckan_token |
"" |
API token used by background jobs. Without it, only public datasets can be processed |
ckanext.aiextract.db_url |
value of sqlalchemy.url |
Database for the extension's job table |
ckanext.aiextract.formats |
pdf |
Space-separated list of resource formats to process |
ckanext.aiextract.job_timeout |
1800 |
Seconds after which a pending task is considered stale |
ckanext.aiextract.ssl_verify |
true |
Verify TLS certificates for outgoing requests. Set to false only for development setups with self-signed certificates |
Background jobs reach CKAN via the CKAN_SITE_URL environment variable
(default http://localhost:5000).
In the official CKAN Docker images, every option can also be set as an environment variable using
the CKANINI__ prefix, e.g.:
CKANINI__CKANEXT__AIEXTRACT__EXTRACT_URL=https://extract.example.org/api/extract
CKANINI__CKANEXT__AIEXTRACT__CKAN_TOKEN=<BACKGROUND_JOBS_API_TOKEN>
CKANINI__CKANEXT__AIEXTRACT__JOB_TIMEOUT=1800
CKANINI__CKANEXT__AIEXTRACT__SSL_VERIFY=false # development only
Releasing
Versions follow MAJOR.MINOR.PATCH and are managed with bumpver:
bumpver update --patch # or --minor / --major
This updates pyproject.toml, commits, tags and pushes. The pushed tag triggers the CI workflow,
which builds the package and publishes it to PyPI via Trusted Publishing.
Authors
- Thomas Hanke (@ThHanke) — main author
Maintainers
- Matthias Büschelberger (@MBueschelberger)
License
This project is licensed under the GNU Affero General Public License v3.0 or later — see LICENSE.
Metadata
Release files for ckanext-aiextract 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ckanext_aiextract-1.0.0.tar.gz | 41.9 kB | With provenance | Details for ckanext_aiextract-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ckanext_aiextract-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ckanext_aiextract-1.0.0-py3-none-any.whl |
Total release size: 86.2 kB
Release files / ckanext_aiextract-1.0.0.tar.gz
| Download URL | ckanext_aiextract-1.0.0.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcc5dbe8e4f5b3500e8fc16fad41ada9d007446c45395efe8f4e420ca364a136
|
|
BLAKE2b-256 checksum How to use checksums |
d4ebdf83c362c0bed9a0144bf9e9cab8dce9c4ffca45551730cbab2b8898d889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / ckanext_aiextract-1.0.0-py3-none-any.whl
| Download URL | ckanext_aiextract-1.0.0-py3-none-any.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81751b6e4cf3b7ba0244901fab220254dc69bffafe1210e4007b45164cc6961b
|
|
BLAKE2b-256 checksum How to use checksums |
dc862f28520850765046e1601a4378eec3ea6bbdfd8d4273a033973e9adafe81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for ckanext-aiextract 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ckanext_aiextract-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.