litheserver 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 QuickServer Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,16 @@
1
+ include README.md
2
+ include LICENSE
3
+ include requirements.txt
4
+ include pyproject.toml
5
+ recursive-include litheserver *
6
+ recursive-include fig *.png *.jpg *.jpeg *.gif *.svg
7
+ global-exclude test*
8
+ global-exclude *test*
9
+ global-exclude syntax_test*
10
+ global-exclude test_files*
11
+ global-exclude *.egg-info*
12
+ global-exclude __pycache__
13
+ global-exclude *.py[co]
14
+ global-exclude .git*
15
+ global-exclude *.tmp
16
+ global-exclude *.bak
@@ -0,0 +1,311 @@
1
+ Metadata-Version: 2.4
2
+ Name: litheserver
3
+ Version: 0.1.1
4
+ Summary: A lightweight local file server with a beautiful web interface
5
+ Home-page: https://github.com/xyanmi/litheserver
6
+ Author: xyanmi
7
+ Author-email: xyanmi <youryanmi@gmail.com>
8
+ License: MIT
9
+ Project-URL: Homepage, https://github.com/xyanmi/litheserver
10
+ Project-URL: Bug Reports, https://github.com/xyanmi/litheserver/issues
11
+ Project-URL: Source, https://github.com/xyanmi/litheserver
12
+ Keywords: file server,http server,web interface,file sharing,local server,lightweight
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.6
19
+ Classifier: Programming Language :: Python :: 3.7
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
26
+ Classifier: Topic :: System :: Filesystems
27
+ Requires-Python: >=3.6
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE
30
+ Dynamic: author
31
+ Dynamic: home-page
32
+ Dynamic: license-file
33
+ Dynamic: requires-python
34
+
35
+ # 🚀 LitheServer
36
+
37
+ [English](#english) | [中文](#中文)
38
+
39
+ ---
40
+
41
+ ## 中文
42
+
43
+ LitheServer 是一个基于 Python 开发的轻量级本地文件服务器,提供了比标准 http.server 更友好、功能更丰富的 Web 界面。
44
+
45
+ ### 🖼️ 界面预览
46
+
47
+ #### 主页面 - 文件浏览
48
+ ![主页面](fig/homepage.png)
49
+
50
+ 现代化的文件浏览界面,支持:
51
+ - 🎨 美观的渐变背景设计
52
+ - 📁 直观的文件和文件夹图标
53
+ - 🔍 实时搜索功能
54
+ - 📱 响应式设计,支持移动设备
55
+
56
+ #### 文件预览功能
57
+ ![文件预览](fig/preview.png)
58
+
59
+ 强大的文件预览能力:
60
+ - 👁️ 图片文件实时预览
61
+ - 📄 文本文件语法高亮显示
62
+ - 📋 一键复制代码内容
63
+ - ⬅️ 便捷的返回导航
64
+
65
+ #### 多语言语法高亮
66
+ ![多语言预览](fig/multilang-preview.png)
67
+
68
+ 支持 20+ 种编程语言的语法高亮:
69
+ - 🐍 Python, JavaScript, TypeScript
70
+ - 🌐 HTML, CSS, XML, JSON
71
+ - ⚙️ C/C++, Java, Go, Rust
72
+ - 📝 Markdown, YAML, Shell 脚本等
73
+
74
+ #### 拖拽上传功能
75
+ ![拖拽上传](fig/drag-upload.png)
76
+
77
+ 便捷的文件上传体验:
78
+ - 📤 拖拽文件直接上传
79
+ - 📁 支持多文件同时上传
80
+ - 📊 实时显示文件列表和大小
81
+ - ✅ 上传进度和结果反馈
82
+
83
+ ### ✨ 主要特性
84
+
85
+ - 🌐 **美观的 Web 界面** - 现代化的响应式设计,支持桌面和移动设备
86
+ - 📁 **文件浏览与导航** - 直观的目录结构浏览,支持面包屑导航和实时搜索
87
+ - 👁️ **强大的文件预览** - 支持图片预览和 20+ 种编程语言的语法高亮
88
+ - ⬇️ **文件下载** - 一键下载任意文件,支持中文文件名和文件夹 ZIP 下载
89
+ - 📤 **拖拽上传** - 支持拖拽上传和多文件选择,带有进度显示
90
+ - 🗑️ **文件管理** - 文件删除、重命名、移动等完整的文件操作功能
91
+ - 📁 **文件夹操作** - 创建新文件夹、文件夹 ZIP 下载
92
+ - 🔒 **安全防护** - 防止目录遍历攻击,限制访问范围
93
+ - 📱 **响应式设计** - 在各种屏幕尺寸下都有良好的用户体验
94
+ - 🚀 **零依赖** - 仅使用 Python 标准库,无需安装额外依赖
95
+
96
+ ### 🛠️ 安装与使用
97
+
98
+ #### 快速开始
99
+
100
+ ```bash
101
+ # 通过pip安装
102
+ pip install litheserver
103
+
104
+ # 启动服务器
105
+ litheserver
106
+
107
+ # 或指定端口和目录
108
+ litheserver -p 8080 -d /path/to/directory
109
+ ```
110
+
111
+ #### 从源码安装
112
+
113
+ ```bash
114
+ # 克隆项目
115
+ git clone https://github.com/xyanmi/litheserver.git
116
+
117
+ cd litheserver
118
+
119
+ # 安装
120
+ python setup.py install
121
+
122
+ # 启动服务器
123
+ python -m litheserver
124
+ ```
125
+
126
+ #### 命令行选项
127
+
128
+ ```bash
129
+ litheserver [选项]
130
+
131
+ 选项:
132
+ -p, --port PORT 指定服务器端口 (默认: 8000)
133
+ -d, --directory DIR 指定服务目录 (默认: 当前目录)
134
+ --host HOST 指定绑定地址 (默认: 0.0.0.0)
135
+ -h, --help 显示帮助信息
136
+ ```
137
+
138
+ ### 🌟 功能演示
139
+
140
+ 访问 `http://localhost:8000` 即可使用所有功能:
141
+
142
+ - **文件浏览**: 点击文件夹进入子目录,支持面包屑导航
143
+ - **实时搜索**: 在搜索框中输入关键词快速定位文件
144
+ - **文件预览**: 点击 👁️ 图标预览支持的文件类型
145
+ - **文件下载**: 点击 ⬇️ 图标下载文件,支持文件夹 ZIP 下载
146
+ - **文件上传**: 点击"📤 Upload Files"展开上传区域,支持拖拽上传
147
+ - **文件管理**: 重命名 🏷️、删除 🗑️、移动文件到其他目录
148
+ - **新建文件夹**: 点击"📁 New Folder"创建新目录
149
+ - **打包下载**: 点击📦即可将对应文件夹打包成zip并且下载
150
+
151
+ ### 🎨 支持的文件类型
152
+
153
+ #### 语法高亮预览
154
+ - **编程语言**: Python, JavaScript, TypeScript, Java, C/C++, Go, Rust, PHP
155
+ - **Web 技术**: HTML, CSS, XML, JSON, SVG
156
+ - **配置文件**: YAML, TOML, INI, ENV
157
+ - **脚本语言**: Shell, PowerShell, Batch
158
+ - **文档格式**: Markdown, LaTeX, RTF
159
+ - **数据格式**: CSV, SQL, Log 文件
160
+
161
+ #### 图片预览
162
+ - **常见格式**: JPG, PNG, GIF, SVG, WebP
163
+ - **即时预览**: 无需下载,直接在浏览器中查看
164
+
165
+ ### 📋 系统要求
166
+
167
+ - Python 3.6 或更高版本
168
+ - 仅使用 Python 标准库,无需安装额外依赖
169
+ - 支持 Windows, macOS, Linux
170
+
171
+ ---
172
+
173
+ ⭐ If you find this project useful, please give it a star!
174
+
175
+ 💡 LitheServer - Making local file serving simple and beautiful!
176
+
177
+ ## English
178
+
179
+ LitheServer is a lightweight local file server developed in Python, providing a more user-friendly and feature-rich web interface than the standard http.server.
180
+
181
+ ### 🖼️ Interface Preview
182
+
183
+ #### Homepage - File Browsing
184
+ ![Homepage](fig/homepage.png)
185
+
186
+ Modern file browsing interface featuring:
187
+ - 🎨 Beautiful gradient background design
188
+ - 📁 Intuitive file and folder icons
189
+ - 🔍 Real-time search functionality
190
+ - 📱 Responsive design with mobile support
191
+
192
+ #### File Preview Feature
193
+ ![File Preview](fig/preview.png)
194
+
195
+ Powerful file preview capabilities:
196
+ - 👁️ Real-time image file preview
197
+ - 📄 Text file syntax highlighting
198
+ - 📋 One-click code copying
199
+ - ⬅️ Convenient back navigation
200
+
201
+ #### Multi-language Syntax Highlighting
202
+ ![Multi-language Preview](fig/multilang-preview.png)
203
+
204
+ Supports 20+ programming languages with syntax highlighting:
205
+ - 🐍 Python, JavaScript, TypeScript
206
+ - 🌐 HTML, CSS, XML, JSON
207
+ - ⚙️ C/C++, Java, Go, Rust
208
+ - 📝 Markdown, YAML, Shell scripts, etc.
209
+
210
+ #### Drag & Drop Upload
211
+ ![Drag Upload](fig/drag-upload.png)
212
+
213
+ Convenient file upload experience:
214
+ - 📤 Direct drag & drop file upload
215
+ - 📁 Multi-file upload support
216
+ - 📊 Real-time file list and size display
217
+ - ✅ Upload progress and result feedback
218
+
219
+ ### ✨ Key Features
220
+
221
+ - 🌐 **Beautiful Web Interface** - Modern responsive design supporting desktop and mobile devices
222
+ - 📁 **File Browsing & Navigation** - Intuitive directory structure browsing with breadcrumb navigation and real-time search
223
+ - 👁️ **Powerful File Preview** - Image preview and syntax highlighting for 20+ programming languages
224
+ - ⬇️ **File Download** - One-click download for any file, supports Chinese filenames and folder ZIP download
225
+ - 📤 **Drag & Drop Upload** - Drag & drop upload with multi-file selection and progress display
226
+ - 🗑️ **File Management** - Complete file operations including delete, rename, and move
227
+ - 📁 **Folder Operations** - Create new folders, folder ZIP download
228
+ - 🔒 **Security Protection** - Prevents directory traversal attacks, restricts access scope
229
+ - 📱 **Responsive Design** - Excellent user experience across all screen sizes
230
+ - 🚀 **Zero Dependencies** - Uses only Python standard library, no additional dependencies required
231
+
232
+ ### 🛠️ Installation & Usage
233
+
234
+ #### Quick Start
235
+
236
+ ```bash
237
+ # Install via pip
238
+ pip install litheserver
239
+
240
+ # Start the server
241
+ litheserver
242
+
243
+ # Or specify port and directory
244
+ litheserver -p 8080 -d /path/to/directory
245
+ ```
246
+
247
+ #### Install from Source
248
+
249
+ ```bash
250
+ # Clone the project
251
+ git clone https://github.com/xyanmi/litheserver.git
252
+
253
+ cd litheserver
254
+
255
+ # Install
256
+ python setup.py install
257
+
258
+ # Start the server
259
+ python -m litheserver
260
+ ```
261
+
262
+ #### Command Line Options
263
+
264
+ ```bash
265
+ litheserver [options]
266
+
267
+ Options:
268
+ -p, --port PORT Specify server port (default: 8000)
269
+ -d, --directory DIR Specify service directory (default: current directory)
270
+ --host HOST Specify bind address (default: 0.0.0.0)
271
+ -h, --help Show help information
272
+ ```
273
+
274
+ ### 🌟 Feature Demonstration
275
+
276
+ Visit `http://localhost:8000` to use all features:
277
+
278
+ - **File Browsing**: Click folders to enter subdirectories, supports breadcrumb navigation
279
+ - **Real-time Search**: Enter keywords in the search box to quickly locate files
280
+ - **File Preview**: Click 👁️ icon to preview supported file types
281
+ - **File Download**: Click ⬇️ icon to download files, supports folder ZIP download
282
+ - **File Upload**: Click "📤 Upload Files" to expand upload area, supports drag & drop upload
283
+ - **File Management**: Rename 🏷️, delete 🗑️, move files to other directories
284
+ - **New Folder**: Click "📁 New Folder" to create new directory
285
+ - **Pack Download**: Click 📦 to pack corresponding folder into zip and download
286
+
287
+ ### 🎨 Supported File Types
288
+
289
+ #### Syntax Highlighting Preview
290
+ - **Programming Languages**: Python, JavaScript, TypeScript, Java, C/C++, Go, Rust, PHP
291
+ - **Web Technologies**: HTML, CSS, XML, JSON, SVG
292
+ - **Configuration Files**: YAML, TOML, INI, ENV
293
+ - **Script Languages**: Shell, PowerShell, Batch
294
+ - **Document Formats**: Markdown, LaTeX, RTF
295
+ - **Data Formats**: CSV, SQL, Log files
296
+
297
+ #### Image Preview
298
+ - **Common Formats**: JPG, PNG, GIF, SVG, WebP
299
+ - **Instant Preview**: No download required, view directly in browser
300
+
301
+ ### 📋 System Requirements
302
+
303
+ - Python 3.6 or higher
304
+ - Uses only Python standard library, no additional dependencies required
305
+ - Supports Windows, macOS, Linux
306
+
307
+ ---
308
+
309
+ ⭐ If you find this project useful, please give it a star!
310
+
311
+ 💡 LitheServer - Making local file serving simple and beautiful!
@@ -0,0 +1,277 @@
1
+ # 🚀 LitheServer
2
+
3
+ [English](#english) | [中文](#中文)
4
+
5
+ ---
6
+
7
+ ## 中文
8
+
9
+ LitheServer 是一个基于 Python 开发的轻量级本地文件服务器,提供了比标准 http.server 更友好、功能更丰富的 Web 界面。
10
+
11
+ ### 🖼️ 界面预览
12
+
13
+ #### 主页面 - 文件浏览
14
+ ![主页面](fig/homepage.png)
15
+
16
+ 现代化的文件浏览界面,支持:
17
+ - 🎨 美观的渐变背景设计
18
+ - 📁 直观的文件和文件夹图标
19
+ - 🔍 实时搜索功能
20
+ - 📱 响应式设计,支持移动设备
21
+
22
+ #### 文件预览功能
23
+ ![文件预览](fig/preview.png)
24
+
25
+ 强大的文件预览能力:
26
+ - 👁️ 图片文件实时预览
27
+ - 📄 文本文件语法高亮显示
28
+ - 📋 一键复制代码内容
29
+ - ⬅️ 便捷的返回导航
30
+
31
+ #### 多语言语法高亮
32
+ ![多语言预览](fig/multilang-preview.png)
33
+
34
+ 支持 20+ 种编程语言的语法高亮:
35
+ - 🐍 Python, JavaScript, TypeScript
36
+ - 🌐 HTML, CSS, XML, JSON
37
+ - ⚙️ C/C++, Java, Go, Rust
38
+ - 📝 Markdown, YAML, Shell 脚本等
39
+
40
+ #### 拖拽上传功能
41
+ ![拖拽上传](fig/drag-upload.png)
42
+
43
+ 便捷的文件上传体验:
44
+ - 📤 拖拽文件直接上传
45
+ - 📁 支持多文件同时上传
46
+ - 📊 实时显示文件列表和大小
47
+ - ✅ 上传进度和结果反馈
48
+
49
+ ### ✨ 主要特性
50
+
51
+ - 🌐 **美观的 Web 界面** - 现代化的响应式设计,支持桌面和移动设备
52
+ - 📁 **文件浏览与导航** - 直观的目录结构浏览,支持面包屑导航和实时搜索
53
+ - 👁️ **强大的文件预览** - 支持图片预览和 20+ 种编程语言的语法高亮
54
+ - ⬇️ **文件下载** - 一键下载任意文件,支持中文文件名和文件夹 ZIP 下载
55
+ - 📤 **拖拽上传** - 支持拖拽上传和多文件选择,带有进度显示
56
+ - 🗑️ **文件管理** - 文件删除、重命名、移动等完整的文件操作功能
57
+ - 📁 **文件夹操作** - 创建新文件夹、文件夹 ZIP 下载
58
+ - 🔒 **安全防护** - 防止目录遍历攻击,限制访问范围
59
+ - 📱 **响应式设计** - 在各种屏幕尺寸下都有良好的用户体验
60
+ - 🚀 **零依赖** - 仅使用 Python 标准库,无需安装额外依赖
61
+
62
+ ### 🛠️ 安装与使用
63
+
64
+ #### 快速开始
65
+
66
+ ```bash
67
+ # 通过pip安装
68
+ pip install litheserver
69
+
70
+ # 启动服务器
71
+ litheserver
72
+
73
+ # 或指定端口和目录
74
+ litheserver -p 8080 -d /path/to/directory
75
+ ```
76
+
77
+ #### 从源码安装
78
+
79
+ ```bash
80
+ # 克隆项目
81
+ git clone https://github.com/xyanmi/litheserver.git
82
+
83
+ cd litheserver
84
+
85
+ # 安装
86
+ python setup.py install
87
+
88
+ # 启动服务器
89
+ python -m litheserver
90
+ ```
91
+
92
+ #### 命令行选项
93
+
94
+ ```bash
95
+ litheserver [选项]
96
+
97
+ 选项:
98
+ -p, --port PORT 指定服务器端口 (默认: 8000)
99
+ -d, --directory DIR 指定服务目录 (默认: 当前目录)
100
+ --host HOST 指定绑定地址 (默认: 0.0.0.0)
101
+ -h, --help 显示帮助信息
102
+ ```
103
+
104
+ ### 🌟 功能演示
105
+
106
+ 访问 `http://localhost:8000` 即可使用所有功能:
107
+
108
+ - **文件浏览**: 点击文件夹进入子目录,支持面包屑导航
109
+ - **实时搜索**: 在搜索框中输入关键词快速定位文件
110
+ - **文件预览**: 点击 👁️ 图标预览支持的文件类型
111
+ - **文件下载**: 点击 ⬇️ 图标下载文件,支持文件夹 ZIP 下载
112
+ - **文件上传**: 点击"📤 Upload Files"展开上传区域,支持拖拽上传
113
+ - **文件管理**: 重命名 🏷️、删除 🗑️、移动文件到其他目录
114
+ - **新建文件夹**: 点击"📁 New Folder"创建新目录
115
+ - **打包下载**: 点击📦即可将对应文件夹打包成zip并且下载
116
+
117
+ ### 🎨 支持的文件类型
118
+
119
+ #### 语法高亮预览
120
+ - **编程语言**: Python, JavaScript, TypeScript, Java, C/C++, Go, Rust, PHP
121
+ - **Web 技术**: HTML, CSS, XML, JSON, SVG
122
+ - **配置文件**: YAML, TOML, INI, ENV
123
+ - **脚本语言**: Shell, PowerShell, Batch
124
+ - **文档格式**: Markdown, LaTeX, RTF
125
+ - **数据格式**: CSV, SQL, Log 文件
126
+
127
+ #### 图片预览
128
+ - **常见格式**: JPG, PNG, GIF, SVG, WebP
129
+ - **即时预览**: 无需下载,直接在浏览器中查看
130
+
131
+ ### 📋 系统要求
132
+
133
+ - Python 3.6 或更高版本
134
+ - 仅使用 Python 标准库,无需安装额外依赖
135
+ - 支持 Windows, macOS, Linux
136
+
137
+ ---
138
+
139
+ ⭐ If you find this project useful, please give it a star!
140
+
141
+ 💡 LitheServer - Making local file serving simple and beautiful!
142
+
143
+ ## English
144
+
145
+ LitheServer is a lightweight local file server developed in Python, providing a more user-friendly and feature-rich web interface than the standard http.server.
146
+
147
+ ### 🖼️ Interface Preview
148
+
149
+ #### Homepage - File Browsing
150
+ ![Homepage](fig/homepage.png)
151
+
152
+ Modern file browsing interface featuring:
153
+ - 🎨 Beautiful gradient background design
154
+ - 📁 Intuitive file and folder icons
155
+ - 🔍 Real-time search functionality
156
+ - 📱 Responsive design with mobile support
157
+
158
+ #### File Preview Feature
159
+ ![File Preview](fig/preview.png)
160
+
161
+ Powerful file preview capabilities:
162
+ - 👁️ Real-time image file preview
163
+ - 📄 Text file syntax highlighting
164
+ - 📋 One-click code copying
165
+ - ⬅️ Convenient back navigation
166
+
167
+ #### Multi-language Syntax Highlighting
168
+ ![Multi-language Preview](fig/multilang-preview.png)
169
+
170
+ Supports 20+ programming languages with syntax highlighting:
171
+ - 🐍 Python, JavaScript, TypeScript
172
+ - 🌐 HTML, CSS, XML, JSON
173
+ - ⚙️ C/C++, Java, Go, Rust
174
+ - 📝 Markdown, YAML, Shell scripts, etc.
175
+
176
+ #### Drag & Drop Upload
177
+ ![Drag Upload](fig/drag-upload.png)
178
+
179
+ Convenient file upload experience:
180
+ - 📤 Direct drag & drop file upload
181
+ - 📁 Multi-file upload support
182
+ - 📊 Real-time file list and size display
183
+ - ✅ Upload progress and result feedback
184
+
185
+ ### ✨ Key Features
186
+
187
+ - 🌐 **Beautiful Web Interface** - Modern responsive design supporting desktop and mobile devices
188
+ - 📁 **File Browsing & Navigation** - Intuitive directory structure browsing with breadcrumb navigation and real-time search
189
+ - 👁️ **Powerful File Preview** - Image preview and syntax highlighting for 20+ programming languages
190
+ - ⬇️ **File Download** - One-click download for any file, supports Chinese filenames and folder ZIP download
191
+ - 📤 **Drag & Drop Upload** - Drag & drop upload with multi-file selection and progress display
192
+ - 🗑️ **File Management** - Complete file operations including delete, rename, and move
193
+ - 📁 **Folder Operations** - Create new folders, folder ZIP download
194
+ - 🔒 **Security Protection** - Prevents directory traversal attacks, restricts access scope
195
+ - 📱 **Responsive Design** - Excellent user experience across all screen sizes
196
+ - 🚀 **Zero Dependencies** - Uses only Python standard library, no additional dependencies required
197
+
198
+ ### 🛠️ Installation & Usage
199
+
200
+ #### Quick Start
201
+
202
+ ```bash
203
+ # Install via pip
204
+ pip install litheserver
205
+
206
+ # Start the server
207
+ litheserver
208
+
209
+ # Or specify port and directory
210
+ litheserver -p 8080 -d /path/to/directory
211
+ ```
212
+
213
+ #### Install from Source
214
+
215
+ ```bash
216
+ # Clone the project
217
+ git clone https://github.com/xyanmi/litheserver.git
218
+
219
+ cd litheserver
220
+
221
+ # Install
222
+ python setup.py install
223
+
224
+ # Start the server
225
+ python -m litheserver
226
+ ```
227
+
228
+ #### Command Line Options
229
+
230
+ ```bash
231
+ litheserver [options]
232
+
233
+ Options:
234
+ -p, --port PORT Specify server port (default: 8000)
235
+ -d, --directory DIR Specify service directory (default: current directory)
236
+ --host HOST Specify bind address (default: 0.0.0.0)
237
+ -h, --help Show help information
238
+ ```
239
+
240
+ ### 🌟 Feature Demonstration
241
+
242
+ Visit `http://localhost:8000` to use all features:
243
+
244
+ - **File Browsing**: Click folders to enter subdirectories, supports breadcrumb navigation
245
+ - **Real-time Search**: Enter keywords in the search box to quickly locate files
246
+ - **File Preview**: Click 👁️ icon to preview supported file types
247
+ - **File Download**: Click ⬇️ icon to download files, supports folder ZIP download
248
+ - **File Upload**: Click "📤 Upload Files" to expand upload area, supports drag & drop upload
249
+ - **File Management**: Rename 🏷️, delete 🗑️, move files to other directories
250
+ - **New Folder**: Click "📁 New Folder" to create new directory
251
+ - **Pack Download**: Click 📦 to pack corresponding folder into zip and download
252
+
253
+ ### 🎨 Supported File Types
254
+
255
+ #### Syntax Highlighting Preview
256
+ - **Programming Languages**: Python, JavaScript, TypeScript, Java, C/C++, Go, Rust, PHP
257
+ - **Web Technologies**: HTML, CSS, XML, JSON, SVG
258
+ - **Configuration Files**: YAML, TOML, INI, ENV
259
+ - **Script Languages**: Shell, PowerShell, Batch
260
+ - **Document Formats**: Markdown, LaTeX, RTF
261
+ - **Data Formats**: CSV, SQL, Log files
262
+
263
+ #### Image Preview
264
+ - **Common Formats**: JPG, PNG, GIF, SVG, WebP
265
+ - **Instant Preview**: No download required, view directly in browser
266
+
267
+ ### 📋 System Requirements
268
+
269
+ - Python 3.6 or higher
270
+ - Uses only Python standard library, no additional dependencies required
271
+ - Supports Windows, macOS, Linux
272
+
273
+ ---
274
+
275
+ ⭐ If you find this project useful, please give it a star!
276
+
277
+ 💡 LitheServer - Making local file serving simple and beautiful!
Binary file
Binary file
Binary file
@@ -0,0 +1,12 @@
1
+ """
2
+ LitheServer - A lightweight local file server with a beautiful web interface.
3
+
4
+ Version: 0.1.1
5
+ """
6
+
7
+ __version__ = "0.1.1"
8
+ __author__ = "xyanmi"
9
+
10
+ from .server import LitheServer
11
+
12
+ __all__ = ['LitheServer']