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
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 giza_actions-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c2df1566766a38ade0a87a7db475f818cf5b9ecdde5a502d0ffd317b8e10ee |
|
MD5 | e01d027d7997da36b89fbce701372779 |
|
BLAKE2b-256 | 672e6d71723d43dbd293df1a6113317ed28dc5ab772011574bdcc00f5a9533cd |