Skip to main content

Flask CKFinder3 connector

Project description

Flask CKFinder3 connector.

Installation

pip install Flask-CKFinder3

Running the example

git clone https://gitlab.com/aristofor/flask-ckfinder3.git
cd flask-ckfinder3
FLASK_APP=example.app flask run

Limitations

Supported backend : local file system

Proxy command not implemented.

Configuration

Required options

CKFINDER_QUICKUPLOAD_DIR

Directory for quick upload

CKFINDER_QUICKUPLOAD_ENDPOINT

Route name for quick upload

CKFINDER_RESOURCE_TYPES

Resources list (see bellow)

Resources declaration

CKFINDER_RESOURCE_TYPES = [
        dict(
            name='<unique resource name>',
            endpoint='<flask endpoint to use in url_for>',
            allowedExtensions='<comma separated list of extensions>',
            directory='<path to resource>',
            deniedExtensions='<denied extensions, default: None>',
            acl=<ACL flags, default: 1023>
        ),
        ...
    ]

Optionnal configuration

CKFINDER_LICENSE_NAME

CKFinder license name

CKFINDER_LICENCE_KEY

CKFinder license code

CKFINDER_THUMBS

Thumbnails sizes. default: ("150x150","300x300","500x500")

CKFINDER_THUMBNAIL_DIR

Thumbnails directory, required for caching

CKFINDER_THUMBNAIL_MAXFILES

Files to keep in thumbnail cache. default: 200

CKFINDER_THUMBNAIL_THRESHOLD

Thumbnail gc probability. default: 1/20

CKFINDER_UPLOADMAXSIZE

Maximum upload size

CKFINDER_UPLOADCHECKIMAGES

Check size before upload

CKFINDER_IMAGES_SIZES

Resize presets dict

History

0.1.1 (2021-05-06)

  • Edit image implemented

  • Resize image implemented

  • Fixed: thumbnailing non-RGB image

0.1.0 (2021-04-30)

  • First release on PyPI

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

Flask-CKFinder3-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

File details

Details for the file Flask-CKFinder3-0.1.1.tar.gz.

File metadata

  • Download URL: Flask-CKFinder3-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for Flask-CKFinder3-0.1.1.tar.gz
Algorithm Hash digest
SHA256 044e83e1d7f56b14db1a28e9b3347dac0aab8a4bae3824e9a4f020ac50a8f540
MD5 8b5c1a7de71564adff41d66469f1bc9d
BLAKE2b-256 d7ddbb616d1d947d2032c237cb85e2d5787af2512658a6a689966f377967f23b

See more details on using hashes here.

Supported by

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