GitCode API documentation

Python SDK and curated REST reference

This documentation combines two complementary resources: a Python SDK for building applications against GitCode, and a REST API reference derived from GitCode’s public English help content—manually corrected and extended here—so you can read endpoints alongside client usage.

Why this project

  • Community-maintained Python SDK for the GitCode REST API: less boilerplate than spelling out raw httpx requests for each endpoint you use.

  • Synchronous and asynchronous httpx clients with a matching API surface (GitCode / AsyncGitCode).

  • Resource-oriented entry points (client.repos, client.pulls, client.issues, and others), with optional default owner= / repo= on the client when you mostly work inside one repository.

  • Higher-level helpers where they matter—for example issue and pull request template discovery on the issues and pulls resource groups, and as_dict to coerce response models to dict or list[dict] (similar in spirit to dataclasses.asdict()).

  • Single documentation tree Sphinx SDK reference sits beside a curated REST mirror: clarified, cross-linked, and corrected rather than treated as a bulk export of upstream help pages.

  • Optional agent integrations OpenAI-style tools, MCP (FastMCP), and openJiuwen integration; see LLM tools: OpenAI, MCP, and openJiuwen.