Skip to main content
ErisPulse-GitHubParser

ErisPulse-GitHubParser

GitHub 链接解析模块 / GitHub link parsing module

PyPI Python License ErisPulse

English | 简体中文


English

A GitHub link parsing module for ErisPulse. When a message contains a github.com link, it automatically parses the link and replies with a card image rendered by ErisPulse-Takumi. If Takumi is unavailable or the platform does not support images, it falls back to plain text.

What it parses

Link Output
github.com/<user> User card
github.com/<owner>/<repo> Repository card
github.com/<owner>/<repo>/issues/<n> Issue card (with latest comments)
github.com/<owner>/<repo>/pull/<n> PR card (with latest comments)
github.com/<owner>/<repo>/commits Recent commits card

Extra cards via commands: contribution heatmap (/gh heat), language pie (/gh langs).

Screenshots

demo

Install

epsdk install GitHubParser
epsdk install Takumi    # optional, image rendering; without it → text only

Commands

Command Description
/gh Status + help
/gh on / /gh off Toggle passive parsing
/gh image on / /gh image off Toggle image output
/gh rate GitHub API quota
/gh heat <user> Contribution heatmap
/gh langs <owner>/<repo> Language pie chart

Config

Auto-generated on first load:

[GitHubParser]
token = ""            # GitHub token (optional; 5000/h instead of 60/h)
theme = "auto"        # auto / light / dark
auto_parse = true     # passive parsing
image_enabled = true  # image output
issue_comments = true # comments on Issue/PR cards

HTTP API

GET /GitHubParser/card?url=<link> returns the card image (PNG) for a link.


简体中文

ErisPulse 的 GitHub 链接解析模块。消息里出现 github.com 链接时,自动解析并回复一张由 ErisPulse-Takumi 渲染的卡片图片;Takumi 不可用或平台不支持图片时,自动降级为纯文本。

能解析什么

链接 输出
github.com/<用户> 用户卡片
github.com/<o>/<r> 仓库卡片
github.com/<o>/<r>/issues/<n> Issue 卡片(带最新评论)
github.com/<o>/<r>/pull/<n> PR 卡片(带最新评论)
github.com/<o>/<r>/commits 最近提交卡片

另有两个命令触发额外卡片:贡献热力图(/gh heat)、语言占比饼图(/gh langs)。

截图

demo

安装

epsdk install GitHubParser
epsdk install Takumi    # 可选,图片渲染;不装则纯文本

命令

命令 说明
/gh 状态 + 帮助
/gh on / /gh off 开关被动解析
/gh image on / /gh image off 开关图片输出
/gh rate 查 GitHub API 余额
/gh heat <用户名> 贡献热力图
/gh langs <o>/<r> 语言占比饼图

配置

首次加载自动生成,按需修改:

[GitHubParser]
token = ""            # GitHub Token(可选,5000/h 替代 60/h)
theme = "auto"        # auto / light / dark
auto_parse = true     # 被动解析
image_enabled = true  # 图片输出
issue_comments = true # Issue/PR 卡片带评论

HTTP API

GET /GitHubParser/card?url=<链接> 返回该链接对应的卡片图片(PNG)。


Related · ErisPulse · ErisPulse-Takumi · Issues

Download files

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

Source Distribution

erispulse_githubparser-3.0.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

erispulse_githubparser-3.0.0-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file erispulse_githubparser-3.0.0.tar.gz.

File metadata

  • Download URL: erispulse_githubparser-3.0.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for erispulse_githubparser-3.0.0.tar.gz
Algorithm Hash digest
SHA256 69258c44a0d3a3bf0fbf298f1d80ce502cddc96ce5b6127ca006724dd86e596f
MD5 d92d6292be9216676013f225799efeeb
BLAKE2b-256 399a733de69cad83b037149cbae7bf54fa10441ba19194dd155f387de05b4184

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_githubparser-3.0.0.tar.gz:

Publisher: python-publish.yml on wsu2059q/ErisPulse-GitHubParser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file erispulse_githubparser-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for erispulse_githubparser-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b5724a2664575f7b4f19b1f22b4d3dafab456de9726e0bd39c6f69bfc312e97
MD5 d4772825cbef040b4d6372a5d9ef8908
BLAKE2b-256 fdb150ebd965701ffd53ea42ed574c1b46b292b42517254a3c9b49568504d4aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_githubparser-3.0.0-py3-none-any.whl:

Publisher: python-publish.yml on wsu2059q/ErisPulse-GitHubParser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 files

2.0.1

2 files

2.0.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page