Skip to main content

Zibanu repository library for django projects

Project description

Zibanu Django Repository Package

zibanu.django.repository

This package is a repository files manager for Django. This package allows the management and storage of files and categories in media directory with the possibility of extract meta-data, generate thumbnails and others features.

Installation

Use the package manager pip to install

pip install zibanu-django-repository

Dependencies

This packages depends on zibanu-django 2.0.1 or newer version.

Usage

You can use this package with Django© framework from 3.2 version to 5.1. To do this, you have to add in your settings the package, and set the required settings.

INSTALLED_APPS = [
    "zibanu.django",
    "zibanu.django.repository"
]    

ZB_REPOSITORY_MAX_LEVEL_ALLOWED = 3
ZB_REPOSITORY_MULTILEVEL_FILES_ALLOWED = True
ZB_REPOSITORY_MIX_FILES_CATS_ALLOWED = False

Settings

This is the list of settings available in the package.

  • ZB_REPOSITORY_ROOT_DIR: Root directory under MEDIA_ROOT where the repository structure is stored. Default: "ZbRepository".
  • ZB_REPOSITORY_FILES_DIR: Directory name used to store repository files. Default: "ZbFiles".
  • ZB_REPOSITORY_THUMBNAILS_DIR: Directory name used to store generated thumbnails. Default: "ZbThumbnails".
  • ZB_REPOSITORY_ML_DIR: Directory name used for multi-level repository structure data. Default: "ZbML".
  • ZB_REPOSITORY_MAX_LEVEL_ALLOWED: Maximum category nesting level allowed in the repository. Default: 3.
  • ZB_REPOSITORY_MULTILEVEL_FILES_ALLOWED: Indicates whether files can be stored in nested levels. Default: True.
  • ZB_REPOSITORY_MIX_FILES_CATS_ALLOWED: Indicates whether files and categories can be mixed in the same level. Default: False.
  • ZB_REPOSITORY_HASH_METHOD: Hash algorithm used by the repository package for generated values. Default: "md5".
  • ZB_REPOSITORY_ICON_CLASSES: Dictionary of CSS icon classes used to represent file types. Default:
    {
        "default": "fa-regular fa-file",
        "pdf": "fa-regular fa-file-pdf",
        "word": "fa-regular fa-file-word",
        "excel": "fa-regular fa-file-excel",
        "powerpoint": "fa-regular fa-file-powerpoint",
        "image": "fa-regular fa-file-image",
    }
    
  • ZB_REPOSITORY_VERSIONING: Enables the file versioning system in the repository. Default: True.

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

zibanu_django_repository-3.0.1.tar.gz (67.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zibanu_django_repository-3.0.1-py3-none-any.whl (101.1 kB view details)

Uploaded Python 3

File details

Details for the file zibanu_django_repository-3.0.1.tar.gz.

File metadata

  • Download URL: zibanu_django_repository-3.0.1.tar.gz
  • Upload date:
  • Size: 67.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for zibanu_django_repository-3.0.1.tar.gz
Algorithm Hash digest
SHA256 381a716cba040068e99b2075e9f2ab5c0fe404b5b8a69896d87eb3b0b686ba20
MD5 608175197e6252afd9a2a1eabca1b2e6
BLAKE2b-256 2d8d7b66ae7e7f3be43f44f2079f3248ef28948e269d20404dcf9c563ee8c7d5

See more details on using hashes here.

File details

Details for the file zibanu_django_repository-3.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zibanu_django_repository-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf4efb75b64e734761c0db77d7bf745117fa04bc52bf545491a7401c04a51eab
MD5 e6aa86baf5d2195cf701da4eb6147c9a
BLAKE2b-256 862274d61dc10312f6925faeb3464065e14f531bce11e5786c34b0c4016b6857

See more details on using hashes here.

Supported by

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