yyxx game custom module
Project description
YYXXGAME-PKG
yyxx-game-pkg
是一个专门为元游公司后台开发的 Python 内部接口集合。
元游信息
目录
上手指南
环境配置
1.环境安装python3.11以上版本
安装步骤
1.Clone代码
git clone https://github.com/yyxxgame/yyxxgame-pkg.git
2.安装poetry
- curl -sSL https://install.python-poetry.org | python3
- export PATH="/root/.local/bin:$PATH"
3.配置虚拟环境并激活
- poetry env use python3
- poetry env list
- poetry shell
文件目录说明
yyxxgame-pkg
├── README.md
├── gen_version.py
├── images
│ └── logo.png
├── poetry.lock
├── pyproject.toml
├── tests
│ ├── __init__.py
│ ├── dispatch
│ ├── submit
│ ├── test_ip2region.py
│ ├── test_logger.py
│ ├── test_xtrace.py
│ ├── utils
│ └── xcelery
└── yyxx_game_pkg
├── __init__.py
├── helpers
├── ip2region
├── logger
├── stat
├── utils
└── xtrace
部署
develop
提交注释中添加[BUILD]
关键字并推送会触发github actions的dev版本构建并发布到yyxx-game-pkg-dev
release
新建tag
并推送会触发github actions的正式版本构建并发布到yyxx-game-pkg
模块介绍
yyxxgame-pkg包含以下模块:
xtrace
xtrace
模块封装了链路追踪的帮助类,可以帮助开发人员快速地实现链路追踪功能。
stat
stat
模块包含yyxxgame内部统计业务的底层框架,目前包含dispatch
、submit
、xcelery几个模块
代码示例
参考test 中的调用例子
版本控制
该项目使用Git进行版本管理。您可以在repository参看当前可用版本。
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
Built Distribution
Close
Hashes for yyxx_game_pkg-2023.4.19.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95665f6e2d48bc3db7b88e60b5402ff95fba66fd36c94d6f5e4ef1ca280c9efd |
|
MD5 | 8c3b1f7603efa16236d98a48b4f1e0d8 |
|
BLAKE2b-256 | 4d0d4a29249bddbbd20b9d2b8ec4ae12d5d9588d88dbfd358f31ec9a84eb6d96 |
Close
Hashes for yyxx_game_pkg-2023.4.19.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba91d9dca1bbfe2c170306d65fe180db0e0e41a55a762f4445916ed6e59347d |
|
MD5 | e9cd999d4812e91db350f7bb25c75ff4 |
|
BLAKE2b-256 | 0ae8c5e320d54523af8630c1b7982cf72c0c16cabb9c4fe850118af3e27b7b2d |