Metadata-Version: 2.1
Name: cryptic-game
Version: 0.1.0
Summary: Microservice handler for cryptic-game
Home-page: https://github.com/cryptic-game/python3-lib
Author: cryptic-game
Author-email: faq@cryptic-game.net
License: UNKNOWN
Description: # python3-lib
        
        The microservice-libary for python3 of cryptic-game.
        
        Pypi Seite: https://pypi.org/project/cryptic-game/
        
        ## Installation:
        
        ```bash
        $ pip3 install cryptic-game
        ```
        
        ## Quick Start
        
        ```python
        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](https://github.com/cryptic-game/server).
        
        ### Environment variables
        
        | key               | default value |
        |-------------------|---------------|
        | SERVER_HOST       | 127.0.0.1     |
        | SERVER_PORT       | 1239          |
        
        ## Wiki
        
        Visit our [wiki](https://github.com/cryptic-game/python3-lib/wiki) for more information.
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
