Simiotics Python SDK
Project description
Simiotics Python client library
This package contains the Simiotics Python client library. It allows you to interact with Simiotics APIs directly from your Python programs.
Registries
This library currently supports interaction with the following types of Simiotics registries:
- Data registries
- Function registries
The Simiotics client reads registry-related configuration from environment variables:
- To connect to a data registry, set the
SIMIOTICS_DATA_REGISTRY
environment variable to point at a data registry instance (e.g.export SIMIOTICS_DATA_REGISTRY=registry-alpha.simiotics.com:7010
) - To connect to a function registry, set the
SIMIOTICS_FUNCTION_REGISTRY
environment variable to point at a function registry instance (e.g.export SIMIOTICS_FUNCTION_REGISTRY=registry-alpha.simiotics.com:7011
)
To communicate with a registry, you must first instantiate a registry client:
import simiotics.client
simiotics = simiotics.client.client_from_env()
If you specified SIMIOTICS_DATA_REGISTRY
in your environment, you can access that registry using
simiotics.data_registry
.
If you specified SIMIOTICS_FUNCTION_REGISTRY
in your environment, you can access that registry
using simiotics.function_registry
.
The simiotics_s3
provides a good example of how to
use these registries. For example, the
`list_data_sources
function shows how to list all the sources registered against a data registry.
In fact, that is a very convenient wrapper around the simiotics
client library and we will likely
merge it into the client library proper in an upcoming version.
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
Built Distribution
Hashes for simiotics-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1db8f0d0f98ea73ed6899481ae649702c4a9266b6839f7fa7e3814f6b3ee41 |
|
MD5 | 9aaa4752332c462356bb2f5ac9b0ea11 |
|
BLAKE2b-256 | 78f4e0521efcb412220fe624a774263d715c05771ae1ba7a0598da066adb9e62 |