Giter Site home page Giter Site logo

python_distributed_system's Introduction

Pytho_Distributed_System

Basic server and client for a distributed system made in Python

To start using just follow the steps ahead:

1 - Start a Server passing an IP and a Port as argument. Eg.: python Server 127.0.0.1 7000.
2 - Create a ConnectClient object on your client application, using the Server IP and Port as constructor parameters.
3 - Now you have to send to the server a Python file with the functions/methods you will use. To do this, use the method 'register_module' using your ConnectClient object. Note: At the moment, the file must contain only functions.
4 - Finally, to use a function/method, call the method 'request_process' using your ConnectClient object. The only parameter is a list that must contain, as first item, a string with the name of the function to be used. The other itens of the list are the function parameters.

Notes:

1 - The 'request_process' method will return an object of the same return type of your function/method.
2 - If any called function raises an exception, the exception will be raised to your client application, as if it was running on your computer.
3 - At the moment, the Server is acting as Server and Host. In the future, Server and Host will become independent.

For some examples of use, see 'example_application.py' and the 'test_functions.py' files.

python_distributed_system's People

Contributors

kahbum 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.