Skip to main content

A Python SDK for Giza platform

Project description

Actions SDK

The Actions SDK is a Python library designed to facilitate the development of applications on the Giza platform. It provides a set of decorators and classes to define tasks, actions, and models, and to handle data inputs.

Installation

The Actions SDK can be installed using Poetry:

poetry install

Be sure you're logged into the Giza CLI and have created a workspace:

giza workspaces create

Usage

Defining Tasks

Tasks are defined using the @task decorator. Here's an example:

from giza.task import task

@task
def preprocess():
    print(f"Preprocessing...")

Defining Actions

Actions are defined using the @action decorator. Here's an example:

from giza.action import action

@action
def inference():
    print(f"Running inference...")

Running Actions

Actions can be deployed executing the Python script defining the Action. For example, if the Action is defined in example.py, you can run it using:

python example.py

Then, you can execute the Action using the Prefect UI:

prefect server start

Examples

Examples of how to use the Actions SDK can be found in the examples directory. Each example includes a README with detailed instructions on how to run the example.

For instance, the imagenet example demonstrates how to use the Giza SDK to perform image classification using a pre-trained ResNet-50 model from the ONNX model zoo.

To understand how to execute these examples, please refer to the README file in each example's directory.

Contributing

Contributions are welcome! Please submit a pull request or create an issue to get started.

License

The Giza SDK is licensed under the MIT license.

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

giza_actions-0.1.0.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

giza_actions-0.1.0-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

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