Metadata-Version: 2.1
Name: simmed
Version: 0.2.8
Summary: 微服务基础框架
Home-page: https://simmed.cn
Author: weizw,lijunhua,zhaoyun
Author-email: weizw <weizhuwang@simmed.cn>, defa <lijunnhua@simmed.cn>, zhaoyun <zhaoyun@simmed.cn>
License: Copyright (C) 2022 SimMed
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://simmed.cn
Project-URL: Bug Tracker, https://simmed.cn
Keywords: simmed
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8, <4
Description-Content-Type: text/markdown
License-File: LICENSE

# TD SDK Core Python

基于 Python3 核心框架，集成 flask，nacos，zip

## 更新依赖

```
pipreqs ./ --encoding utf-8  --force
```

## 安装依赖

```
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/  --trusted-host  mirrors.aliyun.com
```

## 制作包

```
# 构建
python setup.py build

# 直接源码安装
python setup.py install

# 打包dist, zip或tar.gz
python setup.py sdist

# 打包whl
python setup.py bdist_wheel
```

## 上传到 PyPi

```
python3 -m twine upload dist/*

# windows下使用以下命令上传
twine upload dist/*
```

## 上传包

`https://packages.simmed.cn/#browse/upload:pypi`

## 安装包

```
pip install simmed

# 环境依赖,注意python版本
yum install python3-devel -y

# 加速
pip install xxxx -i https://pypi.tuna.tsinghua.edu.cn/simple
```

## 引用包

```
import simmed.config as config
from simmed.simmed_core import init_flask_app, set_zipkin_tags, get_config, rpc_rest_service, log
```
