Skip to main content

Microservice handler for cryptic-game

Project description

python3-lib

The microservice-libary for python3 of cryptic-game.

Pypi Seite: https://pypi.org/project/cryptic-game/

Installation:

$ pip3 install cryptic-game

Quick Start

from cryptic import MicroService

ms: MicroService = MicroService(name="echo")


@ms.microservice_endpoint(path=["microservice"])
def handle(data: dict, microservice: str):
    print(data, microservice)
    return {}


@ms.user_endpoint(path=["user"])
def handle(data: dict, user: str):
    print(data, user)
    return {}


if __name__ == '__main__':
    ms.run()

Requirements

Required are all modules in the requirements.txt.

Test it!

Your microservice will be supported by the game-server of cryptic.

Environment variables

key default value
SERVER_HOST 127.0.0.1
SERVER_PORT 1239

Wiki

Visit our wiki for more information.

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

microservicecryp-1.3.3.tar.gz (3.2 kB view hashes)

Uploaded source

Built Distribution

microservicecryp-1.3.3-py3-none-any.whl (3.6 kB view hashes)

Uploaded py3

Supported by

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