Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Server and client for your app needs

Project description

MultiSC

awesome MIT PyPI version coverage quality

Server for your app needs.

Installation

$/> pip insatll MultiSC

New project (server)

$/> make_multi server
$/> make_multi server -q //for quick setup mode

New project (client)

$/> make_multi client

Quick setup example (server)

from MultiSC.MultiServer.quick_setup.manager import ProtocolsManager, MonitorManager, Runner


@MonitorManager.add("client_info_printer")
def monitor(self, query):
    print(query.other)

@ProtocolsManager.add("math", "sum")
def func2(query):
    return query["a"] + query["b"]


Server = Runner()
Server.run()

Client example

from MultiSC.MultiClient.EasyClient import EasyClient

def main():
    address = "127.0.0.1", 84
    user = EasyClient(address)
    user.connect()

    print(user.castom_request("math", "sum", a=5, b=9)) # -> {'message': 14, 'code': 200}
main()

for more information visit our wiki hare

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for MultiSC, version 0.0.12
Filename, size File type Python version Upload date Hashes
Filename, size MultiSC-0.0.12.tar.gz (30.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page