forgejo-sdk
Python SDK wrapping the Forgejo REST API via httpx.
API Reference
swagger.v1.json is the full OpenAPI spec from the live Forgejo instance (v14.0.2, 304 endpoints). Use it as the source of truth for endpoint paths, parameters, and response shapes.
Priority Endpoints
The SDK should cover these first (what agents actually use):
Issues
POST /api/v1/repos/{owner}/{repo}/issues— create issueGET /api/v1/repos/{owner}/{repo}/issues/{index}— get issueGET /api/v1/repos/{owner}/{repo}/issues— list issuesPOST /api/v1/repos/{owner}/{repo}/issues/{index}/comments— comment (works for PRs too)
Pull Requests
POST /api/v1/repos/{owner}/{repo}/pulls— create PRGET /api/v1/repos/{owner}/{repo}/pulls— list PRsGET /api/v1/repos/{owner}/{repo}/pulls/{index}— get PR detailsPOST /api/v1/repos/{owner}/{repo}/pulls/{index}/merge— merge PR (body:{"Do":"squash"})GET /api/v1/repos/{owner}/{repo}/pulls/{index}.diff— get PR diff (also available at web URL without auth)
Repos
GET /api/v1/repos/{owner}/{repo}— get repoGET /api/v1/user/repos— list user's reposGET /api/v1/repos/{owner}/{repo}/branches— list branches
Auth
HTTP Basic Auth: ForgejoClient(base_url, username, password).
Pattern
Same as ldraney/notion-sdk — pure httpx wrapper, no MCP dependency. The MCP layer (ldraney/forgejo-mcp) wraps this SDK.
Metadata
Release files for ldraney-forgejo-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ldraney_forgejo_sdk-0.1.0.tar.gz | 165.6 kB | Without provenance | Details for ldraney_forgejo_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ldraney_forgejo_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ldraney_forgejo_sdk-0.1.0-py3-none-any.whl |
Total release size: 193.3 kB
Release files / ldraney_forgejo_sdk-0.1.0.tar.gz
| Download URL | ldraney_forgejo_sdk-0.1.0.tar.gz |
|---|---|
| Size | 165.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99119814e5834f9db58f3f2fa2faad001884ab9ba2366c73c5abc67a9032ad39
|
|
BLAKE2b-256 checksum How to use checksums |
a1f40ef7482b4ebaf092307784ff190d89265ef4fa3ab330bf976a1abda7c062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ldraney_forgejo_sdk-0.1.0-py3-none-any.whl
| Download URL | ldraney_forgejo_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
577f553238be280be668bfd33a9e633485ec1a5f819075a6ef8dd11aa8147ea2
|
|
BLAKE2b-256 checksum How to use checksums |
af1d8fc9a10d90e7ce2afc233949049d928f388149a1373a1cdb0f5e1fd0a245
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for ldraney-forgejo-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.