A modern HTTP file server with web UI
Project description
ServeFS
一个基于 FastAPI 和 Vue.js 的简单文件服务器,支持文件和文件夹的上传、预览和管理。
功能特点
- 📁 文件和文件夹浏览
- 📤 支持文件和文件夹上传
- 🖼️ 图片文件预览
- 🗑️ 文件和文件夹删除
- 📊 文件大小显示
- 🔄 实时进度显示
- 💫 拖放上传支持
- 🖥️ 命令行界面支持
预览功能
- .jpg、.jpeg、.png、.gif、.webp 图片预览。
- .json、.html、.css、.txt、.md、.py 以文本格式预览。
- .ttf 字体文件预览。
安装
推荐使用 pipx 安装(保证依赖隔离):
pipx install servefs
或使用 pip:
pip install servefs
使用
命令行
基本用法:
# 在当前目录启动服务器
servefs
# 指定端口
servefs --port 7001
# 指定根目录
servefs --root /path/to/directory
# 显示帮助
servefs --help
完整命令行选项:
选项:
-r, --root TEXT 要服务的根目录 [default: .]
-h, --host TEXT 绑定的主机地址 [default: 0.0.0.0]
-p, --port INTEGER 绑定的端口号 [default: 8000]
-v, --version 显示版本号并退出
--help 显示帮助信息并退出
开发
如果你想参与开发,请查看 开发指南。
TODO
- 支持文件搜索
- 支持文件重命名
- 添加用户认证
- 支持文件分享
感谢
- Windsurf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
servefs-0.1.2.tar.gz
(116.6 kB
view details)
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
servefs-0.1.2-py3-none-any.whl
(116.2 kB
view details)
File details
Details for the file servefs-0.1.2.tar.gz.
File metadata
- Download URL: servefs-0.1.2.tar.gz
- Upload date:
- Size: 116.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7928ffaa39e0104de76b97a90c4ac9e860bb7c48f46a96ee14df8abd16a50d2c
|
|
| MD5 |
f09914e4da827955ae500cc9c6bf9b26
|
|
| BLAKE2b-256 |
7665d39521974e125a94856becbdf99198f24aaeec3dca61be5fcc2249768446
|
File details
Details for the file servefs-0.1.2-py3-none-any.whl.
File metadata
- Download URL: servefs-0.1.2-py3-none-any.whl
- Upload date:
- Size: 116.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9bc2b2e14226569c68f34d4279060e6db58705bc0173523be398d513053ce27
|
|
| MD5 |
b7853a78089e417535b2ea7af71f3645
|
|
| BLAKE2b-256 |
f0497d79b9163edb36da77848ff94503e606bb45a5da2c0b72754c2ffe8cd4f2
|