File Sharing App Using Python - GeeksforGeeks
File Sharing App Using Python - GeeksforGeeks
Step-by-step Approach:
Python3
# to generate qrcode
import pyqrcode
from pyqrcode import QRCode
Output:
Open the python file which has the above code on PC.
This will generate a QR-code.
Either Scan the QR-code or type the IP Address shown in the python
shell in your mobile browser.
Open In App
https://www.geeksforgeeks.org/file-sharing-app-using-python/ 3/8
8/4/24, 10:35 AM File Sharing App using Python - GeeksforGeeks
Share the files with ease by scanning the QR-code that’s generated and
get access to the files in PC, from the mobile browser.
Demonstration:
Explanation:
The code finds the name of the USERPROFILE through OS module. And
changes the directory to access the files on the desktop.
Open In App
https://www.geeksforgeeks.org/file-sharing-app-using-python/ 4/8
8/4/24, 10:35 AM File Sharing App using Python - GeeksforGeeks
Finds the hostname to serve the file in a particular port for secured
sharing.
Then finds the IP address of the system so that we can connect a
particular device.
The IP address is converted into the form of QR-code using the module
pyqrcode for easy use.
The generated image is hosted in a web browser.
Once the device connected to the same network either scanned QR code
or type the IP address can access the files of the system.
Elevate your coding journey with a Premium subscription. Benefit from ad-free
learning, unlimited article summaries, an AI bot, access to 35+ courses, and more-
available only with GeeksforGeeks Premium! Explore now!
Python Basics Interview Questions Python Quiz Popular Packages Python Projects Practice Python AI
Ready to dive into the future? Mastering Generative AI and ChatGPT is your
gateway to the cutting-edge world of AI. Perfect for tech enthusiasts, this
course will teach you how to leverage Generative AI and ChatGPT with
hands-on, practical lessons. Transform your skills and create innovative AI
applications that stand out. Don't miss out on becoming an AI expert –
Enroll now and start shaping the future!
P prad… Follow 17
Similar Reads
How to do Cloud File Sharing using Python?
In this article, we will see how to share files online using a free, secure
platform called GoFile. We can make it available for anyone through the link…
4 min read
Company Languages
About Us Open In App Python
https://www.geeksforgeeks.org/file-sharing-app-using-python/ 6/8
8/4/24, 10:35 AM File Sharing App using Python - GeeksforGeeks
Legal Java
In Media C++
Contact Us PHP
Advertise with us GoLang
GFG Corporate Solution SQL
Placement Training Program R Language
GeeksforGeeks Community Android Tutorial
Tutorials Archive
Open In App
https://www.geeksforgeeks.org/file-sharing-app-using-python/ 8/8