Metadata-Version: 2.1
Name: wisdoms-dapr
Version: 0.0.7
Summary: wisdoms dapr package
Home-page: https://github.com/li1234yun/nameko-wrapper
Author: li1234yun
Author-email: li1234yun@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: elasticsearch-dsl
Requires-Dist: redis
Requires-Dist: pydantic

# Wisdoms Dapr

用于Dapr FastAPI微服务开发的工具包。

## 包目录结构

- elasticsearch ES代码抽象
- config.py 项目配置管理
- exceptions.py 统一的异常管理
- logger.py 自定义日志
- constants.py 共享常量
- shares 共享内容
  - data 共享数据，包含国内省市区行政区划信息
  - es_models 包含了常用的共享企业信息
  - schemas 包含了常用的共享企业信息schema
  - types 常用的类型定义
  - constants 共享常量

## 项目发布

### **发布环境**

> pip install build pip setuptools wheel twine

### **构建pip包**

> python3 -m build

步骤：

1. 切换到打包根目录

2. 执行build命令

3. 检查是否成功构建至dist目录

### **测试pip包**

> pip install dist/*.whl

### **发布pip包**

> twine upload dist/*

## TODO

- [ ] 验证pydantic过滤效果
- [ ] 查看不同定义对fastAPI文档的影响


