Data access build with autoboot
Project description
autoboot data starter
基于 autoboot 框架的扩展,用于支持数据层接入。
Quick Start
Install
pip install autoboot-web
Usage
配置
- 启动配置文件
.env
# 环境名称(默认值:dev,框架根据这个配置项来加载当前的环境配置)
ENV_NAME=dev
APPLICATION_NAME=data-runner
- 环境配置文件
.env.dev
APPLICATION_NAME=data-runner-dev
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
- 主配置文件
autoboot.yaml
autoboot:
application:
name: !env APPLICATION_NAME
module: api
data:
redis:
host: !env REDIS_HOST
port: !env REDIS_PORT
创建并启动容器
from autoboot import AutoBoot, AutoBootConfig
from autoboot_data import redis
context = AutoBoot(AutoBootConfig(config_dir="."))
context.run()
r = redis.connection()
AutoBoot.logger.info(r.ping())
Contributors
有问题可以在issues开话题讨论,如果你有新的想法,创建新的feat
或pref
分支并提交PR。
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autoboot_data-0.5.0.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file autoboot_data-0.5.0.tar.gz
.
File metadata
- Download URL: autoboot_data-0.5.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e525b9b43a253644e14ce6d21e7cba35cd945912b187b68f96906177f782c3 |
|
MD5 | 622ae63daf1837271abdb51d7ef9e037 |
|
BLAKE2b-256 | 644f07d3968a8839122f62a51c0e63685c94762d3ec6375be1eb89bdecd7356f |
File details
Details for the file autoboot_data-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: autoboot_data-0.5.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f80a44abbc82f6ff20a2d6f6d407ebbf6634ef97c93154935ebe118af671b39 |
|
MD5 | 4162a690ad87e041315cee53cb199156 |
|
BLAKE2b-256 | d8a7e76a9ebd065939039c30f5efd5692c4fbd23b25f081cbd97d1eab114da96 |