No project description provided
Project description
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
-
Install the extension
pip install ckanext-files
-
Add
files
to theckan.plugins
setting in your CKAN config file. -
Run DB migrations
ckan db upgrade -p files
-
Configure storage
ckanext.files.storage.default.type = files:fs ckanext.files.storage.default.path = /tmp/example ckanext.files.storage.default.create_path = true
-
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
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_files-1.0.0a1.tar.gz
(122.7 kB
view hashes)
Built Distribution
Close
Hashes for ckanext_files-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7213a607f021fa91599ef3e221938fd523937a7e0ffb43aa9a24c0a4def95eb |
|
MD5 | 50482acf870e6b4c53cd335bc06e052a |
|
BLAKE2b-256 | d138a32066de32ba1ebb80a7185321369279975fb5d357a7b0887c29fd711ec9 |