Skip to main content

NJUPT Suan API

NJUPT Suan API 是一个 FastAPI 项目,目标在于实现对 NJUPT(南京邮电大学)的信息获取 API 和 MCP 服务。

在 pyproject.toml 中,本项目的包名,以及命令行入口名为 njupt-suan-api。

文档

虽然项目还没个两样,但是文档其实也没个两样 (什么东西)

中文名叫芒果酸 - suan.mangofanfan.cn

功能

计划功能(芒果画饼中) 支持进度
教务系统 - 课程表获取 ✅
教务系统 - 课程获取 ⌛️
教务系统 - 成绩获取 ⌛️
教务系统 - 课程表 - 日历订阅 ⌛️
体育部系统 - 早锻炼获取 ❌
优化待办 支持进度
自定义课程表 CSS 样式 ⌛️
生成的静态资源有效期管理 ⌛️

运行

建议查阅文档了解更多部署方式。

如需从源代码直接运行的话,项目的源码位于 src/njupt_suan_api 目录下,main.py 是旧的入口文件,可以直接传统方式启动。

manage.py 是命令行入口,提供了完整的帮助信息。

server.py 是 FastAPI app 所在文件,可以使用 uvicorn 命令启动。

另外如需从源代码启动项目,你需要自行构建 WebUI。

cd webui/
pnpm install
pnpm run build

AI 说 npm install 然后 npm run build 也可以,但我还没试过,你可以帮我试试(?)

vite 的构建产物会放在 src/njupt_suan_api/static 目录下,构建产物不会被 git 管理,但是会被项目打包进 wheel。

Metadata

Release files for njupt-suan-api 0.1.5

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

Source distribution (sdist)

Source distribution for njupt-suan-api 0.1.5
File Size Uploaded Provenance
njupt_suan_api-0.1.5.tar.gz 50.0 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for njupt-suan-api 0.1.5
File Interpreter ABI Platform
njupt_suan_api-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 51.0 MB

Release files / njupt_suan_api-0.1.5.tar.gz

Download URL njupt_suan_api-0.1.5.tar.gz
Size 50.0 MB
Tags Source
SHA-256 checksum
How to use checksums
d7d0e46816c1872c4e46fca5af2c23788c425e121e3034907cd42c8d2dc82b92
BLAKE2b-256 checksum
How to use checksums
13553841da25a2c7ef43ff89a6ceacbd29cc0ca80fac1842ed65e851d3cf3388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / njupt_suan_api-0.1.5-py3-none-any.whl

Download URL njupt_suan_api-0.1.5-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
033dd9ce503fdb0b2335e0ec4378b012428a7dab45f3dbe8fc0ee167863ae139
BLAKE2b-256 checksum
How to use checksums
aa3eb84620f54e38769de7e93b91a1b7ff6647ff6d2c00185456651041ee5384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for njupt-suan-api 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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