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

功能

计划功能(芒果画饼中) 支持进度
教务系统 - 课程表获取
教务系统 - 课程获取 ⌛️
教务系统 - 成绩获取 ⌛️
体育部系统 - 早锻炼获取 ⌛️(等待体育部系统修复)

运行

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

如需从源代码直接运行的话,项目的源码位于 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.3.tar.gz (49.6 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.3-py3-none-any.whl (566.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: njupt_suan_api-0.1.3.tar.gz
  • Upload date:
  • Size: 49.6 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.3.tar.gz
Algorithm Hash digest
SHA256 dfbd5ee5b5601fb0ba8956f114f5d8958751f2cdac6a37ec827b0b210da97c54
MD5 cd6325ed9498ae01044c538b12d3b5f8
BLAKE2b-256 83e0723de63d381abe083235f80336e69e33ccef47f2449aed059a6fdcd9aab8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: njupt_suan_api-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 566.4 kB
  • 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8e1e084e45073489e43da853a2e995d5bcbd71899635bfe71f29aef02bff17
MD5 37aaaf6dc2fe425675e52410f3488b49
BLAKE2b-256 346f32b27c7620e92fd5e42e29c8d516c71ce0b95f8813182ef193ba0b043bb1

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