Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example scripts for creating and running flows #826

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Aug 22, 2023

The examples are given as a trio of scripts

  • manage_flow_minimal.py
  • run_flow_minimal.py
  • manage_flow.py

The first does basic Flow CR(U)D and (omits Update), the second only runs flows, and the third does CR(U)D + Run.

These demonstrate FlowsClient/SpecificFlowClient.


📚 Documentation preview 📚: https://globus-sdk-python--826.org.readthedocs.build/en/826/

The examples are given as a trio of scripts
- manage_flow_minimal.py
- run_flow_minimal.py
- manage_flow.py

The first does basic Flow CR(U)D and (omits Update), the second only
runs flows, and the third does CR(U)D + Run.

These demonstrate FlowsClient/SpecificFlowClient.
Copy link
Contributor

@ada-globus ada-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look great to me! I added one note in the interest of trying to keep the examples as focused as possible, but I am good with these in either case, so I'm marking as approved.

docs/examples/create_and_run_flow/manage_flow.py Outdated Show resolved Hide resolved
Given that the examples will now have users handling long-lived
credentials, baking in a way to revoke those credentials is important.

The time-based check is replaced with authorizer construction of a
refresh token authorizer, which will automatically handle token
expiration and refresh.
@sirosen sirosen merged commit 9b832e5 into globus:main Aug 29, 2023
14 checks passed
@sirosen sirosen deleted the complete-flow-run-example branch August 29, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants