Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

File Sharing Application

File Sharing Application is implemented as the file-sharing system through Python socket (base on TCP/IP protocol).

Usage

There are three folders in the source code:

Server

In the server folder, run command below to start the server:

python .\server.py

There are several commands to control the server, which format is command "parameter 1" "parameter2"...:

  • start: start the server
  • stop: stop the server
  • clear: clear the command-line output
  • ping "hostname": check if the host with hostname is online
  • discover "hostname": check the local files of host hostname

Client

In the client folder, run command below to start the server:

python .\client.py

There are several commands to control the server, which format is command "parameter 1" "parameter2"...:

  • start: start the client
  • stop: stop the client
  • list: list all files in the local repository
  • notify: list all notifications from the server
  • publish "lname" "fname": a local file (which is stored in the client's file system at "lname") is added to the client's repository as a file named "fname" and this information is conveyed to the server
  • describe "fname" "description": add a description to the file "fname" in the local repository
  • fetch "file name": fetch some copy of the target file and add it to the local repository
  • download "index": download the file with the index return from the fetch command to local repository on your computer

ClientUI

We also make the UI version for the client. To run it, you must install PySide6 first:

pip install PySide6

The UI is based on PyDracula - Modern GUI PySide6 / PyQt6PyDracula - Modern GUI PySide6 / PyQt6, which was contributed by Wanderson-Magalhaes, you can go to see the documentary here

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages