Skip to main content

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 URL
  • ZREPO_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 requests
  • get_merge_request_info(mr_id) - Get specific MR details
  • get_merge_request_diff(mr_id, **params) - Get MR diff
  • create_merge_request(payload) - Create new MR
  • update_merge_request_state(mr_id, state, payload=None) - Change MR state (open|merge|close)
  • edit_merge_request(mr_id, payload) - Update MR details
  • get_merge_request_codeowners(mr_id) - Get code owners for MR
  • get_merge_request_commits(mr_id, **params) - List MR commits
  • review_merge_request(mr_id, status) - Review MR (reviewed|pending)
  • get_mr_versions(mr_id) - Get MR version history
  • mark_file_read(mr_id, payload, read=True) - Mark file as read/unread

Comments

  • add_comment(target_type, target_id, comment) - Add comment
  • get_merge_request_comments(mr_id, **params) - List MR comments
  • get_commit_comments(revision, **params) - List commit comments
  • update_comment(comment_id, payload) - Update comment
  • resolve_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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zrepo_helper-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for zrepo_helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce93d96c9430b89d31073e18bb1c63082af471a890a18c1ad7f180928304fc80
MD5 c28f3eba8dc66f91a6382362fbead68a
BLAKE2b-256 197a64462c151766cd03ed61ce06828a436389db0e437e3f2a18df9826c0452c

See more details on using hashes here.

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

Hashes for zrepo_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80cff3408fbbd6fd4a99317b4963307af99ffc1510ea041a221196b355db06ba
MD5 f236ab7caf893381fac16bc3cb7a7110
BLAKE2b-256 d456e3620a77d2c825a6a02835d020a8af9ee31ccb3d5d3c75b925ac976afd6c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page