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.4.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.4-py3-none-any.whl (567.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: njupt_suan_api-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 04fd917e747362c8dd24d15850bd75adf54613ea326e88939eb773a026ef1c0f
MD5 3dc939abf35daa6f567c16419c9f6633
BLAKE2b-256 a8d574a92507fc77d7f683726af50e30062384c7af5747c7902b486000e209e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: njupt_suan_api-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 567.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2a630f62554c5c2915989f33b330a6e4aec0c9b9561aa225cc3dc9c38c0e0e1d
MD5 4045e25faf024d7ae655e92647162973
BLAKE2b-256 aa10797cfa8b72ed6730b5c6f59cafc17664e2869dd2d5c1d5f1ba8c5c942f71

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