tzafon 1.3.2__py3-none-any.whl → 2.0.0__py3-none-any.whl

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.

Potentially problematic release.


This version of tzafon might be problematic. Click here for more details.

tzafon/_client.py CHANGED
@@ -75,13 +75,13 @@ class Computer(SyncAPIClient):
75
75
  ) -> None:
76
76
  """Construct a new synchronous Computer client instance.
77
77
 
78
- This automatically infers the `api_key` argument from the `COMPUTER_API_KEY` environment variable if it is not provided.
78
+ This automatically infers the `api_key` argument from the `TZAFON_API_KEY` environment variable if it is not provided.
79
79
  """
80
80
  if api_key is None:
81
- api_key = os.environ.get("COMPUTER_API_KEY")
81
+ api_key = os.environ.get("TZAFON_API_KEY")
82
82
  if api_key is None:
83
83
  raise ComputerError(
84
- "The api_key client option must be set either by passing api_key to the client or by setting the COMPUTER_API_KEY environment variable"
84
+ "The api_key client option must be set either by passing api_key to the client or by setting the TZAFON_API_KEY environment variable"
85
85
  )
86
86
  self.api_key = api_key
87
87
 
@@ -243,13 +243,13 @@ class AsyncComputer(AsyncAPIClient):
243
243
  ) -> None:
244
244
  """Construct a new async AsyncComputer client instance.
245
245
 
246
- This automatically infers the `api_key` argument from the `COMPUTER_API_KEY` environment variable if it is not provided.
246
+ This automatically infers the `api_key` argument from the `TZAFON_API_KEY` environment variable if it is not provided.
247
247
  """
248
248
  if api_key is None:
249
- api_key = os.environ.get("COMPUTER_API_KEY")
249
+ api_key = os.environ.get("TZAFON_API_KEY")
250
250
  if api_key is None:
251
251
  raise ComputerError(
252
- "The api_key client option must be set either by passing api_key to the client or by setting the COMPUTER_API_KEY environment variable"
252
+ "The api_key client option must be set either by passing api_key to the client or by setting the TZAFON_API_KEY environment variable"
253
253
  )
254
254
  self.api_key = api_key
255
255
 
tzafon/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "tzafon"
4
- __version__ = "1.3.2" # x-release-please-version
4
+ __version__ = "2.0.0" # x-release-please-version
@@ -37,7 +37,7 @@ class ComputersResource(SyncAPIResource):
37
37
  This property can be used as a prefix for any HTTP method call to return
38
38
  the raw response object instead of the parsed content.
39
39
 
40
- For more information, see https://www.github.com/atulgavandetzafon/computer-python#accessing-raw-response-data-eg-headers
40
+ For more information, see https://www.github.com/tzafon/computer-python#accessing-raw-response-data-eg-headers
41
41
  """
42
42
  return ComputersResourceWithRawResponse(self)
43
43
 
@@ -46,7 +46,7 @@ class ComputersResource(SyncAPIResource):
46
46
  """
47
47
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
48
48
 
49
- For more information, see https://www.github.com/atulgavandetzafon/computer-python#with_streaming_response
49
+ For more information, see https://www.github.com/tzafon/computer-python#with_streaming_response
50
50
  """
51
51
  return ComputersResourceWithStreamingResponse(self)
52
52
 
@@ -367,7 +367,7 @@ class AsyncComputersResource(AsyncAPIResource):
367
367
  This property can be used as a prefix for any HTTP method call to return
368
368
  the raw response object instead of the parsed content.
369
369
 
370
- For more information, see https://www.github.com/atulgavandetzafon/computer-python#accessing-raw-response-data-eg-headers
370
+ For more information, see https://www.github.com/tzafon/computer-python#accessing-raw-response-data-eg-headers
371
371
  """
372
372
  return AsyncComputersResourceWithRawResponse(self)
373
373
 
@@ -376,7 +376,7 @@ class AsyncComputersResource(AsyncAPIResource):
376
376
  """
377
377
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
378
378
 
379
- For more information, see https://www.github.com/atulgavandetzafon/computer-python#with_streaming_response
379
+ For more information, see https://www.github.com/tzafon/computer-python#with_streaming_response
380
380
  """
381
381
  return AsyncComputersResourceWithStreamingResponse(self)
382
382
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tzafon
3
- Version: 1.3.2
3
+ Version: 2.0.0
4
4
  Summary: The official Python library for the computer API
5
- Project-URL: Homepage, https://github.com/stainless-sdks/computer-python
6
- Project-URL: Repository, https://github.com/stainless-sdks/computer-python
5
+ Project-URL: Homepage, https://github.com/tzafon/computer-python
6
+ Project-URL: Repository, https://github.com/tzafon/computer-python
7
7
  Author-email: Computer <atul.gavande@tzafon.ai>
8
8
  License: MIT
