Skip to main content
NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-CNRail

✨ 12306 列车时刻表查询插件 ✨

python pdm-managed wakatime
Pydantic Version 1 Or 2 license pypi pypi download
NoneBot Registry Supported Adapters

💿 安装

以下提到的方法 任选其一 即可

[推荐] 使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-cnrail
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-cnrail
pdm
pdm add nonebot-plugin-cnrail
poetry
poetry add nonebot-plugin-cnrail
conda
conda install nonebot-plugin-cnrail

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分的 plugins 项里追加写入

[tool.nonebot]
plugins = [
    # ...
    "nonebot_plugin_cnrail"
]

⚙️ 配置

配置项 必填 默认值 说明
CNRAIL_ACG_IMAGE_URL 否 https://www.loliapi.com/acg/pe/ 用于指令返回图片背景的图片 URL

🎉 使用

使用指令 train -h 查看帮助

效果图

效果图

📞 联系

QQ:3076823485
Telegram:@lgc2333
吹水群:168603371
邮箱:lgc2333@126.com

💡 鸣谢

海兰德小助手 & Train-QQBot 插件

灵感来源

RailGo 数据服务

数据来源

💰 赞助

赞助我

感谢大家的赞助!你们的赞助将是我继续创作的动力!

📝 更新日志

0.4.1

  • 改用 RailGo 提供的数据

0.4.0

  • drop htmlrender v0.8 适配,仅兼容 v0.7 与 v0.6
  • 动态取色移至 Python 侧,删除 js 构建步骤

0.3.2

  • bump htmlrender 到 v0.8

0.3.1

  • 修复 MoeFactory API 调用错误

0.3.0

  • 图片换用 Material Design 风格的莫奈(Monet)取色方案
  • 修复 API 请求

0.2.3

  • 更换上游 API 域名

0.2.2

0.2.1

0.2.0

  • 适配 Pydantic V1 & V2
  • 样式微调

0.1.7

  • 添加车组号显示(无法显示未来日期的车组号信息)
  • bug fix

0.1.6

  • 添加担当路局显示 & 改次列车查询

0.1.5

  • 修复 -h 参数无效的问题

0.1.4

  • 现在缺少参数会提示了

0.1.3

0.1.2

  • 支持选择日期查询(日期范围为前二日 ~ 后十四日)

0.1.1

  • 修复查询到多个车次不会提示的问题

0.1.0

  • 🎉 Create this project

Metadata

Release files for nonebot-plugin-cnrail 0.4.2

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

Source distribution (sdist)

Source distribution for nonebot-plugin-cnrail 0.4.2
File Size Uploaded
nonebot_plugin_cnrail-0.4.2.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-cnrail 0.4.2
File Interpreter ABI Platform
nonebot_plugin_cnrail-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / nonebot_plugin_cnrail-0.4.2.tar.gz

Download URL nonebot_plugin_cnrail-0.4.2.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5a8c3f04517061c35700f4ae62f09064369587727403211045b3233dac2b5207
BLAKE2b-256 checksum
How to use checksums
80700333eb7e845718fb2764f010bfc52b1392036b9c2acdb47c426d8317d1d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nonebot_plugin_cnrail-0.4.2-py3-none-any.whl

Download URL nonebot_plugin_cnrail-0.4.2-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73a5857d757ef5e5614e7aeec5368e24c77f695f6c22efc24587c040af70f98c
BLAKE2b-256 checksum
How to use checksums
c39fda039598521bf7d67c44b66180cdd7487fdafbe3dd4a9c227e5f4e36227e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
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