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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file microservicecryp-1.3.3.tar.gz.

File metadata

  • Download URL: microservicecryp-1.3.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for microservicecryp-1.3.3.tar.gz
Algorithm Hash digest
SHA256 a460531102bdc0b74ed21b66c2ccefb9f5cbfdfdf52727310a6d2849049c2a53
MD5 4a6b067d864ce1f30b3dee839d92351c
BLAKE2b-256 48ac4f2697af508a50c71a3cead60692dba020f56a1a9da5e4ffac085742c701

See more details on using hashes here.

File details

Details for the file microservicecryp-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: microservicecryp-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for microservicecryp-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee952bcce6331af88db67bf8aa069f8e90b10ce6c8b69afe06ee2681e2fc07e9
MD5 c3d22cc27b617ccb4b7bdafacbe423ab
BLAKE2b-256 015ed27ddf574d7899e219d5e47bb39799cf910bc179071d5abc687e931cceb1

See more details on using hashes here.

Supported by

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