Skip to main content

autoboot data starter

基于 autoboot 框架的扩展,用于支持数据层接入。

Version Python Downloads License

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

MIT License

Metadata

Release files for autoboot-data 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoboot-data 0.5.0
File Size Uploaded Provenance
autoboot_data-0.5.0.tar.gz 6.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for autoboot-data 0.5.0
File Interpreter ABI Platform
autoboot_data-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / autoboot_data-0.5.0.tar.gz

Download URL autoboot_data-0.5.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f3e525b9b43a253644e14ce6d21e7cba35cd945912b187b68f96906177f782c3
BLAKE2b-256 checksum
How to use checksums
644f07d3968a8839122f62a51c0e63685c94762d3ec6375be1eb89bdecd7356f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / autoboot_data-0.5.0-py3-none-any.whl

Download URL autoboot_data-0.5.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f80a44abbc82f6ff20a2d6f6d407ebbf6634ef97c93154935ebe118af671b39
BLAKE2b-256 checksum
How to use checksums
d8a7e76a9ebd065939039c30f5efd5692c4fbd23b25f081cbd97d1eab114da96
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for autoboot-data 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page