Skip to main content

BeeYard Python SDK

Project description

= BeeYard-SDK: A client library for accessing Hive API

== Release notes

Release notes are available on the documentation web page https://docs.beeyard.services/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:

[source,python]
----
from beeyard_sdk import AuthenticatedClient

client = AuthenticatedClient('https://staging.beeyard.services/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.

[source,python]
----
client = AuthenticatedClient('https://staging.beeyard.services/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:

[source,python]
----
client = AuthenticatedClient('https://staging.beeyard.services/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:

[source,python]
----
client = AuthenticatedClient('https://staging.beeyard.services/hive/', grant_type="client_credentials", client_id="the_client_id", client_secret="the_client_secret", login_url="https://staging.beeyard.services/id/")
----

Another option is to use a valid access token to initialize the client:

[source,python]
----
client = AuthenticatedClient('https://staging.beeyard.services/hive/', use_token=True, token=valid_token")
----

=== Example usage

[source,python]
----
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 http://localhost:1313/docs/reference/sdk/python/methods_reference/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datavision_beeyard_sdk-12.3.100.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datavision_beeyard_sdk-12.3.100-py3-none-any.whl (64.8 kB view details)

Uploaded Python 3

File details

Details for the file datavision_beeyard_sdk-12.3.100.tar.gz.

File metadata

  • Download URL: datavision_beeyard_sdk-12.3.100.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.1 Windows/10

File hashes

Hashes for datavision_beeyard_sdk-12.3.100.tar.gz
Algorithm Hash digest
SHA256 837435c0a58b02e6490dc68f261692d6de7876d90460fe66509449156d643c3d
MD5 fa8982ec0cd73022ddb9a5e4a335a98e
BLAKE2b-256 138653ac7a7aaa9b41361ad043eceb5aac8b636933dc441257e5a0199e2dbeed

See more details on using hashes here.

File details

Details for the file datavision_beeyard_sdk-12.3.100-py3-none-any.whl.

File metadata

File hashes

Hashes for datavision_beeyard_sdk-12.3.100-py3-none-any.whl
Algorithm Hash digest
SHA256 af2779fc69e9b50a857dca0a7440049f7e7a45694032e9020058749eb39b616b
MD5 fc3cfd66b4e127d76bb31d4195fd311a
BLAKE2b-256 dc885cb7c5d38f67d8db74ae5ad0b5c8358814552835ad3a90fd4c38baaf657d

See more details on using hashes here.

Supported by

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