# 简介

> hdu-api: A simple SDK for HDU.

![](https://img.shields.io/pypi/v/hdu-api.svg?style=flat) ![](https://img.shields.io/pypi/pyversions/hdu-api.svg?style=flat) ![](https://img.shields.io/pypi/l/hdu-api.svg?style=flat)

```
      ___          ___          ___          ___                             
     /  /\        /  /\        /  /\        /  /\         ___          ___   
    /  /:/       /  /::\      /  /:/       /  /::\       /  /\        /__/\  
   /  /:/       /  /:/\:\    /  /:/       /  /:/\:\     /  /::\       \__\:\ 
  /  /::\ ___  /  /:/  \:\  /  /:/       /  /::\ \:\   /  /:/\:\      /  /::\
 /__/:/\:\  /\/__/:/ \__\:|/__/:/     /\/__/:/\:\_\:\ /  /::\ \:\  __/  /:/\/
 \__\/  \:\/:/\  \:\ /  /:/\  \:\    /:/\__\/  \:\/://__/:/\:\_\:\/__/\/:/~~ 
      \__\::/  \  \:\  /:/  \  \:\  /:/      \__\::/ \__\/  \:\/:/\  \::/    
      /  /:/    \  \:\/:/    \  \:\/:/       /  /:/       \  \::/  \  \:\    
     /__/:/      \__\::/      \  \::/       /__/:/         \__\/    \__\/    
     \__\/           ~~        \__\/        \__\/
```

hdu-api 是一个集结 HDU 所有教务管理服务的 SDK，提供了一卡通服务、考试、课表、选课和一些公共信息如空闲教室、上课时间等信息的 API。 hdu-api 主要基于 Requests 库和 Beautiful Soup 库写成。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liuxingran.gitbook.io/hdu-api/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
