BeeYard-SDK: A client library for accessing Hive API
Release notes
Release notes are available on the documentation web page https://docs.beeyard.ai/docs/reference/sdk/python/release-notes/.
Installation
To use the package, just install it via pip (or preferred package manager):
pip install datavision-beeyard-sdk
or use Poetry package manager to create your virtual environment and just add the SDK with:
poetry add datavision-beeyard-sdk
Now all functionalities are ready to be imported inside your Python project!
Initialize a BeeYard client
Authentication is with authenticated client:
from beeyard_sdk import AuthenticatedClient
client = AuthenticatedClient('https://demo.beeyard.ai/hive/', username, password)
It is possible to specify the max_waiting_time_ms parameter (in milliseconds) when creating the client object in order to avoid connectivity problems. It specifies the max time within which the client tries to repeatedly send the request, in case of connectivity errors. After that time, a ConnectionError will be raised. Default value is 0.
client = AuthenticatedClient('https://demo.beeyard.ai/hive/', username, password, max_waiting_time_ms=1000)
As login endpoint will be updated, some optional parameters are provided, that can be set to point to the new endpoint:
client = AuthenticatedClient('https://demo.beeyard.ai/hive/', username, password, max_waiting_time_ms=1000, client_id="byard", client_secret="", login_url=None)
where login_url is the new endpoint uri.
It is possible to log in using client credentials as follows:
client = AuthenticatedClient('https://demo.beeyard.ai/hive/', grant_type="client_credentials", client_id="the_client_id", client_secret="the_client_secret", login_url="https://demo.beeyard.ai/id/")
Another option is to use a valid access token to initialize the client:
client = AuthenticatedClient('https://demo.beeyard.ai/hive/', use_token=True, token="valid_token")
Example usage
from datavision_beeyard_sdk.models import WorkspaceDescriptorDto
from datavision_beeyard_sdk.api.workspace import create_workspace
workspace_desc = WorkspaceDescriptorDto(name="test", namespace="test")
create_workspace.create(client=client, request_body=workspace_desc)
Documentation
Complete documentation can be found at https://docs.beeyard.ai/docs/reference/sdk/python/methods_reference/.
Metadata
Release files for datavision-beeyard-sdk 12.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datavision_beeyard_sdk-12.6.0.tar.gz | 22.3 kB | Without provenance | Details for datavision_beeyard_sdk-12.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datavision_beeyard_sdk-12.6.0-py3-none-any.whl | Python 3 | none | any | Details for datavision_beeyard_sdk-12.6.0-py3-none-any.whl |
Total release size: 87.8 kB
Release files / datavision_beeyard_sdk-12.6.0.tar.gz
| Download URL | datavision_beeyard_sdk-12.6.0.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2831a1cfd92ecd6a78971b2f28ff8f02cb1e965795086e4d1f62dfe261461f80
|
|
BLAKE2b-256 checksum How to use checksums |
a00805f5b93a334b26efd919399ed55da2c60a87d8b239a5f7dab27e584fab8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.1 Windows/10
|
Release files / datavision_beeyard_sdk-12.6.0-py3-none-any.whl
| Download URL | datavision_beeyard_sdk-12.6.0-py3-none-any.whl |
|---|---|
| Size | 65.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
040a04342d665bc4cd8cf4a357ddb847f563488a13a7bd27a9e6fbea02a41a9f
|
|
BLAKE2b-256 checksum How to use checksums |
d98e6097afa98003412d8b1d67b386c2c38026dc63b245d463928290dcb3a010
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.1 Windows/10
|
Security for datavision-beeyard-sdk 12.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.