Skip to content

Commit d2762e2

Browse files
committed
Vale
1 parent 901dd81 commit d2762e2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/docs/python-sdk/guides/client.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ API tokens provide secure, long-lived authentication and are the recommended met
8080
<Tabs groupId="async-sync">
8181
<TabItem value="Async" default>
8282
<Tabs groupId="env-config">
83-
<TabItem value="Config" default>
83+
<TabItem value="Code" default>
8484

8585
We can set the address and API token directly in the `Config` object:
8686

@@ -109,7 +109,7 @@ client = InfrahubClient() # token and address are read from the INFRAHUB_API_TOK
109109
</TabItem>
110110
<TabItem value="Sync">
111111
<Tabs groupId="env-config">
112-
<TabItem value="Config" default>
112+
<TabItem value="Code" default>
113113

114114
We can set the address and API token directly in the `Config` object:
115115

@@ -145,7 +145,7 @@ For interactive authentication, use username and password. The SDK automatically
145145
<Tabs groupId="async-sync">
146146
<TabItem value="Async" default>
147147
<Tabs groupId="env-config">
148-
<TabItem value="Config" default>
148+
<TabItem value="Code" default>
149149

150150
We can set the address, username and password directly in the `Config` object:
151151

@@ -175,7 +175,7 @@ client = InfrahubClient() # username and password are read from the INFRAHUB_USE
175175
</TabItem>
176176
<TabItem value="Sync">
177177
<Tabs groupId="env-config">
178-
<TabItem value="Config" default>
178+
<TabItem value="Code" default>
179179

180180
We can set the address, username and password directly in the `Config` object:
181181

@@ -214,7 +214,7 @@ Your client is now configured and ready to use!
214214
Configure your client to work with a specific Infrahub branch instead of the default `main` branch. This is particularly useful when working on feature branches or experimental changes, as it eliminates the need to specify the branch name in every method call.
215215

216216
<Tabs groupId="env-config">
217-
<TabItem value="Config" default>
217+
<TabItem value="Code" default>
218218

219219
```python
220220
from infrahub_sdk import InfrahubClient, Config
@@ -249,7 +249,7 @@ tag_main_branch = await client_other_branch.get(kind="BuiltinTag", name__value="
249249
Your client is now configured to use the specified default branch instead of `main`. Remember that you can always override this setting by explicitly passing the `branch` argument to any method call.
250250
:::
251251

252-
## Hello World example
252+
## Hello world example
253253

254254
Let's create a simple "Hello World" example to verify your client configuration works correctly. This example will connect to your Infrahub instance and query the available accounts.
255255

@@ -260,7 +260,7 @@ touch hello_world.py
260260
```
261261

262262
:::danger File Naming
263-
Avoid naming your script `test.py` as this name could conflict with Python's testing modules and the SDK's internal tests.
263+
Avoid naming your script `test.py` as this name could conflict with Python's testing modules.
264264
:::
265265

266266
2. Add the following code to `hello_world.py`:
@@ -338,7 +338,7 @@ If everything is configured correctly, you should see:
338338
When developing or troubleshooting, you can enable GraphQL query logging to see exactly what requests are being sent to Infrahub:
339339

340340
<Tabs groupId="env-config">
341-
<TabItem value="Config" default>
341+
<TabItem value="Code" default>
342342

343343
```python
344344
from infrahub_sdk import Config, InfrahubClient

0 commit comments

Comments
 (0)