{"id":28506408,"url":"https://github.com/temporalio/edu-102-python-code","last_synced_at":"2025-07-05T03:31:48.400Z","repository":{"id":208519954,"uuid":"697462741","full_name":"temporalio/edu-102-python-code","owner":"temporalio","description":"Code used in exercises and demonstrations for the \"Temporal 102 with Python\" course","archived":false,"fork":false,"pushed_at":"2025-06-17T03:34:52.000Z","size":106,"stargazers_count":5,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-01T14:55:33.057Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/temporalio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-27T19:26:33.000Z","updated_at":"2025-05-28T14:59:41.000Z","dependencies_parsed_at":"2023-11-21T23:23:13.679Z","dependency_job_id":"311ce857-2a48-4ee2-884e-41e192adfac6","html_url":"https://github.com/temporalio/edu-102-python-code","commit_stats":null,"previous_names":["temporalio/edu-102-python-code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/temporalio/edu-102-python-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temporalio%2Fedu-102-python-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temporalio%2Fedu-102-python-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temporalio%2Fedu-102-python-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temporalio%2Fedu-102-python-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/temporalio","download_url":"https://codeload.github.com/temporalio/edu-102-python-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temporalio%2Fedu-102-python-code/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263676469,"owners_count":23494615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T20:05:39.330Z","updated_at":"2025-07-05T03:31:48.395Z","avatar_url":"https://github.com/temporalio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Repository for Temporal 102 (Python)\n\nThis repository provides code used for exercises and demonstrations\nincluded in the Python version of the\n[Temporal 102](https://learn.temporal.io/courses/temporal_102)\ntraining course.\n\nIt's important to remember that the example code used in this course was designed to support learning a specific aspect of Temporal, not to serve as a ready-to-use template for implementing a production system.\n\nFor the exercises, make sure to run `temporal server start-dev --ui-port 8080 --db-filename clusterdata.db` in one terminal to start the Temporal server. For more details on this command, please refer to the `Setting up a Local Development Environment` chapter in the course. Note: If you're using the Codespaces environment to run this exercise, you can skip this step.\n\n## Hands-On Exercises\n\n| Directory Name                | Exercise                                            |\n| :---------------------------- | :-------------------------------------------------- |\n| `exercises/durable-execution` | [Exercise 1](exercises/durable-execution/README.md) |\n| `exercises/testing-code`      | [Exercise 2](exercises/testing-code/README.md)      |\n| `exercises/debug-activity`    | [Exercise 3](exercises/debug-activity/README.md)    |\n\n## Examples for Self-Study\n\n| Directory Name                                  | Description                                                                                                     |\n| :---------------------------------------------- | :-------------------------------------------------------------------------------------------------------------- |\n| `samples/age-estimation`                        | [Calls a remote API to estimate the age of a person given their name](samples/age-estimation)                   |\n| `samples/using-dataclasses-as-input-and-output` | [Demonstrate how data classes are passed in as input and output](samples/using-dataclasses-as-input-and-output) |\n\n## Reference\n\nThe following links provide additional information that you may find helpful as you work through this course.\n\n- [General Temporal Documentation](https://docs.temporal.io/)\n- [Temporal Python SDK Documentation](https://python.temporal.io/)\n- [Python Language Documentation](https://docs.python.org/3/)\n- [Python Packaging and Virtual Environment Documentation](https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments)\n\n## Exercise Environment for this Course\n\nYou can launch an exercise environment for this course using GitHub Codespaces by \nfollowing [this](codespaces.md) walkthrough.\n\nAlternatively, you can follow\n[these instructions](https://learn.temporal.io/getting_started/python/dev_environment/) to\nset up your own Temporal Cluster with Docker Compose, which you can use as an\nexercise environment.\n\n### Setup Your Python Virtual Environment\n\nAll Python libraries for this course should be installed in a virtual environment.\nIf you are running these exercises in the course's Codespaces environment, there\nis a virtual environment already setup for you and you can skip this section.\n(Be certain that you are running Python 3.7+. If you system has)\n\n1. Open a terminal window in the environment and change directories to the root directory of the\n   `edu-102-python-code` repository\n2. Run the following command to create a virtual environment\n\n```\n$ python3 -m venv env\n```\n\n3. Activate the virtual environment\n\n**Linux/Mac**:\n\n```\n$ source env/bin/activate\n```\n\n**Windows**:\n\n```\n$ env\\Scripts\\activate\n```\n\nOnce the environment is active you should see `(env)` prepended to your prompt similar\nto below\n\n```\n(env) $\n```\n\n4. Install the necessary packages into the virtual environment\n\n```\npython -m pip install -r requirements.txt\n```\n\n5. For every new terminal you open, you will need to activate the environment using\n   the following command\n\n**Linux/Mac**:\n\n```\n$ source env/bin/activate\n```\n\n**Windows**:\n\n```\n$ env\\Scripts\\activate\n```\n\nHowever, the packages are already installed, so there is no need to run pip again.\n\n## Exercise Environment for this Course\n\nYou can launch an exercise environment for this course using GitHub Codespaces by \nfollowing [this](codespaces.md) walkthrough.\n\nAlternatively, you can perform these exercises directly on your computer. Refer to the instructions about setting up a local development environment, which you'll find in the \"About this Course\" chapter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemporalio%2Fedu-102-python-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftemporalio%2Fedu-102-python-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemporalio%2Fedu-102-python-code/lists"}