An UNOFFICIAL standard Python connector for the Collibra Data Governance Center API.
Project description
Collibra Python Connector
An UNOFFICIAL comprehensive Python connector for the Collibra Data Governance Center API.
Features
- 🚀 Complete API Coverage: Asset, Community, Domain, User, Responsibility, Workflow, Metadata, and Comment management
- 🔄 Automatic Retry Logic: Built-in retry mechanism for robust API calls
- ✅ Input Validation: Comprehensive parameter validation with clear error messages
- 🏗️ Clean Architecture: Well-structured, extensible codebase with separation of concerns
- 📝 Type Hints: Full type annotations for better IDE support
- 🛡️ Error Handling: Custom exception hierarchy for different error types
- 🔧 Utility Functions: Helper methods for complex operations and bulk operations
Installation
pip install collibra-connector
Quick Start
from collibra_connector import CollibraConnector
# Initialize the connector
connector = CollibraConnector(
api="https://your-collibra-instance.com",
username="your-username",
password="your-password",
timeout=30
)
# Test connection
if connector.test_connection():
print("Connected successfully!")
# Get all metadata
metadata = connector.metadata.get_collibra_metadata()
print(f"Found {len(metadata['AssetType'])} asset types")
# Find communities
communities = connector.community.find_communities()
for community in communities.get("results", []):
print(f"Community: {community['name']}")
API Reference
Assets
# Get an asset
asset = connector.asset.get_asset("asset-uuid")
# Create an asset
new_asset = connector.asset.add_asset(
name="My New Asset",
domain_id="domain-uuid",
display_name="My Asset Display Name",
type_id="asset-type-uuid"
)
# Find assets
assets = connector.asset.find_assets(
community_id="community-uuid",
asset_type_ids=["type-uuid-1", "type-uuid-2"]
)
Communities
# Get a community
community = connector.community.get_community("community-uuid")
# Find communities
communities = connector.community.find_communities()
Domains
# Get a domain
domain = connector.domain.get_domain("domain-uuid")
# Create a domain
new_domain = connector.domain.create_domain(
name="My New Domain",
community_id="community-uuid"
)
Users
# Get user by username
user_id = connector.user.get_user_by_username("username")
# Create a new user
new_user = connector.user.create_user(
username="newuser",
email_address="newuser@example.com"
)
Complete Documentation
For comprehensive API documentation and examples, see the full README with all available methods for:
- Asset management (CRUD operations, attributes, activities)
- Community and Domain operations
- User management
- Responsibility assignments
- Workflow operations
- Comment management
- Metadata retrieval
- Utility functions for bulk operations
Error Handling
from collibra_connector.api.Exceptions import (
CollibraAPIError,
UnauthorizedError,
NotFoundError
)
try:
asset = connector.asset.get_asset("invalid-uuid")
except NotFoundError:
print("Asset not found")
except CollibraAPIError as e:
print(f"API error: {e}")
Requirements
- Python 3.8+
- requests >= 2.20.0
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
collibra_connector-1.0.18.tar.gz
(22.5 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 collibra_connector-1.0.18.tar.gz.
File metadata
- Download URL: collibra_connector-1.0.18.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c67421039f145461da4189dc83673198e48d97f4dc6ed6468923ace326d4cff
|
|
| MD5 |
2c71f392ca3ca1889e9ef8eb4b99b536
|
|
| BLAKE2b-256 |
9e4c48dc80dfee036fb6a2a192321bf8f48a268c8555fa382872c214d8463b38
|
File details
Details for the file collibra_connector-1.0.18-py3-none-any.whl.
File metadata
- Download URL: collibra_connector-1.0.18-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8aa6686cebcc7167bd12fe2cb2907ad4253bbb4d8c4929de14de7103852d40ed
|
|
| MD5 |
e87949e5bf3f023a782acbc73970563d
|
|
| BLAKE2b-256 |
a826930f7090ac20bfdf73b5b7a0e8eb6d7a2986153d7a768fb239fbd14238e8
|