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.1.tar.gz
(13.1 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.1-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file servefs-0.1.1.tar.gz.
File metadata
- Download URL: servefs-0.1.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65abc1370902adb80570bc61b266f33cb28b73d5c5e2c2eb6455a0e0e6dad24c
|
|
| MD5 |
09257d18dd887a6c9ae5801bc890b31d
|
|
| BLAKE2b-256 |
d05714bf4e8ec6236cb2135599052f22d639104e83cfd2f9178961bf58732e8e
|
File details
Details for the file servefs-0.1.1-py3-none-any.whl.
File metadata
- Download URL: servefs-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.0 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 |
4d1bf7ef3cdd3907ca7fbab4e5cb1bb02ec526d2f7950444a3891f904e125e4d
|
|
| MD5 |
84850be4c682184a65b9ce6aec8a6174
|
|
| BLAKE2b-256 |
2261655fd4c92209d5ea47e547c959fe63a2393287a6e05c762bff0ab47fcd27
|