Skip to main content

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


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.10b0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

collibra_connector-1.0.10b0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file collibra_connector-1.0.10b0.tar.gz.

File metadata

  • Download URL: collibra_connector-1.0.10b0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for collibra_connector-1.0.10b0.tar.gz
Algorithm Hash digest
SHA256 b8f64b82e3ebc9d2f13ed06276a1b7e9be4cf8f2a59ca7054cd6bd9f811ef979
MD5 15d294d5c8a7238f149b40d79cc40f01
BLAKE2b-256 af33d1821fd136dd86c429cefe887066209f7a34cb1ac6bc6b89499f76c0db93

See more details on using hashes here.

File details

Details for the file collibra_connector-1.0.10b0-py3-none-any.whl.

File metadata

File hashes

Hashes for collibra_connector-1.0.10b0-py3-none-any.whl
Algorithm Hash digest
SHA256 9174051030a44c6165564266306b8595526fce8d9f5266e4f14db4e24eb1e7ba
MD5 435b82cf059f5ea3f09339d30b429d8d
BLAKE2b-256 9aa7118b7bb42302a2ff7cf77534f3fa88f4f7915cf517d4bc925f5603107f97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page