File System Server
Project description
filesystemserver / fss
filesystemserver is a python package, out of the box is just python3 -m http.server 8080, but its superpower is its extensible plugin system.
filesystemserver plugins can be loaded on the fly (or automatically) to serve your file system files/directories as rich content, some examples might include:
- Serving a directory full of images as an image gallery
- Serving data stored in json or csv files as a chart or interactive visualization
- Serving a directory containing git repo with Monaco code editor
filesystemserver installs a CLI wrapper called fss.
Install
pip install filesystemserver
Usage
fss has three subcommands serve (default), install, and update. fss with no arguments will launch a server for the current directory and serves on default port and address (see config section below for changing defaults):
fss
Plugin Installation
# Github project path (git clone)
fss install nicholashaydensmith/gallery.fss
# Or full URL (to any git host endpoint)
fss install https://github.com/nicholashaydensmith/gallery.fss.git
Plugin Update
# Update a specific plugin (git pull)
fss update nicholashaydensmith/gallery.fss
# Update all installed plugins
fss update
fss Configuration
Developing a Plugin
index.html
fss.toml
Development
filesystemserver itself strives to be as small and simple as possible, leaving all features and extensibility to plugins.
It also strives to have as few dependencies as possible, currently its only dependency requirement is for python pre 3.11 package tomli.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file filesystemserver-0.0.1-py3-none-any.whl.
File metadata
- Download URL: filesystemserver-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7584fdeacec6dfa204c6e737428cf42dc9cf610cf1e969fe1f1a356bf0732834
|
|
| MD5 |
07c32bf0703a768874a84de5b7b515ed
|
|
| BLAKE2b-256 |
c2f288dfdec43e23498e22ed16ef1f87f80a4b23234950f09da7f8e4c4403409
|