Skip to main content

yyxx game custom module

Project description

YYXXGAME-PKG

yyxx-game-pkg 是一个专门为元游公司后台开发的 Python 内部接口集合。

Contributors Forks Stargazers Issues MIT License


元游信息

元游信息

目录

上手指南

环境配置

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内部统计业务的底层框架,目前包含dispatchsubmitxcelery几个模块

代码示例

参考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

yyxx_game_pkg-2023.4.26.1.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

yyxx_game_pkg-2023.4.26.1-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

Details for the file yyxx_game_pkg-2023.4.26.1.tar.gz.

File metadata

  • Download URL: yyxx_game_pkg-2023.4.26.1.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1035-azure

File hashes

Hashes for yyxx_game_pkg-2023.4.26.1.tar.gz
Algorithm Hash digest
SHA256 0459b66d78ea72e1e90ee89ac30e498aa29e84edd46044bb94f69a66cd6ed4af
MD5 a1d4b60eb634de1670f8d51126b325a6
BLAKE2b-256 8f493e1cb0bcf064574a31b7812812e6a1d53cc08a74e92c8a7fde29c181aab5

See more details on using hashes here.

File details

Details for the file yyxx_game_pkg-2023.4.26.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yyxx_game_pkg-2023.4.26.1-py3-none-any.whl
Algorithm Hash digest
SHA256 258ffd510fd849b4d26939697207b8353be5ca13d147c4fdbe956d6879176420
MD5 f67846c5451ff6593e65aa9e853fe8b0
BLAKE2b-256 149f2aa07eace7468bbf0c66fcae0ebfa3ca0931527e8a6a0d34cde9a31bed3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page