SDK for the Argil API
Project description
Argil Python SDK
Welcome to the Argil Python SDK. This library provides a simple and intuitive interface to interact with Argil's API, allowing you to leverage the power of AI-driven workflows and automations in your Python applications.
For the full Argil documentation, please visit https://docs.argil.ai.
Table of Contents
Installation
This library is distributed on PyPI. In order to add it as a dependency, run the following command:
pip install argil
Usage
Here is a quick example of how to use the Argil Python SDK:
from argil import ArgilSdk
sdk = ArgilSdk(api_key='your-api-key') // You can also provide your API key from ARGIL_API_KEY env variable
# Run a workflow
run = sdk.workflows.run('workflow-id', {
"input_field_name1": $input_value1,
"input_field_name2": $input_value2
// Input fields depends on the workflow you run, please look at our full documentation.
})
# Get a workflow run
workflow_run = sdk.workflowRuns.get(run['id'])
# List all workflow runs
workflow_run = sdk.workflowRuns.list()
print(workflow_run)
API Reference
The Argil Python SDK provides the following classes:
- ArgilSdk: The main class that provides access to the different services.
- Workflows: A class for interacting with the Workflows service of the Argil API.
- WorkflowRuns: A class for interacting with the WorkflowRuns service of the Argil API.
- ArgilConfig: A class for managing the configuration for the SDK.
- ArgilError: A custom error class for providing more detailed and specific error messages.
For more detailed information, please refer to the source code and inline comments.
Contributing
We welcome contributions from the community.
License
This project is licensed under the GPL-3.0-or-later license. For more information, see the LICENSE.md file.
Support
If you encounter any problems or have any questions, please open an issue on our GitHub repository.
Acknowledgements
This project uses the following open-source packages:
- requests: A simple, yet elegant HTTP library.
Contact
For any inquiries, please contact us at briva@argil.ai.
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
File details
Details for the file argil-0.0.6.tar.gz
.
File metadata
- Download URL: argil-0.0.6.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c31507a94f8f9d3e44428daa802ab0b50cfbe94c80038e395103a299fb4ca868 |
|
MD5 | f242eb00133c16b3fdd971293d5bc12c |
|
BLAKE2b-256 | f559387ffe50bb5c976b2b47c9bebb91180dc5112a34cee24954dc25176a29c1 |
File details
Details for the file argil-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: argil-0.0.6-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce0d10b298e2fc5688da3447a32a532ed50885a06a810f928e587be76578c06 |
|
MD5 | fe98d1c8a73ecef537751b09cab97b1a |
|
BLAKE2b-256 | f2fa789c0b9165e30666375a7a54d2ac18614bc2ef01ffb5556d08f337972d9d |