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.0a1.tar.gz (122.7 kB view details)

Uploaded Source

Built Distribution

ckanext_files-1.0.0a1-py3-none-any.whl (154.9 kB view details)

Uploaded Python 3

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

Hashes for ckanext_files-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 ed64c2e232ac8c5bfc8652df87bee8f4c0f9f328f756201b7e2963d0b92d729f
MD5 3e2250878c6a7d67cfab88b051eb7af9
BLAKE2b-256 e42a17d94ff26c101bbb997f784b09b1d9a30564d0521890ed85e7532cff5e81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ckanext_files-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7213a607f021fa91599ef3e221938fd523937a7e0ffb43aa9a24c0a4def95eb
MD5 50482acf870e6b4c53cd335bc06e052a
BLAKE2b-256 d138a32066de32ba1ebb80a7185321369279975fb5d357a7b0887c29fd711ec9

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