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.0a2.tar.gz
(122.0 kB
view details)
Built Distribution
File details
Details for the file ckanext_files-1.0.0a2.tar.gz
.
File metadata
- Download URL: ckanext_files-1.0.0a2.tar.gz
- Upload date:
- Size: 122.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d5f6b708ad598a87b241f39b909aa505921b66abbd0dae951077b0354ec1e5 |
|
MD5 | 63d4f63c17f4b31d4f200addc706e934 |
|
BLAKE2b-256 | 4edf8f638bb8fce0b25fcd5f6c939e57eb3734382d8c70bf74fe42f45116004e |
File details
Details for the file ckanext_files-1.0.0a2-py3-none-any.whl
.
File metadata
- Download URL: ckanext_files-1.0.0a2-py3-none-any.whl
- Upload date:
- Size: 155.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79737b9b68119e29804fe54eec053d903a2332f34ab25414f7d34307c34a1e57 |
|
MD5 | 75956af888a20eb27c72d4b2b24ef210 |
|
BLAKE2b-256 | 0efb93183f8cb36dd10be8d5655dfbad8b6516459944baa8edf272158d921e0a |