semvec/pypi-packages huggingface dataset:
xiaoapi-redis 0.0.3
xiaoapi redis
License: MIT
Requires Python: >=3.8
Keywords: xiaoapi, fastapi, web-framework, redis

# xiaoapi-redis
[xiaoapi](https://github.com/xiaojinlii/xiaoapi)的redis扩展包


## 安装
```
pip install xiaoapi-redis
```


## 配置
需要在 application/settings 中 添加以下配置：
```python
# Redis 数据库配置
# 格式："redis://:密码@地址:端口/数据库名称"
REDIS_DB_ENABLE = False
REDIS_DB_URL = "redis://:123456@177.8.0.5:6379/1"
```

然后在 application/settings 中的 EVENTS 里引入 xiaoapi_redis
```python
EVENTS = [
    "xiaoapi_redis.connect_redis",
]
```
xiaoapi-mongodb 0.0.3
xiaoapi mongodb
License: MIT
Requires Python: >=3.8
Keywords: xiaoapi, fastapi, web-framework, mongodb

# xiaoapi-mongodb
[xiaoapi](https://github.com/xiaojinlii/xiaoapi)的mongodb扩展包


## 安装
```
pip install xiaoapi-mongodb
```


## 配置
需要在 application/settings 中 添加以下配置：
```python
# MongoDB 数据库配置
# 格式：mongodb://用户名:密码@地址:端口/?authSource=数据库名称
MONGO_DB_ENABLE = False
MONGO_DB_NAME = "fastapi"
MONGO_DB_URL = f"mongodb://admin:123456@177.8.0.6:27017/?authSource={MONGO_DB_NAME}"
```

然后在 application/settings 中的 EVENTS 里引入 xiaoapi_mongodb
```python
EVENTS = [
    "xiaoapi_mongodb.connect_mongo",
]
```