Get the weather of any city instantly in your project
Project description
easyOpenWeather module
This module to used to quickly add network file sharing capabilities to a python project
Main Users :
- Jarvis - command line personal assistant for windows , linux and mac. click here to visit jarvis website
- 100's of little school project
install module using pip command
pip install easyFileShare
To import in project -
from easyFileShare import FS
Then make a object instance of FileShareClass
obj = FS.FileShareClass()
Now just call the start_fileShare() method and pass on the folder path to share
obj.start_fileShare("C:/Users/UserName/Desktop")
Default server will start at PORT = 8000 , you can change that by passing port number also
obj.start_fileShare("C:/Users/UserName/Desktop" , 5000)
Port Number must be a four digit integer
To stop the server - press CTRL + C
Visit the Provided link on any device connected to the same wifi network to browser or download the files
Other methods -
All methods are called automatically by start_fileShare() method.
-
obj.setPort(port) - To set custom port number
-
obj.setSharePath(folderPath) - To set folder path to share
Some getters -
-
obj.getSharePath()
-
obj.get_ip_address()
-
obj.getPort()
-
obj.getPort()
-
obj.startServerAtFolderSetted() - to start the server
Sample program -
from easyFileShare import FS
obj = FS.FileShareClass()
obj.start_fileShare("C:/Users/UserName/Desktop")
# output -
# Starting file share ...
# Visit http://192.168.1.9:8000 to browse or download the files
# Files only available to devices present in the same network connection
# press { CTRL + C } to stop file sharing
Contibute -
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for easyFileShare-0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799886f2e78871283bc9809c3f96778c9bd200e11e521e821fac8a90ca6f24a0 |
|
MD5 | f0d0d709946aa9da60763ac3ebf9dd0e |
|
BLAKE2b-256 | 5bc079d4ff69d956e40cbaa882449e60cd0a0992ee038c06ad0c9f696fb98b7e |