Git Product home page Git Product logo

flask-file-server's Introduction

!!! UNDER CONSTRUCTION !!!

flask-file-server

A flask file server with an elegant frontend for

  • browsing,
  • uploading and streaming
  • copying, moving, deleting

- annotating

  • sending files

Files are stored in a non-redundant way by symlinks.

Additional custom actions can be implemented for several events.

screenshot

Run

docker run -v /target/folder/on/host:/data -p 8000:8000 zellerede/flask-file-server

Params

FS_BIND = Param for bind address, default 0.0.0.0
FS_PORT = Param for server port, default 8000
FS_PATH = Param for serve path, default /data FS_KEY = Param for authentication key as base64 encoded username:password, default none

docker run -v /data:/data -v /path/to/custom_actions:/src -p 8000:8000 -e FS_BIND=0.0.0.0 -e FS_PORT=8000 -e FS_PATH=/tmp -e FS_KEY=dGVzdDp0ZXN0 zellerede/flask-file-server

Custom actions

For usage, see example/custom_actions.py.

Contribute

Prerequisites

pip install -r requirements.txt

Build docker

docker build -t zellerede/flask-file-server:latest .

TODO:

  • Add tests!!
  • Refactor existing code
  • Add pure json answers
  • Add custom actions for events like before/after file upload/download, copy/move/delete
  • Introduce Backend Database for file annotations, checksums and filesets
  • Introduce Fileset Replication (through e.g. /api/fileset//replicate?to= --> /api/fileset/receive, later: predefined authenticated connections)
  • Enhance authentication: Role Based Access for base folders 'repositories' (as a prototype we might simply use different Unix users) -- see e.g. https://blog.miguelgrinberg.com/post/restful-authentication-with-flask

flask-file-server's People

Contributors

wildog avatar atridis avatar maaydin avatar zellerede avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.