temporalio / temporalio/samples-python
[Feature Request] Create sample for calling Python Client from a sync method
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 367
- Forks
- 121
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 11
Description
Is your feature request related to a problem? Please describe.
There are many Temporal users that have existing Python code bases that are only sync, and for these users learning how to invoke the Temporal Client is toil, as they may not be fully versed in asyncio and the event loop. Having a sample that provides a snippet on how to use the Temporal Client from an existing sync method would be very helpful for these folks as part of the getting started experience.
Describe the solution you'd like
I'd like a hello world style sample that creates a client and then invokes client.start_workflow or client.execute_workflow from within a synchronous method
Additional context
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the repository's existing hello-world samples and the Python Client usage patterns first; no specific file or test is named in the issue. Add a sample showing client.start_workflow or client.execute_workflow called from a synchronous method, then verify that the sample runs as part of the getting-started experience.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100