Tools to help developers build services that implement the Action Provider specification.
Project description
This is an experimental toolkit to help developers build Action Providers for use in Globus Automate including for invocation via Globus Flows.
As this is experimental, no support is implied or provided for any sort of use of this package. It is published for ease of distribution among those planning to use it for its intended, experimental, purpose.
Basic Usage
Install the base toolkit with pip install globus_action_provider_tools
You can then import the toolkit’s standalone components from globus_action_provider_tools. This is useful in instances where you want to use pieces of the library to perform a function (such as token validation via the TokenChecker or API schema validation via the ActionStatus or ActionRequest) and plug into other web frameworks.
from flask import Flask
from globus_action_provider_tools import ActionProviderDescription
description = ActionProviderDescription(
globus_auth_scope="https://auth.globus.org/scopes/00000000-0000-0000-0000-000000000000/action_all",
title="My Action Provider",
admin_contact="support@example.org",
synchronous=True,
input_schema={
"$id": "whattimeisitnow.provider.input.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Example Action Provider",
"type": "object",
"properties": {"message": {"type": "string"}},
"required": ["message"],
"additionalProperties": False,
},
api_version="1.0",
subtitle="Just an example",
description="",
keywords=["example", "testing"],
visible_to=["public"],
runnable_by=["all_authenticated_users"],
administered_by=["support@example.org"],
)
To install the Flask helpers as well for use specifically in developing Flask based Action Providers, install this library using pip install globus_action_provider_tools[flask]
Reporting Issues
If you’re experiencing a problem using globus_action_provider_tools, or have an idea for how to improve the toolkit, please open an issue in the repository and share your feedback.
Testing, Development, and Contributing
Welcome, and thank you for taking the time to contribute!
To get started, you’ll need to clone the repository and run make install to install the package and its dependencies locally in a virtual environment (.venv/).
Next, activate the virtual environment:
$ source .venv/bin/activate
And that’s it, you’re ready to dive in and make code changes. Run make test to validate there are no breaking changes introduced. Once you feel your work is ready to be submitted, feel free to create a PR.
Links
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 globus_action_provider_tools-0.20.0.tar.gz
.
File metadata
- Download URL: globus_action_provider_tools-0.20.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d89a39474615e3b89350834e5ff250671f595c18632ebdf652a5ee258f41d2 |
|
MD5 | 6cf41935b43b0e6a46e72ba7abc8aa84 |
|
BLAKE2b-256 | 4368faedcd6a57599fc8c0a4a6979e8210c24e77a1f9bbe5850b0701e094897f |
File details
Details for the file globus_action_provider_tools-0.20.0-py3-none-any.whl
.
File metadata
- Download URL: globus_action_provider_tools-0.20.0-py3-none-any.whl
- Upload date:
- Size: 34.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ebe45669995fb928b57d15029a6eef4af6d76dca9c620a7e2d87f12cb250250 |
|
MD5 | dbc683beb4e4d6393ce461c91a542070 |
|
BLAKE2b-256 | 3a6f69cc5b2c69188cf191404b21fd14739e0a15ddc7fbc47cf8955af0331b03 |