This project provides a simple HTTP/HTTPS file server using Flask, with a graphical user interface (GUI) for managing the server using Tkinter. Users can start and stop the server and select the directory to serve files from through the GUI.
- Start and stop the server through a user-friendly GUI.
- Select the directory to serve files from.
- Serve files over HTTP or HTTPS.
- Display the server status and uptime.
- Python 3.x
- Flask
- Tkinter (usually included with Python)
- OpenSSL (for HTTPS)
-
Clone the repository:
git clone https://github.com/yourusername/HTTP-HTTPS-Py-Flask-Server.git cd HTTP-HTTPS-Py-Flask-Server -
Install the required Python packages:
pip install flask
-
Run the script:
python file_server_python_flask_with_tk.py
-
Use the GUI to:
- Browse and select the directory to serve files from.
- Start the server.
- Stop the server.
- View the server status and uptime.
This project is licensed under the MIT License - see the LICENSE file for details.
dev by meen
โปรเจคนี้ให้บริการเซิร์ฟเวอร์ไฟล์ HTTP/HTTPS แบบง่าย ๆ โดยใช้ Flask และมีอินเตอร์เฟสผู้ใช้แบบกราฟิก (GUI) สำหรับการจัดการเซิร์ฟเวอร์โดยใช้ Tkinter ผู้ใช้สามารถเริ่มและหยุดเซิร์ฟเวอร์ รวมถึงเลือกไดเรกทอรีที่ต้องการให้เซิร์ฟเวอร์ให้บริการได้ผ่าน GUI
- เริ่มและหยุดเซิร์ฟเวอร์ผ่าน GUI ที่ใช้งานง่าย
- เลือกไดเรกทอรีที่จะให้บริการไฟล์
- ให้บริการไฟล์ผ่าน HTTP หรือ HTTPS
- แสดงสถานะของเซิร์ฟเวอร์และเวลาที่ทำงาน (Uptime)
- Python 3.x
- Flask
- Tkinter (มักจะรวมอยู่ใน Python)
- OpenSSL (สำหรับ HTTPS)
-
Clone รีโพสิตอรี:
git clone https://github.com/yourusername/HTTP-HTTPS-Py-Flask-Server.git cd HTTP-HTTPS-Py-Flask-Server -
ติดตั้งแพ็กเกจ Python ที่ต้องการ:
pip install flask
-
รันสคริปต์:
python file_server_python_flask_with_tk.py
-
ใช้ GUI เพื่อ:
- เลือกและเลือกไดเรกทอรีที่ต้องการให้บริการไฟล์
- เริ่มเซิร์ฟเวอร์
- หยุดเซิร์ฟเวอร์
- ดูสถานะของเซิร์ฟเวอร์และเวลาที่ทำงาน (Uptime)
โปรเจคนี้ได้รับอนุญาตภายใต้สัญญาอนุญาต MIT - ดูไฟล์ LICENSE สำหรับรายละเอียด
พัฒนาโดย meen


