A Python package for interacting with the Gitea API, offering a simple interface to access repositories, users, organizations, issues, and more for automation and data management.
Project description
python-gitea
Note: This project is still in progress. The promised features are not fully ready yet, and APIs are subject to change.
A Python package for interacting with the Gitea API. This package provides a simple and intuitive interface to access Gitea repositories, users, organizations, issues, and more, enabling seamless integration with Gitea instances for automation, data retrieval, and management tasks.
Features
Full API Coverage: Access to repositories, users, organizations, issues, pull requests, and more.
- Easy Authentication: Support for token-based authentication.
- Asynchronous Support: Built with async/await for non-blocking operations.
- Type Hints: Full type annotations for better IDE support and code reliability.
- Comprehensive Documentation: Detailed guides and API reference.
- Command-Line Interface: Interact with the Gitea API directly from the terminal for quick, scriptable operations without writing code.
Installation
We recommend using uv to manage virtual environments for installing python-gitea.
If you don't have uv installed, you can install it with pip. See the project pages for more details:
- Install via pip:
pip install --upgrade pip && pip install uv - Project pages: uv on PyPI | uv on GitHub
- Full documentation and usage guide: uv docs
Requirements
- Python 3.10 or higher
- Operating System: Linux, macOS, or Windows
Install from PyPI
The recommended way to install python-gitea is from PyPI:
# Create a virtual environment (recommended with uv)
uv venv --python 3.10
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install python-gitea
Optional Dependencies
For development or specific features:
# Development dependencies (testing, linting, etc.)
uv pip install python-gitea[dev]
# Documentation dependencies
uv pip install python-gitea[docs]
# All dependencies
uv pip install python-gitea[dev,docs]
Install from Source
For the latest development version:
git clone git@github.com:isaac-cf-wong/python-gitea.git
cd python-gitea
# Create a virtual environment (recommended with uv)
uv venv --python 3.10
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install .
Development Installation
To set up for development:
git clone git@github.com:isaac-cf-wong/python-gitea.git
cd python-gitea
# Create a virtual environment (recommended with uv)
uv venv --python 3.10
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install ".[dev]"
# Install the commitlint dependencies
npm install
# Install pre-commit hooks
pre-commit install
pre-commit install --hook-type commit-msg
Verify Installation
Check that python-gitea is installed correctly:
gitea-cli --help
python -c "import gitea; print(gitea.__version__)"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For questions, issues, or contributions, please:
- Check the documentation
- Open an issue on GitHub
- Join our discussions
Changelog
See Release Notes for version history.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_gitea-0.5.0.tar.gz.
File metadata
- Download URL: python_gitea-0.5.0.tar.gz
- Upload date:
- Size: 52.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20ead47d478853da9584d3d58506e9ea494b207b3d20fc0e0d39320872f42efe
|
|
| MD5 |
83f1785c24ecba744f2b892f2b722c29
|
|
| BLAKE2b-256 |
01c8d19c2ddc7229cc385e8771e52913be6b785a55365a413a821a5b881178b1
|
Provenance
The following attestation bundles were made for python_gitea-0.5.0.tar.gz:
Publisher:
create_tag.yml on isaac-cf-wong/python-gitea
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_gitea-0.5.0.tar.gz -
Subject digest:
20ead47d478853da9584d3d58506e9ea494b207b3d20fc0e0d39320872f42efe - Sigstore transparency entry: 906985269
- Sigstore integration time:
-
Permalink:
isaac-cf-wong/python-gitea@6605942abd0394cb249cef688935cf71a7f2739d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/isaac-cf-wong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
create_tag.yml@6605942abd0394cb249cef688935cf71a7f2739d -
Trigger Event:
schedule
-
Statement type:
File details
Details for the file python_gitea-0.5.0-py3-none-any.whl.
File metadata
- Download URL: python_gitea-0.5.0-py3-none-any.whl
- Upload date:
- Size: 36.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
344b33db276a8df1a17989dc50104cf5389a158da61e0a7b6fe4be45ceba5315
|
|
| MD5 |
bf0c812f4022e3594088db3e21015f91
|
|
| BLAKE2b-256 |
9dc02e03c70adac930f48fb67b6f7b9bbb2ba97bf337f4e6143bcd302ad15475
|
Provenance
The following attestation bundles were made for python_gitea-0.5.0-py3-none-any.whl:
Publisher:
create_tag.yml on isaac-cf-wong/python-gitea
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_gitea-0.5.0-py3-none-any.whl -
Subject digest:
344b33db276a8df1a17989dc50104cf5389a158da61e0a7b6fe4be45ceba5315 - Sigstore transparency entry: 906985329
- Sigstore integration time:
-
Permalink:
isaac-cf-wong/python-gitea@6605942abd0394cb249cef688935cf71a7f2739d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/isaac-cf-wong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
create_tag.yml@6605942abd0394cb249cef688935cf71a7f2739d -
Trigger Event:
schedule
-
Statement type: