catalystwan 2.0.0a0__tar.gz → 2.0.0a1__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.
Files changed (37) hide show
  1. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/PKG-INFO +7 -96
  2. catalystwan-2.0.0a1/README.rst +38 -0
  3. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/pyproject.toml +7 -7
  4. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/models/deserialize.py +1 -0
  5. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan.egg-info/PKG-INFO +7 -96
  6. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan.egg-info/SOURCES.txt +1 -1
  7. catalystwan-2.0.0a1/src/catalystwan.egg-info/requires.txt +20 -0
  8. catalystwan-2.0.0a0/README.md +0 -88
  9. catalystwan-2.0.0a0/src/catalystwan.egg-info/requires.txt +0 -20
  10. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/LICENSE +0 -0
  11. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/setup.cfg +0 -0
  12. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/__init__.py +0 -0
  13. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/abstractions.py +0 -0
  14. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/apigw_auth.py +0 -0
  15. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/client.py +0 -0
  16. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/encoder.py +0 -0
  17. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/exceptions.py +0 -0
  18. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/loader.py +0 -0
  19. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/metadata.py +0 -0
  20. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/models/__init__.py +0 -0
  21. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/models/serialize.py +0 -0
  22. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/py.typed +0 -0
  23. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/request_adapter.py +0 -0
  24. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/request_limiter.py +0 -0
  25. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/response.py +0 -0
  26. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/session.py +0 -0
  27. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/types.py +0 -0
  28. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/version.py +0 -0
  29. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan/core/vmanage_auth.py +0 -0
  30. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan.egg-info/dependency_links.txt +0 -0
  31. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/src/catalystwan.egg-info/top_level.txt +0 -0
  32. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/tests/test_ft_deserialize.py +0 -0
  33. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/tests/test_ft_serialize.py +0 -0
  34. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/tests/test_model_deserialize.py +0 -0
  35. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/tests/test_model_serialize.py +0 -0
  36. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/tests/test_parcel_deserialize.py +0 -0
  37. {catalystwan-2.0.0a0 → catalystwan-2.0.0a1}/tests/test_parcel_serialize.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: catalystwan
3
- Version: 2.0.0a0
3
+ Version: 2.0.0a1
4
4
  Summary: Cisco Catalyst WAN SDK for Python
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -225,103 +225,14 @@ Requires-Dist: requests>=2.32.3
225
225
  Requires-Dist: typing-extensions>=4.12.2
226
226
  Requires-Dist: urllib3>=2.2.2
227
227
  Requires-Dist: catalystwan-types==2.0.0a0
228
- Requires-Dist: catalystwan-v20-15==2.0.0a0
229
- Requires-Dist: catalystwan-v20-16==2.0.0a0
228
+ Requires-Dist: catalystwan-v20-15==2.0.0a1
229
+ Requires-Dist: catalystwan-v20-16==2.0.0a1
230
230
  Provides-Extra: test
231
231
  Requires-Dist: pytest>=8.2.2; extra == "test"
232
232
  Provides-Extra: ver-all
233
- Requires-Dist: catalystwan-v20-15==2.0.0a0; extra == "ver-all"
234
- Requires-Dist: catalystwan-v20-16==2.0.0a0; extra == "ver-all"
233
+ Requires-Dist: catalystwan-v20-15==2.0.0a1; extra == "ver-all"
234
+ Requires-Dist: catalystwan-v20-16==2.0.0a1; extra == "ver-all"
235
235
  Provides-Extra: ver-2015
236
- Requires-Dist: catalystwan-v20-15==2.0.0a0; extra == "ver-2015"
236
+ Requires-Dist: catalystwan-v20-15==2.0.0a1; extra == "ver-2015"
237
237
  Provides-Extra: ver-2016
