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.
Also, check documentation of the file-keeper library. It's used by this extension and contains logic that does not depend on CKAN and may be useful if you are going to implement custom storage adapter or just want to use familiar file abstractions in the arbitrary program.
Quickstart
-
Install the extension
pip install ckanext-files
-
Add
filesto theckan.pluginssetting of the 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.initialize = 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckanext_files-1.2.0.tar.gz.
File metadata
- Download URL: ckanext_files-1.2.0.tar.gz
- Upload date:
- Size: 106.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2f55337903c2319b20907d132bd476acf5c14e37550f506c0e295a70b3756ba
|
|
| MD5 |
b11b581aabaa0d48f4678ff06abec628
|
|
| BLAKE2b-256 |
37a9789f60598d941ae474dbc1972aff89a639d834e1971de289527b386fd5aa
|
File details
Details for the file ckanext_files-1.2.0-py3-none-any.whl.
File metadata
- Download URL: ckanext_files-1.2.0-py3-none-any.whl
- Upload date:
- Size: 139.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1faa8cf73d1aa309262a01b358b639fdcf69cc394e93183b0f00e8cbbbf0e89e
|
|
| MD5 |
55d6e941b3dc783a33973b2c15b6f560
|
|
| BLAKE2b-256 |
7e1d98fc221b7c94e86a8ab127444ab25f7e77e643032040994d90d3364e0cf3
|