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 |
---|---|
MSSOCKET_HOST | 127.0.0.1 |
MSSOCKET_PORT | 1239 |
Wiki
Visit our wiki for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cryptic-game-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for cryptic_game-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1f4234428cdfb0f8e2fbc7773b5b94d8f21d3f06e51dde1178e24429883730e |
|
MD5 | 67f125e5371a1eac27e7a132d1484183 |
|
BLAKE2b-256 | b478a9137cc1446b0eaf9c34b74ef183c6dec1d01dcc16f1fbdb278e23536c09 |