Python工具集,包含飞书API和日志工具
Project description
zdpytools
Python工具集,提供日志和飞书API集成功能。
功能
- 日志工具:基于loguru的简单易用的日志模块
- 飞书API:飞书开放平台API的封装,支持多维表格操作
安装
pip install zdpytools
使用示例
日志工具
from zdpytools.utils.log import logger
logger.info("这是一条信息日志")
logger.error("这是一条错误日志")
飞书API
import asyncio
from zdpytools.feishu import Feishu
async def example():
fs = Feishu(app_id="你的飞书应用ID", app_secret="你的飞书应用密钥")
try:
# 查询多维表格记录
result = await fs.bitable_records_search("app_token", "table_id")
print(result)
finally:
await fs.close()
asyncio.run(example())
许可证
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zdpytools-0.1.0.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zdpytools-0.1.0.tar.gz.
File metadata
- Download URL: zdpytools-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcfdc3069a931d69fc9cd20d237a9ca5b2f84c9762bfd97b9c266da2c7666d4f
|
|
| MD5 |
796e3e64879c0b7a536ee7ec77f319a0
|
|
| BLAKE2b-256 |
274a04bcd52ab44da15a17b644ba6fdf6f215669ef3212b7c137e58d6bbdc2b1
|
File details
Details for the file zdpytools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zdpytools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65fae283d509eab9bedbfbe2de1f8708da15ce3643fede8762ff70295adbb55c
|
|
| MD5 |
ab04b286a506ed647b6c8f6108cf1d52
|
|
| BLAKE2b-256 |
d199d081d4e522b63519f713b3d7256f4659212dc9ab3a95ded120ce7e50e52c
|