238
- Requires-Dist: catalystwan-v20-16==2.0.0a0; extra == "ver-2016"
239
-
240
- Cisco Catalyst WAN SDK 2.0
241
- ==========================
242
-
243
- Welcome to the official documentation for the Cisco Catalyst WAN SDK, a package designed for creating simple and parallel automatic requests via the official SD-WAN Manager API.
244
-
245
- Overview
246
- --------
247
-
248
- Cisco Catalyst WAN SDK serves as a multiple session handler (provider, provider as a tenant, tenant) and is environment-independent. You just need a connection to any SD-WAN Manager.
249
-
250
- Supported Catalystwan WAN Server Versions
251
- -----------------------------------------
252
-
253
- - 20.15
254
- - 20.16
255
-
256
- Important Notice: Version Incompatibility
257
- -----------------------------------------
258
-
259
- Cisco Catalyst WAN SDK Version 2.0 Incompatibility with Legacy Versions
260
- We are excited to announce the release of Cisco Catalyst WAN SDK version 2.0.
261
- This new version introduces a range of enhancements and features designed
262
- to improve performance and usability. However, it is important to note that version 2.0
263
- is not compatible with any previous legacy versions of the SDK.
264
-
265
- Actions Recommended:
266
- Backup: Ensure you have backups of your current projects before attempting to upgrade.
267
- Review Documentation: Carefully review the updated documentation and release notes for guidance on migration and new features.
268
- Test Thoroughly: Test your projects thoroughly in a development environment before deploying version 2.0 in production.
269
-
270
- We appreciate your understanding and cooperation as we continue to enhance the Cisco Catalyst WAN SDK. Should you have any questions or require assistance, please reach out through our support channels.
271
-
272
- Thank you for your continued support and feedback!
273
-
274
-
275
- Installation
276
- ------------
277
-
278
- To install the SDK, run the following command:
279
-
280
- ```bash
281
- pip install catalystwan
282
- ```
283
-
284
- Supported Python Versions
285
- -------------------------
286
-
287
- Python >= 3.8
288
-
289
-
290
- Getting Started
291
- ---------------
292
-
293
- To execute SDK APIs, you need to create a `ApiClient`. Use the `create_client()` method to configure a session, perform authentication, and obtain a `ApiClient` instance in an operational state.
294
-
295
- ### Example Usage
296
-
297
- Here's a quick example of how to use the SDK:
298
-
299
- ```python
300
- from catalystwan.core import create_client
301
-
302
- url = "example.com"
303
- username = "admin"
304
- password = "password123"
305
-
306
- with create_client(url=url, username=username, password=password) as client:
307
- result = client.health.devices.get_devices_health()
308
- print(result)
309
- ```
310
-
311
- If you need to preform more complex operations that require models, they can utilize an alias: `m`.
312
- ```python
313
-
314
- with create_client(...) as client:
315
- result = client.admin.aaa.update_aaa_config(
316
- client.admin.aaa.m.Aaa(
317
- accounting: True,
318
- admin_auth_order: False,
319
- audit_disable: False,
320
- auth_fallback: False,
321
- auth_order: ["local"]
322
- )
323
- )
324
- print(result)
325
- ```
326
-
327
- Using an alias allows for easier access and management of models, simplifying workflows and improving efficiency. This approach helps streamline operations without requiring direct integration with underlying models, making them more user-friendly and scalable.
238
+ Requires-Dist: catalystwan-v20-16==2.0.0a1; extra == "ver-2016"
@@ -0,0 +1,38 @@
1
+ Cisco Catalyst WAN SDK 2.0 :: Core
2
+ ==================================
3
+
4
+ Welcome to the official documentation for the Cisco Catalyst WAN SDK, a package designed for creating simple and parallel automatic requests via the official SD-WAN Manager API.
5
+
6
+ Overview
7
+ ========
8
+ Cisco Catalyst WAN SDK serves as a multiple session handler (provider, provider as a tenant, tenant) and is environment-independent. You just need a connection to any SD-WAN Manager.
9
+
10
+
11
+ Important Notice: Version Incompatibility
12
+ =========================================
13
+
14
+ Cisco Catalyst WAN SDK Version 2.0 Incompatibility with Legacy Versions
15
+ We are excited to announce the release of Cisco Catalyst WAN SDK version 2.0. This new version introduces a range of enhancements and features designed to improve performance and usability. However, it is important to note that version 2.0 is not compatible with any previous legacy versions of the SDK.
16
+
17
+ Actions Recommended:
18
+ Backup: Ensure you have backups of your current projects before attempting to upgrade.
19
+ Review Documentation: Carefully review the updated documentation and release notes for guidance on migration and new features.
20
+ Test Thoroughly: Test your projects thoroughly in a development environment before deploying version 2.0 in production.
21
+
22
+ We appreciate your understanding and cooperation as we continue to enhance the Cisco Catalyst WAN SDK. Should you have any questions or require assistance, please reach out through our support channels.
23
+
24
+ Thank you for your continued support and feedback!
25
+
26
+
27
+ Installation
28
+ ============
29
+ To install the SDK, run the following command:
30
+
31
+ .. code-block:: bash
32
+
33
+ pip install catalystwan
34
+
35
+ Supported Python Versions
36
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
37
+ Python >= 3.8
38
+
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "catalystwan"
3
- version = "2.0.0a0"
3
+ version = "2.0.0a1"
4
4
  description = "Cisco Catalyst WAN SDK for Python"
