Metadata-Version: 2.1
Name: yyxx-game-pkg-dev
Version: 2023.3.28.1.dev1
Summary: yyxx game custom module
Home-page: https://github.com/yyxxgame/yyxxgame-pkg
License: MIT
Author: yyxx-game
Requires-Python: >=3.8,<4
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Requires-Dist: celery (>=5.2.7,<6.0.0)
Requires-Dist: dbutils (>=3.0.2,<4.0.0)
Requires-Dist: fastapi (>=0.94.0,<0.95.0)
Requires-Dist: line-profiler (>=4.0.3,<5.0.0)
Requires-Dist: opentelemetry-api (>=1.16.0,<2.0.0)
Requires-Dist: opentelemetry-exporter-jaeger (>=1.16.0,<2.0.0)
Requires-Dist: opentelemetry-instrumentation-celery (==0.37b0)
Requires-Dist: opentelemetry-instrumentation-fastapi (==0.37b.0)
Requires-Dist: opentelemetry-instrumentation-requests (>=0.37b0,<0.38)
Requires-Dist: opentelemetry-sdk (>=1.16.0,<2.0.0)
Requires-Dist: pandas (>=1.5.3,<2.0.0)
Requires-Dist: pika (>=1.3.1,<2.0.0)
Requires-Dist: pymysql (>=1.0.2,<2.0.0)
Requires-Dist: redis (>=4.5.1,<5.0.0)
Requires-Dist: requests (>=2.28.2,<3.0.0)
Requires-Dist: toml (>=0.10.2,<0.11.0)
Requires-Dist: ujson (>=5.7.0,<6.0.0)
Requires-Dist: uvicorn (>=0.21.0,<0.22.0)
Project-URL: Repository, https://github.com/yyxxgame/yyxxgame-pkg
Description-Content-Type: text/markdown



# YYXXGAME-PKG

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

<!-- PROJECT SHIELDS -->

[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]

<!-- PROJECT LOGO -->
<br />

<p align="center">
  <a href="https://github.com/yyxxgame/yyxxgame-pkg/">
    <img src="images/logo.png" alt="元游信息" width="120" height="120">
  </a>

  <h3 align="center">元游信息</h3>

</p>

 
## 目录

- [上手指南](#上手指南)
  - [环境配置](#环境配置)
  - [安装步骤](#安装步骤)
- [文件目录说明](#文件目录说明)
- [部署](#部署)
  - [develop](#develop)
  - [release](#release)
- [模块介绍](#模块介绍)
  - [xtrace](#xtrace)
  - [stat](#stat)
- [代码示例](#代码示例)
- [版本控制](#版本控制)

### 上手指南

###### 环境配置

1.环境安装python3.11以上版本

###### 安装步骤
1.Clone代码

```shell
git clone https://github.com/yyxxgame/yyxxgame-pkg.git
```

2.安装poetry
```shell
- curl -sSL https://install.python-poetry.org | python3
- export PATH="/root/.local/bin:$PATH"
```

3.配置虚拟环境并激活
```shell
- 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](https://pypi.org/project/yyxx-game-pkg-dev/)

###### release
新建`tag`并推送会触发github actions的正式版本构建并发布到[yyxx-game-pkg](https://pypi.org/project/yyxx-game-pkg/)

### 模块介绍
yyxxgame-pkg包含以下模块：

###### xtrace
`xtrace` 模块封装了链路追踪的帮助类，可以帮助开发人员快速地实现链路追踪功能。

###### stat
`stat`模块包含yyxxgame内部统计业务的底层框架，目前包含`dispatch`、`submit`、`xcelery几个模块`

### 代码示例
参考[test](https://github.com/yyxxgame/yyxxgame-pkg/tree/master/tests) 中的调用例子

### 版本控制

该项目使用Git进行版本管理。您可以在repository参看当前可用版本。


<!-- links -->
[your-project-path]:yyxxgame/yyxxgame-pkg
[contributors-shield]: https://img.shields.io/github/contributors/yyxxgame/yyxxgame-pkg.svg?style=flat-square
[contributors-url]: https://github.com/yyxxgame/yyxxgame-pkg/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/yyxxgame/yyxxgame-pkg.svg?style=flat-square
[forks-url]: https://github.com/yyxxgame/yyxxgame-pkg/network/members
[stars-shield]: https://img.shields.io/github/stars/yyxxgame/yyxxgame-pkg.svg?style=flat-square
[stars-url]: https://github.com/yyxxgame/yyxxgame-pkg/stargazers
[issues-shield]: https://img.shields.io/github/issues/yyxxgame/yyxxgame-pkg.svg?style=flat-square
[issues-url]: https://img.shields.io/github/issues/yyxxgame/yyxxgame-pkg.svg
[license-shield]: https://img.shields.io/github/license/yyxxgame/yyxxgame-pkg.svg?style=flat-square
[license-url]: https://github.com/yyxxgame/yyxxgame-pkg/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555





