harborapi
Async Harbor API v2.0 client
Decision gist · record as of 2026-08-14
Yes, if you need to automate Harbor registry operations from Python. The library is mature (Beta, since 2022), has no known vulnerabilities, and low install friction. The dormant maintenance status is acceptable for a stable API client—the last release fixed a recent httpx compatibility issue. Verify that its workarounds for Harbor API spec inconsistencies align with your Harbor version before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8+; async/await syntax mandatory; Harbor API endpoint URL and credentials required.
- Low friction: pure Python wheel with four lightweight runtime dependencies (backoff, httpx, pydantic, typing-extensions).
- Maintenance is dormant—last release 2025-01-21 with a recent fix for httpx>=0.28.0 compatibility, but no active development signals beyond bug fixes.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive). No restrictions on commercial or private use; you may modify and redistribute under the same license.
last release 2025-01-21 (570 days) · last repo commit 2025-01-21 · 41 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,247 downloads/mo, #14,175 on PyPI
Alternatives
Verify before relying
pip install harborapi
import asyncio
from harborapi import HarborAsyncClient
async def main():
client = HarborAsyncClient(
url="https://demo.goharbor.io/api/v2.0/",
username="user",
secret="pass"
)
projects = await client.get_projects()
for p in projects:
print(p.name)
asyncio.run(main())- Whether the library's workarounds for Harbor API spec inconsistencies remain sufficient for current Harbor versions.
- Current maintenance commitment and response time for bug reports or compatibility issues.
What it is and what it does
harborapi is an async Python client for Harbor, the open-source container registry. It wraps Harbor's REST API v2.0 with full type hints and Pydantic validation, allowing you to programmatically manage projects, artifacts, robots, vulnerability reports, and other registry resources. The library acknowledges that the official Harbor API spec contains errors and inconsistencies; it applies local fixes to make validation usable where the spec and actual API responses diverge.
You instantiate a HarborAsyncClient with your Harbor URL and credentials, then call async methods like get_projects(), create_project(), get_artifacts(), and get_artifact_vulnerability_reports(). Built-in retry logic via backoff handles transient failures automatically. Optional Rich support provides pretty-printed output. The library supports Python 3.8–3.12 and is classified as Beta.
Use it for
- Automate project and artifact management in Harbor from Python scripts or CI/CD pipelines.
- Fetch vulnerability reports for container images and integrate them into security scanning workflows.
- Query and manage robot accounts and permissions programmatically for registry access control.
- Build monitoring or audit tools that track Harbor projects, repositories, and artifact metadata.
- Integrate Harbor operations into larger container orchestration or DevOps automation frameworks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to automate Harbor registry operations from Python.
The library is mature (Beta, since 2022), has no known vulnerabilities, and low install friction. The dormant maintenance status is acceptable for a stable API client—the last release fixed a recent httpx compatibility issue. Verify that its workarounds for Harbor API spec inconsistencies align with your Harbor version before committing to production use.
Install
harborapi on PyPI
Before you install
Low friction: pure Python wheel with four lightweight runtime dependencies (backoff, httpx, pydantic, typing-extensions). Maintenance is dormant—last release 2025-01-21 with a recent fix for httpx>=0.28.0 compatibility, but no active development signals beyond bug fixes.
Requires Python 3.8+; async/await syntax mandatory; Harbor API endpoint URL and credentials required.
License in practice
MIT license (permissive). No restrictions on commercial or private use; you may modify and redistribute under the same license.
Quickstart
pip install harborapi
import asyncio
from harborapi import HarborAsyncClient
async def main():
client = HarborAsyncClient(
url="https://demo.goharbor.io/api/v2.0/",
username="user",
secret="pass"
)
projects = await client.get_projects()
for p in projects:
print(p.name)
asyncio.run(main())
Verify before relying
- Whether the library's workarounds for Harbor API spec inconsistencies remain sufficient for current Harbor versions.
- Current maintenance commitment and response time for bug reports or compatibility issues.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesbackoffhttpxpydantictyping-extensions |
| Maintenance | Dormant 570 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,247 / month, #14,175 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: InternetTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: harborapi-0.26.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “harbor registry api client”
- harborapiAsync Python client for the Harbor container registry REST API v2.0,…
- harborHarbor is a framework for running and evaluating agents and language…
- azure-containerregistryClient library for managing container images, artifacts, and metadata…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also harbor · legit-api-client · azure-containerregistry · harbor-rewardkit · socketdev · azure-mgmt-containerregistry · neptune-api · google-cloud-artifact-registry · google-cloud-containeranalysis · GitHubKit