Skip to main content

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.

Source Distribution

MultiSC-0.0.12.tar.gz (30.8 kB view details)

Uploaded Source

File details

Details for the file MultiSC-0.0.12.tar.gz.

File metadata

  • Download URL: MultiSC-0.0.12.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.1

File hashes

Hashes for MultiSC-0.0.12.tar.gz
Algorithm Hash digest
SHA256 fd3870a9c137c7b57b78c81ac8e17a03c3f0d7ece9f03a9ad42c31719b3e1501
MD5 216cfe25a3185dd3baf9e8abf6019ffc
BLAKE2b-256 c9078f0f52cf4da51fe12f785e807081c61bda34abb882748da45e97ee568df7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page