用于神秘游戏的微服务处理程序
cryptic-game的Python项目详细描述
python3库
神秘游戏Python3的微服务库。
皮皮塞特:https://pypi.org/project/cryptic-game/
安装:
$ pip3 install cryptic-game
功能
- 端点映射
- 自动输入验证
- 数据库控件
- 岗哨和记录器->;堆栈跟踪和上下文数据
快速启动
查看example.py以获取如何使用此库的快速示例。
要求
必需的是requirements.txt
中的所有模块。
环境变量
Variable | Functionality |
---|---|
MODE | debug or production |
DATA_LOCATION | Path where you sqlite db should be stored under debug mode |
DBMS | Mysql or sqlite used internaly |
SQLITE_FILE | Name of your sqlite db |
MYSQL_HOSTNAME | Host where your mysql server runs |
MYSQL_PORT | Under which port your mysql on the given host runs |
MYSQL_DATABASE | Name of your mysql database |
MYSQL_USERNAME | Mysql username |
MYSQL_PASSWORD | Your password for this given user |
PATH_LOGFILE | Path too where your logging files should be stored |
DSN | Data Structure Name for your sentry instance |
RELEASE | The Release this will be reported too sentry |
测试一下!
您的微服务将由game-server of cryptic支持。
维基
有关详细信息,请访问我们的wiki。