This project sets up a basic HTTP server using Python and generates a QR code for accessing the server locally. The server serves files from a specified directory (in this case your default Downloads
folder), and the QR code provides an easy way to access the server URL.
Here is the link to the website: Click Here
OR, You Can Scan This QR Code To Access The Website:
- HTTP Server: The script sets up an HTTP server on port
8010
. - QR Code Generation: Generates a QR code containing the server's local IP address and port.
- Displaying Information: The server information and QR code are displayed in the terminal.
To use this project, follow these steps:
-
Clone the Repository:
git clone https://github.com/ShiiiivanshSingh/Python-File-Sharing
-
Navigate to the Project Directory:
cd Python-File-Sharing
-
Run the Script:
python RUN.py
-
Access the Server:
- Open the generated QR code image
myqr.svg
with a QR code reader or - Visit the displayed URL in your browser.
- Open the generated QR code image
-
File Placement:
- Place the files to be shared in your default
Downloads
folder. - The files present in the directory will be displayed in the interface.
- Place the files to be shared in your default
- Python 3.2
pyqrcode
python3-png
(for PNG support)
pip install pypng
pip install pyqrcode
This project is licensed under the MIT License. See the LICENSE file for details.
(You can always check out my socials at : https://linktr.ee/ShivanshPratapSingh)
Made On 10.09.24 <3