Skip to main content

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.

Metadata

Release files for argil 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argil 0.0.6
File Size Uploaded
argil-0.0.6.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for argil 0.0.6
File Interpreter ABI Platform
argil-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 33.0 kB

Release files / argil-0.0.6.tar.gz

Download URL argil-0.0.6.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c31507a94f8f9d3e44428daa802ab0b50cfbe94c80038e395103a299fb4ca868
BLAKE2b-256 checksum
How to use checksums
f559387ffe50bb5c976b2b47c9bebb91180dc5112a34cee24954dc25176a29c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / argil-0.0.6-py3-none-any.whl

Download URL argil-0.0.6-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ce0d10b298e2fc5688da3447a32a532ed50885a06a810f928e587be76578c06
BLAKE2b-256 checksum
How to use checksums
f2fa789c0b9165e30666375a7a54d2ac18614bc2ef01ffb5556d08f337972d9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page