Skip to content

GetThePointGit/django-fsspec

Repository files navigation

Django fsspec

Django Storage backend for fsspec. With this packages all filesystems supported by fsspec can be used as Django storage backends.

Beside the storage implementation, also to 'composed' ffspec filesystems are added:

  • NestedFileSystem: with this ffspec filesystem, subdirectories of a storage backend point to different ffspec filesystems.
  • TransparentFileSystem: with this ffspec filesystem, one fs can overlay another fs. This can be useful for testing purposes, e.g. to use a local filesystem as writeble layer over a read only remote filesystem.

Installation

pip install django-fsspec

Usage

Within django, storage backends are defined in the settings.py file.

STORAGES = {
    'default': {
        'BACKEND': 'django_fsspec.storage.FsSpecStorage',
        'OPTIONS': {
            'fs_class': 'fsspec.implementations.local.LocalFileSystem',
            'kwargs': {
                'auto_mkdir': True,
            },
        },
    },
}

build

install tools

    brew install hatch
    pixi global install hatch

About

django storage implementation using fsspec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages