Skip to main content

Universal vendor connectors with transparent secret management

Project description

Vendor Connectors

Universal vendor connectors for the jbcom ecosystem, providing standardized access to cloud providers and third-party services.

Features

  • AWS Connector: Boto3-based client with role assumption and retry logic
  • Google Cloud Connector: Workspace and Cloud Platform APIs with lazy credential loading
  • GitHub Connector: Repository management, GraphQL queries, and file operations
  • Slack Connector: Bot and app integrations with rate limiting
  • Vault Connector: HashiCorp Vault with Token and AppRole auth
  • Zoom Connector: Meeting and user management
  • VendorConnectors: Cached public API with get_*_client() getters

Installation

pip install vendor-connectors

Usage

Using VendorConnectors (Recommended)

The VendorConnectors class provides cached access to all connectors:

from vendor_connectors import VendorConnectors

# Initialize once - reads credentials from environment
vc = VendorConnectors()

# Get cached clients
slack = vc.get_slack_client()
github = vc.get_github_client(github_owner="myorg")
s3 = vc.get_aws_client("s3")
vault = vc.get_vault_client()

Using Individual Connectors

from vendor_connectors import AWSConnector, GithubConnector, SlackConnector

# AWS with role assumption
aws = AWSConnector(execution_role_arn="arn:aws:iam::123456789012:role/MyRole")
s3 = aws.get_aws_client("s3")

# GitHub operations
github = GithubConnector(
    github_owner="myorg",
    github_repo="myrepo",
    github_token=os.getenv("GITHUB_TOKEN")
)

# Slack messaging
slack = SlackConnector(
    token=os.getenv("SLACK_TOKEN"),
    bot_token=os.getenv("SLACK_BOT_TOKEN")
)
slack.send_message("general", "Hello from vendor-connectors!")

Architecture

All connectors extend DirectedInputsClass from the jbcom ecosystem:

  • directed-inputs-class: Input handling from environment, stdin, config
  • lifecyclelogging: Structured logging with verbosity control
  • extended-data-types: Utilities like is_nothing, strtobool, wrap_raw_data_for_export

The VendorConnectors class provides:

  • Client caching (same parameters = same instance)
  • Automatic credential loading from environment
  • Consistent interface across all providers

Environment Variables

Variable Description
AWS_* Standard AWS credentials
EXECUTION_ROLE_ARN AWS role to assume
GITHUB_TOKEN GitHub personal access token
GITHUB_OWNER GitHub organization/user
GOOGLE_SERVICE_ACCOUNT Google service account JSON
SLACK_TOKEN Slack user token
SLACK_BOT_TOKEN Slack bot token
VAULT_ADDR Vault server URL
VAULT_TOKEN Vault authentication token
VAULT_ROLE_ID / VAULT_SECRET_ID AppRole credentials
ZOOM_CLIENT_ID / ZOOM_CLIENT_SECRET / ZOOM_ACCOUNT_ID Zoom OAuth

Part of jbcom Ecosystem

This package is part of the jbcom Python library ecosystem:

Release trigger

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

vendor_connectors-202511.11.0.tar.gz (73.8 kB view details)

Uploaded Source

Built Distribution

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

vendor_connectors-202511.11.0-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file vendor_connectors-202511.11.0.tar.gz.

File metadata

  • Download URL: vendor_connectors-202511.11.0.tar.gz
  • Upload date:
  • Size: 73.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vendor_connectors-202511.11.0.tar.gz
Algorithm Hash digest
SHA256 c3e7f94840565368de8094a2686b3d1c7eeca39d8aae03f6996fea5b6e95c19e
MD5 ae5166a7f33e1f095b36acd395c77d1b
BLAKE2b-256 b5b3394c4b7f435102f8c5bc80933ea3723ecfd99ede6389d527ac6c00db161c

See more details on using hashes here.

File details

Details for the file vendor_connectors-202511.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vendor_connectors-202511.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5fc0f5d92aed322c24e8e70b911ee4dc2b5b6774af577f62c2e9ec6c0b9a5c
MD5 d440b731642e8fabaf78e44f63d1a872
BLAKE2b-256 54857468f21c9ab1666a0824b62a56ef7637e7a4759e25298a6000994d72c74e

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