qbkj/pypi/: qbtools-0.4.0 metadata and description

Simple index

常用工具集

author bodecontrol
author_email bodecontrol-team@sdqbtech.com
classifiers
  • License :: Other/Proprietary License
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
description_content_type text/markdown
license LICENSE
requires_dist
  • loguru (>=0.7.3,<0.8.0)
  • django (>=5.2,<6.0)
  • apscheduler (>=3.11.0,<4.0.0)
  • django-redis (>=6.0.0,<7.0.0)
  • matplotlib (>=3.10.6,<4.0.0)
  • psutil (>=7.0.0,<8.0.0)
  • stackprinter (>=0.2.12,<0.3.0)
requires_python >=3.12,<4.0

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
qbtools-0.4.0-py3-none-any.whl
Size
63 KB
Type
Python Wheel
Python
3
qbtools-0.4.0.tar.gz
Size
45 KB
Type
Source

qbtools · 青博科技常用工具集

面向青博科技内部项目的 Python 工具库,封装了时间处理、任务调度、Django 辅助、数据类转换、日志、工业协议(MQTT / OPC)等常用能力,开箱即用,减少重复造轮子。

环境要求

安装

在本地源码目录安装(推荐使用虚拟环境):

pip install .
# 或
pip install -e .   # 开发模式

使用 Poetry:

poetry install

快速开始

from dataclasses import dataclass
from qbtools import app_now_time, random_string
from qbtools.datacls import from_dict

print(app_now_time())                 # 统一时区/可模拟的当前时间
print(random_string(16, alphabet='hex'))

@dataclass
class User:
    name: str
    tags: list[str] | None = None

user = from_dict(User, {"name": "qb", "tags": ["iot", "ai"]})
print(user)

模块速览与示例

工具详解

运行/调试建议

许可

本项目为青博科技内部工具,版权归青博科技所有。