From 6837bab8165d016eb52c82f863d03afdce78ab59 Mon Sep 17 00:00:00 2001 From: Didier Durand Date: Sun, 7 Sep 2025 09:28:31 +0200 Subject: [PATCH] [Doc]: fixing 404 error in README.md + some typos --- README.md | 2 +- docs/serverless/worker.md | 2 +- examples/serverless/simple_handler.py | 2 +- .../project/starter_templates/default/.runpodignore | 2 +- runpod/serverless/utils/rp_download.py | 12 ++++++------ setup.py | 2 +- tests/test_api/test_ctl_commands.py | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b57da4c5..b091c211 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ runpod.serverless.start({"handler": is_even}) Make sure that this file is ran when your container starts. This can be accomplished by calling it in the docker command when you set up a template at [console.runpod.io/serverless/user/templates](https://console.runpod.io/serverless/user/templates) or by setting it as the default command in your Dockerfile. -See our [blog post](https://www.runpod.io/blog/serverless-create-a-basic-api) for creating a basic Serverless API, or view the [details docs](https://docs.runpod.io/serverless-ai/custom-apis) for more information. +See our [blog post](https://www.runpod.io/blog/build-basic-serverless-api) for creating a basic Serverless API, or view the [details docs](https://docs.runpod.io/serverless-ai/custom-apis) for more information. ### Local Test Worker diff --git a/docs/serverless/worker.md b/docs/serverless/worker.md index e1535e84..f0e84a94 100644 --- a/docs/serverless/worker.md +++ b/docs/serverless/worker.md @@ -1,6 +1,6 @@ # The Serverless Worker -Both Runpod official endpoints as well as custom built endpoints function by means of a worker that fetches available jobs, passes them into a handler and then returns the output. +Both Runpod official endpoints as well as custom-built endpoints function by means of a worker that fetches available jobs, passes them into a handler and then returns the output. A worker entry point is a python file containing the command `runpod.serverless.start(config)`. A minimal worker file is shown below: diff --git a/examples/serverless/simple_handler.py b/examples/serverless/simple_handler.py index bad20381..7d073bf4 100644 --- a/examples/serverless/simple_handler.py +++ b/examples/serverless/simple_handler.py @@ -1,6 +1,6 @@ """ Simple Handler -To setup a local API server, run the following command: +To set up a local API server, run the following command: python simple_handler.py --rp_serve_api """ diff --git a/runpod/cli/groups/project/starter_templates/default/.runpodignore b/runpod/cli/groups/project/starter_templates/default/.runpodignore index 14c06bf2..fef4dcc0 100644 --- a/runpod/cli/groups/project/starter_templates/default/.runpodignore +++ b/runpod/cli/groups/project/starter_templates/default/.runpodignore @@ -1,2 +1,2 @@ # Similar to .gitignore -# Matches will not be synce to the development pod or cause the development pod to reload. +# Matches will not be synced to the development pod or cause the development pod to reload. diff --git a/runpod/serverless/utils/rp_download.py b/runpod/serverless/utils/rp_download.py index 3904d65e..137da331 100644 --- a/runpod/serverless/utils/rp_download.py +++ b/runpod/serverless/utils/rp_download.py @@ -141,17 +141,17 @@ def file(file_url: str) -> dict: output_file.write(download_response.content) if file_type == "zip": - unziped_directory = os.path.join("job_files", file_name) - os.makedirs(unziped_directory, exist_ok=True) + unzipped_directory = os.path.join("job_files", file_name) + os.makedirs(unzipped_directory, exist_ok=True) with zipfile.ZipFile(output_file_path, "r") as zip_ref: - zip_ref.extractall(unziped_directory) - unziped_directory = os.path.abspath(unziped_directory) + zip_ref.extractall(unzipped_directory) + unzipped_directory = os.path.abspath(unzipped_directory) else: - unziped_directory = None + unzipped_directory = None return { "file_path": os.path.abspath(output_file_path), "type": file_type, "original_name": original_file_name, - "extracted_path": unziped_directory, + "extracted_path": unzipped_directory, } diff --git a/setup.py b/setup.py index 7ef78a7d..4df7409a 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ """ runpod-python | setup.py -Called to setup the runpod-python package. +Called to set up the runpod-python package. """ from setuptools import find_packages, setup diff --git a/tests/test_api/test_ctl_commands.py b/tests/test_api/test_ctl_commands.py index 91febdee..472fb51a 100644 --- a/tests/test_api/test_ctl_commands.py +++ b/tests/test_api/test_ctl_commands.py @@ -384,7 +384,7 @@ def test_create_container_registry_auth(self, mock_run_graphql_query): """ Tests create_container_registry_auth by mocking the run_graphql_query function """ - # Setup the mock to return a predefined response + # Set up the mock to return a predefined response mock_run_graphql_query.return_value = { "data": { "saveRegistryAuth": {"id": "REGISTRY_AUTH_ID", "name": "REGISTRY_NAME"}