像操作API一样设置定时任务&计划任务
Project description
📖 介绍
通过NoneBot的FastAPI服务器来提供API,使得您能够对定时任务&计划任务进行增删改查。同时也提供了一个简易的WebUI
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行首先安装前置依赖nonebot_plugin_apscheduler
nb plugin install nonebot_plugin_apscheduler
接下来安装本插件
nb plugin install nonebot_plugin_api-scheduler
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
首先安装前置依赖nonebot_plugin_apschedulerpip install nonebot_plugin_apscheduler
接下来安装本插件
pip install nonebot_plugin_api-scheduler
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| fastapi_docs_url = "/doc" | 否 | 无 | 设置fastapi文档地址 |
使用方法
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
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 nonebot_plugin_api_scheduler-1.0.6.tar.gz.
File metadata
- Download URL: nonebot_plugin_api_scheduler-1.0.6.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
946bb9f036f8bad1e7e2297e2c1b18cd3fda5a3d5cb147dfdcab8c80f9d7f40f
|
|
| MD5 |
704e7a97f192d8ab4ea1eab3b586dc00
|
|
| BLAKE2b-256 |
b884cece4671c7c59e7309a12fe64b8cb3433ccb23314f8d23995f2a916045a8
|
File details
Details for the file nonebot_plugin_api_scheduler-1.0.6-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_api_scheduler-1.0.6-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cfc051b8671f925028778327f50b164223235ec3d31a6845a0328fc1eee44da
|
|
| MD5 |
9da5fc73b3220752030a62b86e1cf76a
|
|
| BLAKE2b-256 |
929490caf6e5aac85c2ad8374dc31963753d9ae2eb86e728d5b66d28fb990c39
|