zrepo-helper
A thin Python client for the Zoho Repository (zrepo) REST API.
Installation
pip install zrepo-helper
Or with your internal package index:
pip install --index-url https://your-registry/simple zrepo-helper
Quick Start
from zrepo_helper import ZRepoClient, ZRepoConfig
# Initialize with default config (uses env vars)
client = ZRepoClient()
# Get all merge requests
mrs = client.get_merge_requests()
# Get specific merge request
mr = client.get_merge_request_info(mr_id=123)
# Create a merge request
payload = {
"title": "My MR",
"source_branch": "feature/new-thing",
"target_branch": "main"
}
result = client.create_merge_request(payload)
Configuration
The client reads from environment variables:
ZREPO_BASE_URL: zrepo API base URLZREPO_TOKEN: API token for authentication
Or configure manually:
from zrepo_helper import ZRepoClient, ZRepoConfig
config = ZRepoConfig(
base_url="https://zrepo.example.com/api",
token="your-token"
)
client = ZRepoClient(config=config)
API Methods
Merge Requests
get_merge_requests(**params)- List all merge requestsget_merge_request_info(mr_id)- Get specific MR detailsget_merge_request_diff(mr_id, **params)- Get MR diffcreate_merge_request(payload)- Create new MRupdate_merge_request_state(mr_id, state, payload=None)- Change MR state (open|merge|close)edit_merge_request(mr_id, payload)- Update MR detailsget_merge_request_codeowners(mr_id)- Get code owners for MRget_merge_request_commits(mr_id, **params)- List MR commitsreview_merge_request(mr_id, status)- Review MR (reviewed|pending)get_mr_versions(mr_id)- Get MR version historymark_file_read(mr_id, payload, read=True)- Mark file as read/unread
Comments
add_comment(target_type, target_id, comment)- Add commentget_merge_request_comments(mr_id, **params)- List MR commentsget_commit_comments(revision, **params)- List commit commentsupdate_comment(comment_id, payload)- Update commentresolve_comment(comment_id)- Resolve comment
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zrepo_helper-0.1.0.tar.gz
(3.9 kB
view details)
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 zrepo_helper-0.1.0.tar.gz.
File metadata
- Download URL: zrepo_helper-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce93d96c9430b89d31073e18bb1c63082af471a890a18c1ad7f180928304fc80
|
|
| MD5 |
c28f3eba8dc66f91a6382362fbead68a
|
|
| BLAKE2b-256 |
197a64462c151766cd03ed61ce06828a436389db0e437e3f2a18df9826c0452c
|
File details
Details for the file zrepo_helper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zrepo_helper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80cff3408fbbd6fd4a99317b4963307af99ffc1510ea041a221196b355db06ba
|
|
| MD5 |
f236ab7caf893381fac16bc3cb7a7110
|
|
| BLAKE2b-256 |
d456e3620a77d2c825a6a02835d020a8af9ee31ccb3d5d3c75b925ac976afd6c
|