Skip to content

min93/HTTP-HTTPS-File-Server-with-Python-Flask-and-Tkinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

HTTP/HTTPS Python Flask Server

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.

Features

  • 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.

Prerequisites

  • Python 3.x
  • Flask
  • Tkinter (usually included with Python)
  • OpenSSL (for HTTPS)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/HTTP-HTTPS-Py-Flask-Server.git
    cd HTTP-HTTPS-Py-Flask-Server
  2. Install the required Python packages:

    pip install flask

Usage

  1. Run the script:

    python file_server_python_flask_with_tk.py
  2. 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.

Example

  • Browse and select the directory: Browse Directory

  • Start the server: Start Server

  • Server running: Server Running

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

dev by meen

HTTP/HTTPS Py Flask Server

โปรเจคนี้ให้บริการเซิร์ฟเวอร์ไฟล์ HTTP/HTTPS แบบง่าย ๆ โดยใช้ Flask และมีอินเตอร์เฟสผู้ใช้แบบกราฟิก (GUI) สำหรับการจัดการเซิร์ฟเวอร์โดยใช้ Tkinter ผู้ใช้สามารถเริ่มและหยุดเซิร์ฟเวอร์ รวมถึงเลือกไดเรกทอรีที่ต้องการให้เซิร์ฟเวอร์ให้บริการได้ผ่าน GUI

คุณสมบัติ

  • เริ่มและหยุดเซิร์ฟเวอร์ผ่าน GUI ที่ใช้งานง่าย
  • เลือกไดเรกทอรีที่จะให้บริการไฟล์
  • ให้บริการไฟล์ผ่าน HTTP หรือ HTTPS
  • แสดงสถานะของเซิร์ฟเวอร์และเวลาที่ทำงาน (Uptime)

ข้อกำหนดเบื้องต้น

  • Python 3.x
  • Flask
  • Tkinter (มักจะรวมอยู่ใน Python)
  • OpenSSL (สำหรับ HTTPS)

การติดตั้ง

  1. Clone รีโพสิตอรี:

    git clone https://github.com/yourusername/HTTP-HTTPS-Py-Flask-Server.git
    cd HTTP-HTTPS-Py-Flask-Server
  2. ติดตั้งแพ็กเกจ Python ที่ต้องการ:

    pip install flask

การใช้งาน

  1. รันสคริปต์:

    python file_server_python_flask_with_tk.py
  2. ใช้ GUI เพื่อ:

    • เลือกและเลือกไดเรกทอรีที่ต้องการให้บริการไฟล์
    • เริ่มเซิร์ฟเวอร์
    • หยุดเซิร์ฟเวอร์
    • ดูสถานะของเซิร์ฟเวอร์และเวลาที่ทำงาน (Uptime)

ตัวอย่าง

  • เลือกไดเรกทอรี: เลือกไดเรกทอรี

  • เริ่มเซิร์ฟเวอร์: เริ่มเซิร์ฟเวอร์

  • เซิร์ฟเวอร์ทำงาน: เซิร์ฟเวอร์ทำงาน

ใบอนุญาต

โปรเจคนี้ได้รับอนุญาตภายใต้สัญญาอนุญาต MIT - ดูไฟล์ LICENSE สำหรับรายละเอียด

ผู้พัฒนา

พัฒนาโดย meen

About

HTTP/HTTPS File Server with Python Flask and Tkinter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages