Skip to main content

API and MCP server for NJUPT infomation ~

Project description

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。

Project details


Download files

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

Source Distribution

njupt_suan_api-0.1.5.tar.gz (50.0 MB view details)

Uploaded Source

Built Distribution

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

njupt_suan_api-0.1.5-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file njupt_suan_api-0.1.5.tar.gz.

File metadata

  • Download URL: njupt_suan_api-0.1.5.tar.gz
  • Upload date:
  • Size: 50.0 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for njupt_suan_api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d7d0e46816c1872c4e46fca5af2c23788c425e121e3034907cd42c8d2dc82b92
MD5 1b8b273d477268da571b4193baef2cb9
BLAKE2b-256 13553841da25a2c7ef43ff89a6ceacbd29cc0ca80fac1842ed65e851d3cf3388

See more details on using hashes here.

File details

Details for the file njupt_suan_api-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: njupt_suan_api-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for njupt_suan_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 033dd9ce503fdb0b2335e0ec4378b012428a7dab45f3dbe8fc0ee167863ae139
MD5 ed414ccbfdc39fc12f0fc1849343bc00
BLAKE2b-256 aa3eb84620f54e38769de7e93b91a1b7ff6647ff6d2c00185456651041ee5384

See more details on using hashes here.

Supported by

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