openapi-httpx-client 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openapi-httpx-client
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Python client for OpenAPI specifications using httpx
5
5
  Home-page: https://github.com/lloydzhou/openapiclient
6
6
  Author: lloydzhou
@@ -36,6 +36,12 @@ async def main():
36
36
  try:
37
37
  # Initialize and get the dynamic client
38
38
  client = await api.init()
39
+ print("client", client, dir(client))
40
+
41
+ print("client.operations", client.operations)
42
+ print("client.paths", client.paths)
43
+ print("client.functions", client.functions)
44
+ print("client.tools", client.tools) # get function call tools
39
45
 
40
46
  # Call an operation using the generated method
41
47
  response = await client.getPetById(petId=1)
@@ -21,6 +21,12 @@ async def main():
21
21
  try:
22
22
  # Initialize and get the dynamic client
23
23
  client = await api.init()
24
+ print("client", client, dir(client))
25
+
26
+ print("client.operations", client.operations)
27
+ print("client.paths", client.paths)
28
+ print("client.functions", client.functions)
29
+ print("client.tools", client.tools) # get function call tools
24
30
 
25
31
  # Call an operation using the generated method
26
32
  response = await client.getPetById(petId=1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openapi-httpx-client
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Python client for OpenAPI specifications using httpx
5
5
  Home-page: https://github.com/lloydzhou/openapiclient
6
6
  Author: lloydzhou
@@ -36,6 +36,12 @@ async def main():
36
36
  try:
37
37
  # Initialize and get the dynamic client
38
38
  client = await api.init()
39
+ print("client", client, dir(client))
40
+
41
+ print("client.operations", client.operations)
42
+ print("client.paths", client.paths)
43
+ print("client.functions", client.functions)
44
+ print("client.tools", client.tools) # get function call tools
39
45
 
40
46
  # Call an operation using the generated method
41
47
  response = await client.getPetById(petId=1)
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="openapi-httpx-client",
8
- version="0.2.0",
8
+ version="0.2.1",
9
9
  author="lloydzhou",
10
10
  author_email="lloydzhou@qq.com",
11
11
  description="A Python client for OpenAPI specifications using httpx",