Code Monkey home page Code Monkey logo

chunk-upload's Introduction

Python application to host the files in a folder

The program uses python 3 and socket module to create the server, client programs connect to the servers specific port and gets the list of download files frpom the hosted folder and then client can choose files to download. md5 checksum is used to check the integrity of the file downloaded

Normal Usage

  • Navigate to code folder and open a command prompt
  • Run the command "python server.py"
  • Run the command "python testClient.py"
  • Provide the inputs and file will be downloaded

Testing

  • Navigate to code folder and open a command prompt
  • Run the server file using the command "python server.py" file, desired port should be entered in the config.json.
  • Now, we can test the server by running the deployment script using the command "python deployment.py 8", the 8 at the indicates number of clients to deployee can be changed according to the need. Deployment script have multiple test cases which will test the ability of the server to handle multiple clients
  • All the downloaded files will be stored in the recived folder(configurable) with naming convension [socketId]-[fileName]
  • Logs will be available int the logs folder named server.log and deployment.log

Requirements

  • Python 3.7+
  • Socket Module (standard library)
  • Threading Module (standard library)
  • OS Module (standard library)

chunk-upload's People

Contributors

saikrishnaakula avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.