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 插件

灵感来源

MoeFactory 提供的查询 API

数据来源

💰 赞助

赞助我

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

📝 更新日志

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_cnrail-0.4.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_cnrail-0.4.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_cnrail-0.4.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_cnrail-0.4.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}

File hashes

Hashes for nonebot_plugin_cnrail-0.4.0.tar.gz
Algorithm Hash digest
SHA256 70a864786681377fba3db8e1372afa18ee4547986bad6da144627e6b90dd0a16
MD5 038b88fdd5b73d98eeaa163bd585e294
BLAKE2b-256 6fc8355a0a939fa9517b5e3d917103f7d413ada28f09dd74fd3c3d43b32fd921

See more details on using hashes here.

File details

Details for the file nonebot_plugin_cnrail-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_cnrail-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}

File hashes

Hashes for nonebot_plugin_cnrail-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c92de90326fc9099e79e12127230ae0627646fa2b5d3d869e3a22e70a2b6c4d
MD5 429ea4ad60014911bf8d3fe4498e3da6
BLAKE2b-256 b1a24ef457cf1b44e577d5d99978a69702755527dc6e6fda9b563146f702a2a0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.1

2 files

This release

0.4.0 This release

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2.post1

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.7.post1

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2.post1

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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