Skip to main content

Microservice handler for cryptic-game

Project description


The microservice-libary for python3 of cryptic-game.

Pypi Seite:


$ pip3 install cryptic-game

Quick Start

from cryptic import MicroService, get_config, Config
from uuid import uuid4
from sqlalchemy import Column, String
from typing import Union

config: Config = get_config("debug")  # this sets config to debug mode
ms: MicroService = MicroService(name="echo")
db_wrapper = ms.get_wrapper()

def handle(data: dict, microservice: str):
    print(data, microservice)
    return {}

def handle(data: dict, user: str):
    print(data, user)
    return {}

class Test(db_wrapper.Base):
    __tablename__: str = 'test'

    uuid: Union[Column, str] = Column(String(36), primary_key=True, unique=True)
    name: Union[Column, str] = Column(String(255), nullable=False)

    def create(name: str) -> 'Test':
        my_test: Test = Test(uuid=str(uuid4()), name=name)

        return my_test

if __name__ == '__main__':


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


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.

Files for cryptic-game, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size cryptic_game-0.3.0-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cryptic-game-0.3.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page