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 details)
Built Distribution
File details
Details for the file ckanext_files-1.0.0a1.tar.gz
.
File metadata
- Download URL: ckanext_files-1.0.0a1.tar.gz
- Upload date:
- Size: 122.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed64c2e232ac8c5bfc8652df87bee8f4c0f9f328f756201b7e2963d0b92d729f |
|
MD5 | 3e2250878c6a7d67cfab88b051eb7af9 |
|
BLAKE2b-256 | e42a17d94ff26c101bbb997f784b09b1d9a30564d0521890ed85e7532cff5e81 |
File details
Details for the file ckanext_files-1.0.0a1-py3-none-any.whl
.
File metadata
- Download URL: ckanext_files-1.0.0a1-py3-none-any.whl
- Upload date:
- Size: 154.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7213a607f021fa91599ef3e221938fd523937a7e0ffb43aa9a24c0a4def95eb |
|
MD5 | 50482acf870e6b4c53cd335bc06e052a |
|
BLAKE2b-256 | d138a32066de32ba1ebb80a7185321369279975fb5d357a7b0887c29fd711ec9 |