Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <github@jessfraz.com>
  • Loading branch information
jessfraz committed Oct 25, 2024
1 parent 04f9ed8 commit b650fa2
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 407 deletions.
9 changes: 6 additions & 3 deletions generate/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@ def main():
# - OR -
# Create a new client with your token parsed from the environment variable:
# `KITTYCAD_API_TOKEN`.
# `KITTYCAD_API_TOKEN` or `ZOO_API_TOKEN`.
# Optionally, you can pass in `ZOO_HOST` to specify the host. But this only
# needs to be done if you are using a different host than the default,
# which implies you are running your own instance of the API.
from kittycad.client import ClientFromEnv
client = ClientFromEnv()
# NOTE: The python library additionally implements asyncio, however all the code samples we
# show below use the sync functions for ease of use and understanding.
# Check out the library docs at:
# https://python.api.docs.kittycad.io/_autosummary/kittycad.api.html#module-kittycad.api
# https://python.api.docs.zoo.dev/_autosummary/kittycad.api.html#module-kittycad.api
# for more details.""",
"install": "pip install kittycad",
}
Expand Down Expand Up @@ -757,7 +760,7 @@ async def test_"""
# Add our example to our json output.
data["paths"][name][method]["x-python"] = {
"example": cleaned_example.replace("def test_", "def example_"),
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api."
"libDocsLink": "https://python.api.docs.zoo.dev/_autosummary/kittycad.api."
+ tag_name
+ "."
+ fn_name
Expand Down
Loading

0 comments on commit b650fa2

Please sign in to comment.