From 01bf2a94f2dc945536d5d5cfee0e0c0072c90e55 Mon Sep 17 00:00:00 2001 From: Lui Pillmann Date: Sun, 2 Feb 2025 17:34:32 +0100 Subject: [PATCH] Fix pipeline file name --- .../website/docs/walkthroughs/create-a-pipeline.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/website/docs/walkthroughs/create-a-pipeline.md b/docs/website/docs/walkthroughs/create-a-pipeline.md index d13b654654..b4b49e9594 100644 --- a/docs/website/docs/walkthroughs/create-a-pipeline.md +++ b/docs/website/docs/walkthroughs/create-a-pipeline.md @@ -72,10 +72,10 @@ def github_api_source(api_secret_key: str = dlt.secrets.value): return github_api_resource(api_secret_key=api_secret_key) ``` -Run the `github_api.py` pipeline script to test that authentication headers look fine: +Run the `github_api_pipeline.py` pipeline script to test that authentication headers look fine: ```sh -python github_api.py +python github_api_pipeline.py ``` Your API key should be printed out to stdout along with some test data. @@ -87,7 +87,7 @@ Your API key should be printed out to stdout along with some test data. We will use the `dlt` repository as an example GitHub project https://github.com/dlt-hub/dlt, feel free to replace it with your own repository. ::: -Modify `github_api_resource` in `github_api.py` to request issues data from your GitHub project's API: +Modify `github_api_resource` in `github_api_pipeline.py` to request issues data from your GitHub project's API: ```py from dlt.sources.helpers.rest_client import paginate @@ -109,8 +109,8 @@ def github_api_resource(api_secret_key: str = dlt.secrets.value): ## 4. Load the data -Uncomment the commented-out code in the `main` function in `github_api.py`, so that running the -`python github_api.py` command will now also run the pipeline: +Uncomment the commented-out code in the `main` function in `github_api_pipeline.py`, so that running the +`python github_api_pipeline.py` command will now also run the pipeline: ```py if __name__=='__main__': @@ -135,10 +135,10 @@ if __name__=='__main__': ``` -Run the `github_api.py` pipeline script to test that the API call works: +Run the `github_api_pipeline.py` pipeline script to test that the API call works: ```sh -python github_api.py +python github_api_pipeline.py ``` This should print out JSON data containing the issues in the GitHub project.