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.0a3.tar.gz
(122.4 kB
view details)
Built Distribution
File details
Details for the file ckanext_files-1.0.0a3.tar.gz
.
File metadata
- Download URL: ckanext_files-1.0.0a3.tar.gz
- Upload date:
- Size: 122.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fce41298cdcf7c2b28852365d95dfd5b4f4352998242c30ed5b54558d04dce3 |
|
MD5 | e3d196f05c4d7efc12f511686a94f663 |
|
BLAKE2b-256 | bff452d258bd95a5268b64016fd6f8ca3fc8f2e13017edfad0d0f75cf4fe3c7b |
File details
Details for the file ckanext_files-1.0.0a3-py3-none-any.whl
.
File metadata
- Download URL: ckanext_files-1.0.0a3-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.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ecf057b516110088dffec7057167870dbb4f31a9b294597545e62a9148331f |
|
MD5 | 0b7bbd1de6e0b5f4d8a2bf42e5924ab9 |
|
BLAKE2b-256 | f08553f45d2bb240de3734f5b875d6609667159bbf5c86fe739c4fcb54e38845 |