5
5
  dependencies = [
6
6
  "packaging >= 23.0",
@@ -8,8 +8,8 @@ dependencies = [
8
8
  "typing-extensions >= 4.12.2",
9
9
  "urllib3 >=2.2.2",
10
10
  "catalystwan-types == 2.0.0a0",
11
- "catalystwan-v20-15 == 2.0.0a0",
12
- "catalystwan-v20-16 == 2.0.0a0"
11
+ "catalystwan-v20-15 == 2.0.0a1",
12
+ "catalystwan-v20-16 == 2.0.0a1"
13
13
  ]
14
14
  readme = "README.md"
15
15
  license = {file = "LICENSE"}
@@ -40,14 +40,14 @@ test = [
40
40
  "pytest>=8.2.2",
41
41
  ]
42
42
  "ver-all" = [
43
- "catalystwan-v20-15 == 2.0.0a0",
44
- "catalystwan-v20-16 == 2.0.0a0",
43
+ "catalystwan-v20-15 == 2.0.0a1",
44
+ "catalystwan-v20-16 == 2.0.0a1",
45
45
  ]
46
46
  "ver-2015" = [
47
- "catalystwan-v20-15 == 2.0.0a0",
47
+ "catalystwan-v20-15 == 2.0.0a1",
48
48
  ]
49
49
  "ver-2016" = [
50
- "catalystwan-v20-16 == 2.0.0a0",
50
+ "catalystwan-v20-16 == 2.0.0a1",
51
51
  ]
52
52
  # for nox
53
53
  [dependency-groups]
@@ -47,6 +47,7 @@ class ModelDeserializer:
47
47
 
48
48
  def __check_errors(self):
49
49
  if self._exceptions:
50
+ print(self._exceptions)
50
51
  # Put exceptions from current model first
51
52
  self._exceptions.sort(key=lambda x: isinstance(x, CatalystwanModelValidationError))
52
53
  current_model_errors = sum(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: catalystwan
3
- Version: 2.0.0a0
3
+ Version: 2.0.0a1
4
4
  Summary: Cisco Catalyst WAN SDK for Python
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -225,103 +225,14 @@ Requires-Dist: requests>=2.32.3
225
225
  Requires-Dist: typing-extensions>=4.12.2
226
226
  Requires-Dist: urllib3>=2.2.2
227
227
  Requires-Dist: catalystwan-types==2.0.0a0
228
- Requires-Dist: catalystwan-v20-15==2.0.0a0
229
- Requires-Dist: catalystwan-v20-16==2.0.0a0
228
+ Requires-Dist: catalystwan-v20-15==2.0.0a1
229
+ Requires-Dist: catalystwan-v20-16==2.0.0a1
230
230
  Provides-Extra: test
231
231
  Requires-Dist: pytest>=8.2.2; extra == "test"
232
232
  Provides-Extra: ver-all
233
- Requires-Dist: catalystwan-v20-15==2.0.0a0; extra == "ver-all"
234
- Requires-Dist: catalystwan-v20-16==2.0.0a0; extra == "ver-all"
233
+ Requires-Dist: catalystwan-v20-15==2.0.0a1; extra == "ver-all"
234
+ Requires-Dist: catalystwan-v20-16==2.0.0a1; extra == "ver-all"
235
235
  Provides-Extra: ver-2015
236
- Requires-Dist: catalystwan-v20-15==2.0.0a0; extra == "ver-2015"
236
+ Requires-Dist: catalystwan-v20-15==2.0.0a1; extra == "ver-2015"
237
237
  Provides-Extra: ver-2016
238
- Requires-Dist: catalystwan-v20-16==2.0.0a0; extra == "ver-2016"
239
-
240
- Cisco Catalyst WAN SDK 2.0
241
- ==========================
242
-
243
- Welcome to the official documentation for the Cisco Catalyst WAN SDK, a package designed for creating simple and parallel automatic requests via the official SD-WAN Manager API.
244
-
245
- Overview
246
- --------
247
-
248
- Cisco Catalyst WAN SDK serves as a multiple session handler (provider, provider as a tenant, tenant) and is environment-independent. You just need a connection to any SD-WAN Manager.
249
-
250
- Supported Catalystwan WAN Server Versions
251
- -----------------------------------------
252
-
253
- - 20.15
254
- - 20.16
255
-
256
- Important Notice: Version Incompatibility
257
- -----------------------------------------
258
-
259
- Cisco Catalyst WAN SDK Version 2.0 Incompatibility with Legacy Versions
260
- We are excited to announce the release of Cisco Catalyst WAN SDK version 2.0.
261
- This new version introduces a range of enhancements and features designed
262
- to improve performance and usability. However, it is important to note that version 2.0
263
- is not compatible with any previous legacy versions of the SDK.
264
-
265
- Actions Recommended:
266
- Backup: Ensure you have backups of your current projects before attempting to upgrade.
267
- Review Documentation: Carefully review the updated documentation and release notes for guidance on migration and new features.
268
- Test Thoroughly: Test your projects thoroughly in a development environment before deploying version 2.0 in production.
269
-
270
- We appreciate your understanding and cooperation as we continue to enhance the Cisco Catalyst WAN SDK. Should you have any questions or require assistance, please reach out through our support channels.
271
-
272
- Thank you for your continued support and feedback!
273
-
274
-
275
- Installation
276
- ------------
277
-
278
- To install the SDK, run the following command:
279
-
280
- ```bash
281
- pip install catalystwan
282
- ```
283
-
284
- Supported Python Versions
285
- -------------------------
286
-
287
- Python >= 3.8
288
-
289
-
290
- Getting Started
291
- ---------------
292
-
293
- To execute SDK APIs, you need to create a `ApiClient`. Use the `create_client()` method to configure a session, perform authentication, and obtain a `ApiClient` instance in an operational state.
294
-
295
- ### Example Usage
296
-
297
- Here's a quick example of how to use the SDK:
298
-
299
- ```python
300
- from catalystwan.core import create_client
301
-
302
- url = "example.com"
303
- username = "admin"
304
- password = "password123"
305
-
306
- with create_client(url=url, username=username, password=password) as client:
307
- result = client.health.devices.get_devices_health()
308
- print(result)
309
- ```
310
-
311
- If you need to preform more complex operations that require models, they can utilize an alias: `m`.
312
- ```python
313
-
314
- with create_client(...) as client:
315
- result = client.admin.aaa.update_aaa_config(
316
- client.admin.aaa.m.Aaa(
317
- accounting: True,
318
- admin_auth_order: False,
319
- audit_disable: False,
320
- auth_fallback: False,
321
- auth_order: ["local"]
322
- )
323
- )
324
- print(result)
325
- ```
326
-
327
- Using an alias allows for easier access and management of models, simplifying workflows and improving efficiency. This approach helps streamline operations without requiring direct integration with underlying models, making them more user-friendly and scalable.
238
+ Requires-Dist: catalystwan-v20-16==2.0.0a1; extra == "ver-2016"
@@ -1,5 +1,5 @@
1
1
  LICENSE
2
- README.md
2
+ README.rst
3
3
  pyproject.toml
4
4
  src/catalystwan.egg-info/PKG-INFO
5
5
  src/catalystwan.egg-info/SOURCES.txt
@@ -0,0 +1,20 @@
1
+ packaging>=23.0
2
+ requests>=2.32.3
3
+ typing-extensions>=4.12.2
4
+ urllib3>=2.2.2
5
+ catalystwan-types==2.0.0a0
6
+ catalystwan-v20-15==2.0.0a1
7
+ catalystwan-v20-16==2.0.0a1
8
+
9
+ [test]
10
+ pytest>=8.2.2
11
+
12
+ [ver-2015]
13
+ catalystwan-v20-15==2.0.0a1
14
+
15
+ [ver-2016]
16
+ catalystwan-v20-16==2.0.0a1
17
+
18
+ [ver-all]
19
+ catalystwan-v20-15==2.0.0a1
20
+ catalystwan-v20-16==2.0.0a1
@@ -1,88 +0,0 @@
1
- Cisco Catalyst WAN SDK 2.0
2
- ==========================
3
-
4
- Welcome to the official documentation for the Cisco Catalyst WAN SDK, a package designed for creating simple and parallel automatic requests via the official SD-WAN Manager API.
5
-
6
- Overview
7
- --------
8
-
9
- Cisco Catalyst WAN SDK serves as a multiple session handler (provider, provider as a tenant, tenant) and is environment-independent. You just need a connection to any SD-WAN Manager.
10
-
11
- Supported Catalystwan WAN Server Versions
12
- -----------------------------------------
13
-
14
- - 20.15
15
- - 20.16
16
-
17
- Important Notice: Version Incompatibility
18
- -----------------------------------------
19
-
20
- Cisco Catalyst WAN SDK Version 2.0 Incompatibility with Legacy Versions
21
- We are excited to announce the release of Cisco Catalyst WAN SDK version 2.0.
22
- This new version introduces a range of enhancements and features designed
23
- to improve performance and usability. However, it is important to note that version 2.0
24
- is not compatible with any previous legacy versions of the SDK.
25
-
26
- Actions Recommended:
27
- Backup: Ensure you have backups of your current projects before attempting to upgrade.
28
- Review Documentation: Carefully review the updated documentation and release notes for guidance on migration and new features.
29
- Test Thoroughly: Test your projects thoroughly in a development environment before deploying version 2.0 in production.
30
-
31
- We appreciate your understanding and cooperation as we continue to enhance the Cisco Catalyst WAN SDK. Should you have any questions or require assistance, please reach out through our support channels.
32
-
33
- Thank you for your continued support and feedback!
34
-
35
-
36
- Installation
37
- ------------
38
-
39
- To install the SDK, run the following command:
40
-
41
- ```bash
42
- pip install catalystwan
43
- ```
44
-
45
- Supported Python Versions
46
- -------------------------
47
-
48
- Python >= 3.8
49
-
50
-
51
- Getting Started
52
- ---------------
53
-
54
- To execute SDK APIs, you need to create a `ApiClient`. Use the `create_client()` method to configure a session, perform authentication, and obtain a `ApiClient` instance in an operational state.
55
-
56
- ### Example Usage
57
-
58
- Here's a quick example of how to use the SDK:
59
-
60
- ```python
61
- from catalystwan.core import create_client
62
-
63
- url = "example.com"
64
- username = "admin"
65
- password = "password123"
66
-
67
- with create_client(url=url, username=username, password=password) as client:
68
- result = client.health.devices.get_devices_health()
69
- print(result)
70
- ```
71
-
72
- If you need to preform more complex operations that require models, they can utilize an alias: `m`.
73
- ```python
74
-
75
- with create_client(...) as client:
76
- result = client.admin.aaa.update_aaa_config(
77
- client.admin.aaa.m.Aaa(
78
- accounting: True,
79
- admin_auth_order: False,
80
- audit_disable: False,
81
- auth_fallback: False,
82
- auth_order: ["local"]
83
- )
84
- )
85
- print(result)
86
- ```
87
-
88
- Using an alias allows for easier access and management of models, simplifying workflows and improving efficiency. This approach helps streamline operations without requiring direct integration with underlying models, making them more user-friendly and scalable.
@@ -1,20 +0,0 @@
1
- packaging>=23.0
2
- requests>=2.32.3
3
- typing-extensions>=4.12.2
4
- urllib3>=2.2.2
5
- catalystwan-types==2.0.0a0
6
- catalystwan-v20-15==2.0.0a0
7
- catalystwan-v20-16==2.0.0a0
8
-
9
- [test]
10
- pytest>=8.2.2
11
-
12
- [ver-2015]
13
- catalystwan-v20-15==2.0.0a0
14
-
15
- [ver-2016]
16
- catalystwan-v20-16==2.0.0a0
17
-
18
- [ver-all]
19
- catalystwan-v20-15==2.0.0a0
20
- catalystwan-v20-16==2.0.0a0
File without changes
File without changes