Skip to main content

No project description provided

Project description

Tests

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

  1. Install the extension

    pip install ckanext-files
    
  2. Add files to the ckan.plugins setting in your CKAN config file.

  3. Run DB migrations

    ckan db upgrade -p files
    
  4. Configure storage

    ckanext.files.storage.default.type = files:fs
    ckanext.files.storage.default.path = /tmp/example
    ckanext.files.storage.default.create_path = true
    
  5. 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

AGPL

Project details


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.0a4.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

ckanext_files-1.0.0a4-py3-none-any.whl (3.8 MB view details)

Uploaded Python 3

File details

Details for the file ckanext_files-1.0.0a4.tar.gz.

File metadata

  • Download URL: ckanext_files-1.0.0a4.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for ckanext_files-1.0.0a4.tar.gz
Algorithm Hash digest
SHA256 956b3174ccf37fc5b376c205671f5e0fd7ab11b3037ebae8a39a0acd9df48275
MD5 e61cf52af0603047bd1a9ba373b6e201
BLAKE2b-256 8acbdb4b088cc6573645103641d58a9bfe1c5c05b882fb2009d617d26dc65183

See more details on using hashes here.

File details

Details for the file ckanext_files-1.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_files-1.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 a5ba316d05f3f806b310714551da3cf27b9f9fa2ad137c8f43ae343f958803a7
MD5 53be808d3b99565948f99d599de45824
BLAKE2b-256 551a8ef3cc51cdb33a918f79a60a5f6055abc508c7373045b03459c9bee47853

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page