Skip to main content

Python SDK for Barbara Edge Computing Platform

Project description

Barbara-sdk: Python SDK for Barbara Edge Computing Platform

Deploy your machine learning models to the edge with the Barbara Python SDK. This intuitive library empowers you to streamline your workflow and accelerate edge AI development.

Features

  • Seamless Uploads: Upload your models directly from Python code or Jupyter Notebooks to your Barbara model library.
  • Simplified Deployment: Deploy models directly to edge nodes with just a few lines of code.
  • Enhanced Efficiency: Automate model training & deployment tasks and save valuable development time.
  • Streamlined Workflow: Integrate edge AI development seamlessly into your existing Python environment.

Prerequisites

  • Python (version 3.8 or higher)

Barbara API Credentials

To use this SDK you will need the following credentials:

  • Username: Your Barbara username.
  • Password: Your Barbara password.
  • Client Secret: This credential is only available for users with an Enterprise License.
  • Client Id: This credential is only available for users with an Enterprise License.

Obtaining Enterprise Credentials

If you have an Enterprise License and require the Client Secret and Client ID, please contact Barbara support by sending an email to support@barbara.tech.

Security Note

We strongly recommend storing your username and password securely and avoiding embedding them directly in your code. Consider using environment variables or a secure credential management solution.

Installation with pip

pip install barbara-sdk

Usage

Import the SDK:

import barbara

Create an instance of the SDK

bbr = barbara.ApiClient('client_id', 'client_secret', 'username', 'password')

Replace 'client_id', 'client_secret', 'username' and 'password' with your actual API credentials.

Uploading models to your Library

bbr.models.upload('model_path', 'model_name')

Listing models in your Library

bbr.models.list()

Listing Edge Nodes

bbr.nodes.list()

Deploy a model to an Edge Node

bbr.models.deploy('edge_node_name', 'model_name')

Documentation

For detailed API reference and code examples, please refer to Barbara Academy

License

See the LICENSE file for details.

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

barbara_sdk-1.0.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

barbara_sdk-1.0.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file barbara_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: barbara_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for barbara_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5c5127e57c0862292df5bcf00ec006ca7173e24ffac5027ca3ac45d22b332396
MD5 3534489f17525557bb83fd39447a1d3f
BLAKE2b-256 b90c50e83e176260b858e66f8f42b07bf13c6b91613fcf4ab61c6b3802b98b63

See more details on using hashes here.

File details

Details for the file barbara_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: barbara_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for barbara_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11586cdd943bc72b24fcad9b1db0e0aa3008f8ac0fdcf34b14c719321d9fa82d
MD5 8ee14d85826e0d066507ff95493b563e
BLAKE2b-256 4196c74f5fcf6f3d09b44c6b232736bf2ea57ed7ce7637ea6b31ae1ebd097a4f

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