9
9
  Classifier: Intended Audience :: Developers
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
30
30
  Requires-Dist: typing-extensions<5,>=4.10
31
31
  Provides-Extra: aiohttp
32
32
  Requires-Dist: aiohttp; extra == 'aiohttp'
33
- Requires-Dist: httpx-aiohttp>=0.1.8; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
34
34
  Description-Content-Type: text/markdown
35
35
 
36
36
  # Computer Python API library
@@ -46,7 +46,7 @@ It is generated with [Stainless](https://www.stainless.com/).
46
46
 
47
47
  ## Documentation
48
48
 
49
- The REST API documentation can be found on [docs.tzafon.ai](http://docs.tzafon.ai). The full API of this library can be found in [api.md](https://github.com/stainless-sdks/computer-python/tree/main/api.md).
49
+ The REST API documentation can be found on [docs.tzafon.ai](http://docs.tzafon.ai). The full API of this library can be found in [api.md](https://github.com/tzafon/computer-python/tree/main/api.md).
50
50
 
51
51
  ## Installation
52
52
 
@@ -57,14 +57,14 @@ pip install tzafon
57
57
 
58
58
  ## Usage
59
59
 
60
- The full API of this library can be found in [api.md](https://github.com/stainless-sdks/computer-python/tree/main/api.md).
60
+ The full API of this library can be found in [api.md](https://github.com/tzafon/computer-python/tree/main/api.md).
61
61
 
62
62
  ```python
63
63
  import os
64
64
  from tzafon import Computer
65
65
 
66
66
  client = Computer(
67
- api_key=os.environ.get("COMPUTER_API_KEY"), # This is the default and can be omitted
67
+ api_key=os.environ.get("TZAFON_API_KEY"), # This is the default and can be omitted
68
68
  )
69
69
 
70
70
  computer_response = client.computers.create(
@@ -75,7 +75,7 @@ print(computer_response.id)
75
75
 
76
76
  While you can provide an `api_key` keyword argument,
77
77
  we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
78
- to add `COMPUTER_API_KEY="My API Key"` to your `.env` file
78
+ to add `TZAFON_API_KEY="My API Key"` to your `.env` file
79
79
  so that your API Key is not stored in source control.
80
80
 
81
81
  ## Async usage
@@ -88,7 +88,7 @@ import asyncio
88
88
  from tzafon import AsyncComputer
89
89
 
90
90
  client = AsyncComputer(
91
- api_key=os.environ.get("COMPUTER_API_KEY"), # This is the default and can be omitted
91
+ api_key=os.environ.get("TZAFON_API_KEY"), # This is the default and can be omitted
92
92
  )
93
93
 
94
94
 
@@ -254,7 +254,7 @@ client.with_options(timeout=5.0).computers.create(
254
254
 
255
255
  On timeout, an `APITimeoutError` is thrown.
256
256
 
257
- Note that requests that time out are [retried twice by default](https://github.com/stainless-sdks/computer-python/tree/main/#retries).
257
+ Note that requests that time out are [retried twice by default](https://github.com/tzafon/computer-python/tree/main/#retries).
258
258
 
259
259
  ## Advanced
260
260
 
@@ -299,9 +299,9 @@ computer = response.parse() # get the object that `computers.create()` would ha
299
299
  print(computer.id)
300
300
  ```
301
301
 
302
- These methods return an [`APIResponse`](https://github.com/atulgavandetzafon/computer-python/tree/main/src/tzafon/_response.py) object.
302
+ These methods return an [`APIResponse`](https://github.com/tzafon/computer-python/tree/main/src/tzafon/_response.py) object.
303
303
 
304
- The async client returns an [`AsyncAPIResponse`](https://github.com/atulgavandetzafon/computer-python/tree/main/src/tzafon/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
304
+ The async client returns an [`AsyncAPIResponse`](https://github.com/tzafon/computer-python/tree/main/src/tzafon/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
305
305
 
306
306
  #### `.with_streaming_response`
307
307
 
@@ -407,7 +407,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
407
407
 
408
408
  We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
409
409
 
410
- We are keen for your feedback; please open an [issue](https://www.github.com/atulgavandetzafon/computer-python/issues) with questions, bugs, or suggestions.
410
+ We are keen for your feedback; please open an [issue](https://www.github.com/tzafon/computer-python/issues) with questions, bugs, or suggestions.
411
411
 
412
412
  ### Determining the installed version
413
413
 
@@ -426,4 +426,4 @@ Python 3.8 or higher.
426
426
 
427
427
  ## Contributing
428
428
 
429
- See [the contributing documentation](https://github.com/stainless-sdks/computer-python/tree/main/./CONTRIBUTING.md).
429
+ See [the contributing documentation](https://github.com/tzafon/computer-python/tree/main/./CONTRIBUTING.md).
@@ -1,6 +1,6 @@
1
1
  tzafon/__init__.py,sha256=V5qEHakTu5iq2ShF_TOZHw4io0UXcTp3_AQBqRpMO48,3251
2
2
  tzafon/_base_client.py,sha256=5AX9s8UF-0wXUI15A1uiRcWhTNk_I4UBpt0Q-2r0aLU,67047
3
- tzafon/_client.py,sha256=m7ceKDibSiniSrQmu95qWzuZ6AQYnbOr48m72OignKQ,15078
3
+ tzafon/_client.py,sha256=EbENZoqN6ERd3PSISUi0jGCdmxC_5-P8sONVbZaqR9w,15066
4
4
  tzafon/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
5
  tzafon/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
6
  tzafon/_exceptions.py,sha256=qi7R0qNzTGtKBt4fWynaQkMnUk3YGrIp01jis82aEdo,3224
@@ -11,7 +11,7 @@ tzafon/_resource.py,sha256=EseuwN0R4kKBVcQnyF4NgCeRtc6-OrR8yWVI5fOYGHM,1112
11
11
  tzafon/_response.py,sha256=Gaq-HHLZ76rKv515pCAMkfW4rbz_ManOH-7R640hrDE,28792
12
12
  tzafon/_streaming.py,sha256=SavIdu5Tnaelw60s19mwFijhkdhdxh1fDqZ1AoIwC0g,10108
13
13
  tzafon/_types.py,sha256=1kStHPi-XwmomGBE0xKVtz0mdRF4Svxb8NWZR4FaSiY,7236
14
- tzafon/_version.py,sha256=TZBidfvJLlbmFToakcHAuOTQwMBImDmAS92ZpV1VM3w,158
14
+ tzafon/_version.py,sha256=Xmm32ma4YAHkxQx4hLPJNHlAICiNdMqTyjv4I-XvgEI,158
15
15
  tzafon/batch_wrapper.py,sha256=ESJGxScFZzdPwDTiCjCz6-QRsoB-_nxoZuHbN9HKbUE,3509
16
16
  tzafon/client_extensions.py,sha256=Tn3SkDYNl0B8M3U8eE39KNLsazKpbztAQSmBVVmzgCQ,1964
17
17
  tzafon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,7 +29,7 @@ tzafon/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,1
29
29
  tzafon/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
30
30
  tzafon/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
31
31
  tzafon/resources/__init__.py,sha256=2tbxQpPYxwl6BYAmWlSblYFfmeBEasXs9oxh3vXRG2M,591
32
- tzafon/resources/computers.py,sha256=6qqhsaqPfnlC0Swy7CwnIdtT60GRWeVnKUm2BBHDHdc,31592
32
+ tzafon/resources/computers.py,sha256=grGWVUW6JQuF02Yrup0hUY9_FLxcPXtZYdBL1yX68N8,31548
33
33
  tzafon/types/__init__.py,sha256=kb0H5ErFRI_4U_KF2ElDt45ZTid6K1dyDjq5_VL_FKs,902
34
34
  tzafon/types/action_result.py,sha256=RE4iCBcGaUWXirCBNsjf00jLl_s173NN8-gCMtKVs0g,374
35
35
  tzafon/types/computer_create_params.py,sha256=G9rhhm8ckcLbG5tM-vHrgG19-jmfUVN0KMcHodjNs4g,553
@@ -40,7 +40,7 @@ tzafon/types/computer_keep_alive_response.py,sha256=H75ugeXG2CetcGgwwKE_cYmr_ujD
40
40
  tzafon/types/computer_list_response.py,sha256=ABykSdzQgm_bNISk_F7GQaXWRB3WidA9tXuMjmNWZps,294
41
41
  tzafon/types/computer_navigate_params.py,sha256=mK4JWt0fqafLuoXHdOh_I6j-hJY0Ub0nAUkadA20v38,294
42
42
  tzafon/types/computer_response.py,sha256=agc6iysQzQR22edcoz84CuUpzQ7WLwsxEuo8ccwIbYc,404
43
- tzafon-1.3.2.dist-info/METADATA,sha256=PZN7eYjEamTKW2VmT23Jb5y83FYN1GrqMiAoLTLAGyM,13989
44
- tzafon-1.3.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
45
- tzafon-1.3.2.dist-info/licenses/LICENSE,sha256=ciLXi9zfEehb4Tnhy-M9I2WSRUpZjx-FK1TEChVqlDo,1048
46
- tzafon-1.3.2.dist-info/RECORD,,
43
+ tzafon-2.0.0.dist-info/METADATA,sha256=2iW9BlxMc1cqphygM0H--uVmqNEOAhvLr8nsSrozjUU,13902
44
+ tzafon-2.0.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
45
+ tzafon-2.0.0.dist-info/licenses/LICENSE,sha256=ciLXi9zfEehb4Tnhy-M9I2WSRUpZjx-FK1TEChVqlDo,1048
46
+ tzafon-2.0.0.dist-info/RECORD,,
File without changes