Skip to main content

Batchx Python API

Project description

Contents

The batchx package contains the bx main application module, that offers full access to the BatchX gRPC API from Python code.

How to use

# Import the module
from batchx import bx

# Connect to the BatchX servers
# (environment variables `BATCHX_ENDPOINT` and `BATCHX_TOKEN` expected)
bx.connect()

# Instantiate service class
org_service = bx.OrganizationService()

# Create data request
request = org_service.GetOrganizationRequest(organization="batchx")

# Call the RPC
response = org_service.GetOrganization(request);

print(response)

See also

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

batchx-9.14.0.tar.gz (52.0 kB view hashes)

Uploaded Source

Supported by

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