DataShades / ckanext-files

Files as first-class citizens of CKAN. Upload, manage, remove files directly and attach them to datasets, resources, etc.

Home Page:https://datashades.github.io/ckanext-files/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests

ckanext-files

Files as first-class citizens of CKAN. Upload, manage, remove files directly and attach them to datasets, resources, etc.

Read the documentation for a full user guide.

Quickstart

  1. Install the extension

    pip install ckanext-files
  2. Add files to the ckan.plugins setting in your CKAN config file.

  3. Run DB migrations

    ckan db upgrade -p files
  4. Configure storage

    ckanext.files.storage.default.type = files:fs
    ckanext.files.storage.default.path = /tmp/example
    ckanext.files.storage.default.create_path = true
  5. Upload your first file

    ckanapi action files_file_create upload@~/Downloads/file.txt`

Development

Install dev extras and nodeJS dependencies:

pip install -e '.[dev]'
npm ci

Run unittests:

pytest

Run frontend tests:

# start test server in separate terminal
make test-server

# run tests
npx cypress run

Run typecheck:

npx pyright

License

AGPL

About

Files as first-class citizens of CKAN. Upload, manage, remove files directly and attach them to datasets, resources, etc.

https://datashades.github.io/ckanext-files/

License:Other


Languages

Language:Python 69.4%Language:JavaScript 11.8%Language:TypeScript 10.8%Language:HTML 6.1%Language:SCSS 1.5%Language:Makefile 0.1%Language:Mako 0.1%Language:CSS 0.0%