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
BatchX documentation: https://docs.batchx.io
Python protobuf messages: https://developers.google.com/protocol-buffers/docs/reference/python-generated
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-7.6.0.tar.gz
(48.8 kB
view hashes)