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-9.15.1.tar.gz
(54.8 kB
view details)
File details
Details for the file batchx-9.15.1.tar.gz
.
File metadata
- Download URL: batchx-9.15.1.tar.gz
- Upload date:
- Size: 54.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb8227864ff1d687d6f6dbe8d8158f8f4718779a4835786cd92c5c80f65e6fb |
|
MD5 | 9ce079d5dc0407680f9b1e91a21335f7 |
|
BLAKE2b-256 | 9d152f46f17c80b055ef13adc83085f4c4c7640937a5cb056793c8444fc4d2fc |