teamdbapi 3.10.0__tar.gz → 3.11.0__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 (125) hide show
  1. teamdbapi-3.11.0/.swagger-codegen/VERSION +1 -0
  2. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/.swagger-codegen-ignore +23 -23
  3. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/LICENSE +1 -1
  4. teamdbapi-3.11.0/PKG-INFO +135 -0
  5. teamdbapi-3.11.0/README.md +115 -0
  6. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/pyproject.toml +1 -1
  7. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/assembly_api.py +44 -44
  8. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/car_api.py +9 -9
  9. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/component_api.py +12 -12
  10. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/config_api.py +1 -1
  11. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/criteria_api.py +6 -6
  12. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/edit_api.py +6 -6
  13. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/event_api.py +9 -9
  14. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/fixed_field_api.py +3 -3
  15. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/group_api.py +6 -6
  16. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/import_export_api.py +7 -7
  17. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/issue_api.py +18 -18
  18. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/lap_api.py +7 -7
  19. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/lap_report_api.py +5 -5
  20. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/model_field_api.py +7 -7
  21. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/mounting_api.py +3 -3
  22. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/notes_authorization_api.py +3 -3
  23. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/overall_api.py +1 -1
  24. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/parameter_api.py +11 -11
  25. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/parameter_binding_api.py +5 -5
  26. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/part_api.py +9 -9
  27. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/report_api.py +1 -1
  28. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/revision_api.py +14 -14
  29. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/revision_editor_selector_api.py +9 -9
  30. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/run_api.py +6 -6
  31. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/script_api.py +5 -5
  32. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/session_api.py +7 -7
  33. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/target_api.py +4 -4
  34. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/team_db_list_api.py +10 -10
  35. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/team_db_view_api.py +5 -5
  36. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/tire_api.py +6 -6
  37. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/tire_set_api.py +5 -5
  38. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/track_api.py +5 -5
  39. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/track_layout_api.py +5 -5
  40. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/update_request_api.py +2 -2
  41. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/user_api.py +5 -5
  42. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/value_field_api.py +6 -6
  43. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/version_api.py +4 -4
  44. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/configuration.py +7 -0
  45. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/part_count.py +2 -2
  46. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/team_db_list_item.py +31 -3
  47. teamdbapi-3.10.0/.swagger-codegen/VERSION +0 -1
  48. teamdbapi-3.10.0/PKG-INFO +0 -91
  49. teamdbapi-3.10.0/README.md +0 -71
  50. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/.gitignore +0 -0
  51. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/.travis.yml +0 -0
  52. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/git_push.sh +0 -0
  53. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/requirements.txt +0 -0
  54. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/setup.py +0 -0
  55. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/__init__.py +0 -0
  56. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api/__init__.py +0 -0
  57. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/api_client.py +0 -0
  58. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/__init__.py +0 -0
  59. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/add_part_car_parameter_arg.py +0 -0
  60. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/assembly.py +0 -0
  61. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/bleed_adjustment.py +0 -0
  62. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/calibration.py +0 -0
  63. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/car.py +0 -0
  64. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/car_parameters_context.py +0 -0
  65. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/compare_options.py +0 -0
  66. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/compare_result.py +0 -0
  67. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/compare_result_detail.py +0 -0
  68. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/component.py +0 -0
  69. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/copy_from_tags_args.py +0 -0
  70. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/couple_guid_text.py +0 -0
  71. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/criteria.py +0 -0
  72. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/criteria_set.py +0 -0
  73. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/criteria_value.py +0 -0
  74. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/criteria_value_detail.py +0 -0
  75. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/event.py +0 -0
  76. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/file_revision_info.py +0 -0
  77. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/fixed_field.py +0 -0
  78. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/group.py +0 -0
  79. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/import_parameters_args.py +0 -0
  80. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/import_parameters_results.py +0 -0
  81. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/import_revisions_args.py +0 -0
  82. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/import_revisions_info.py +0 -0
  83. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/import_revisions_results.py +0 -0
  84. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue.py +0 -0
  85. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue_custom_field_value.py +0 -0
  86. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue_priority.py +0 -0
  87. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue_project.py +0 -0
  88. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue_sector.py +0 -0
  89. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue_status.py +0 -0
  90. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue_type.py +0 -0
  91. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/issue_workflow.py +0 -0
  92. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/item_value.py +0 -0
  93. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/item_value_key.py +0 -0
  94. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/lap.py +0 -0
  95. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/lap_report_options.py +0 -0
  96. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/model_field.py +0 -0
  97. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/model_field_authorization.py +0 -0
  98. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/mounting.py +0 -0
  99. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/notes_authorization.py +0 -0
  100. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/notes_context.py +0 -0
  101. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/overall.py +0 -0
  102. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/parameter.py +0 -0
  103. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/parameter_binding.py +0 -0
  104. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/parameter_cross_table.py +0 -0
  105. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/part.py +0 -0
  106. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/part_car_parameters.py +0 -0
  107. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/revision.py +0 -0
  108. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/revision_value.py +0 -0
  109. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/run.py +0 -0
  110. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/script.py +0 -0
  111. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/session.py +0 -0
  112. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/string_with_font_style.py +0 -0
  113. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/target.py +0 -0
  114. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/team_db_list.py +0 -0
  115. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/tire.py +0 -0
  116. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/tire_set.py +0 -0
  117. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/track.py +0 -0
  118. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/track_layout.py +0 -0
  119. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/user.py +0 -0
  120. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/user_group.py +0 -0
  121. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/value_field.py +0 -0
  122. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/models/version.py +0 -0
  123. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/teamdbapi/rest.py +0 -0
  124. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/test-requirements.txt +0 -0
  125. {teamdbapi-3.10.0 → teamdbapi-3.11.0}/tox.ini +0 -0
@@ -0,0 +1 @@
1
+ 2.4.9
@@ -1,23 +1,23 @@
1
- # Swagger Codegen Ignore
2
- # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md
1
+ # Swagger Codegen Ignore
2
+ # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
@@ -1,4 +1,4 @@
1
- Copyright © 2025 Trackside Software
1
+ Copyright © 2026 Trackside Software
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
@@ -0,0 +1,135 @@
1
+ Metadata-Version: 2.4
2
+ Name: teamdbapi
3
+ Version: 3.11.0
4
+ Summary: Easily access the TeamDB Web API.
5
+ Keywords: teamdbapi,Trackside,Trackside Software,TeamDB
6
+ Author-email: Trackside Software <support@trackside.fr>
7
+ Requires-Python: >=3.4
8
+ Description-Content-Type: text/markdown
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3
12
+ License-File: LICENSE
13
+ Requires-Dist: certifi >= 14.05.14
14
+ Requires-Dist: six >= 1.10
15
+ Requires-Dist: python_dateutil >= 2.5.3
16
+ Requires-Dist: setuptools >= 21.0.0
17
+ Requires-Dist: urllib3 >= 1.15.1
18
+ Project-URL: Home, https://www.tracksidesoftware.fr/teamdb
19
+
20
+ # teamdbapi
21
+ This module enables you to easily access the TeamDB Web API.
22
+
23
+ - Package version: 3.11.0
24
+ - TeamDB Web API version: 2.0
25
+
26
+ ## Requirements.
27
+
28
+ - Python 3.4+
29
+ - TeamDB 3.11.0
30
+
31
+ ## Installation and usage
32
+ ### pip install
33
+
34
+ Install via [pip](https://pypi.org/project/pip/).
35
+
36
+ ```sh
37
+ pip install teamdbapi
38
+ ```
39
+
40
+ Then import the package:
41
+ ```python
42
+ import teamdbapi
43
+ ```
44
+
45
+ ## Getting Started
46
+
47
+ Please follow the installation procedure above and then, depending your TeamDB WebApi configuration, try the following :
48
+
49
+ ### Using the HTTP protocole
50
+
51
+ ```python
52
+ import teamdbapi
53
+ from teamdbapi.rest import ApiException
54
+
55
+ # Create a Configuration object
56
+ configuration = teamdbapi.Configuration()
57
+ configuration.host = "http://localhost:9001" # Replace with your TeamDB API address if different
58
+
59
+ # Create an instance of the Client API
60
+ client_api = teamdbapi.ApiClient(configuration)
61
+
62
+ # Create an instance of the Assembly API using the client_api
63
+ assembly_api = teamdbapi.AssemblyApi(client_api)
64
+
65
+ # Try to execute the request
66
+ try:
67
+
68
+ # Retrieve and print the current assembly before modification
69
+ result = assembly_api.get_current_assembly()
70
+ print(result)
71
+
72
+ # Set the desired current assembly, and print the response details
73
+ result = assembly_api.select_current_assembly_with_http_info(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554") # Replace with your own valid Assembly id.
74
+ print(result)
75
+
76
+ # Retrieve and print the current assembly after modification
77
+ result = assembly_api.get_current_assembly()
78
+ print(result)
79
+
80
+ except ApiException as e:
81
+ print("Exception when selecting the current assembly : %s\n" % e)
82
+ ```
83
+
84
+ ### Using the HTTPS protocole
85
+
86
+ ```python
87
+ import teamdbapi
88
+ from teamdbapi.rest import ApiException
89
+
90
+ # Create a Configuration object
91
+ configuration = teamdbapi.Configuration()
92
+ configuration.host = "https://localhost:9001" # Replace with your TeamDB API address if different
93
+ configuration.api_key['TDB_API_Key'] = 'user_token' # Replace {user_token} by a valid TeamDB WebApi user token.
94
+
95
+ # Create an instance of the Client API
96
+ client_api = teamdbapi.ApiClient(configuration)
97
+
98
+ # Create an instance of the Assembly API using the client_api
99
+ assembly_api = teamdbapi.AssemblyApi(client_api)
100
+
101
+ # Try to execute the request
102
+ try:
103
+
104
+ # Retrieve and print the current assembly before modification
105
+ result = assembly_api.get_current_assembly()
106
+ print(result)
107
+
108
+ # Set the desired current assembly, and print the response details
109
+ result = assembly_api.select_current_assembly_with_http_info(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554") # Replace with your own valid Assembly id.
110
+ print(result)
111
+
112
+ # Retrieve and print the current assembly after modification
113
+ result = assembly_api.get_current_assembly()
114
+ print(result)
115
+
116
+ except ApiException as e:
117
+ print("Exception when selecting the current assembly : %s\n" % e)
118
+ ```
119
+
120
+ **_NOTE:_** Each method has a detailed version (for example: select_current_assembly => select_current_assembly_with_http_info). This can be useful, for example, if you want to retrieve a detailed response: content, HTTP status code, HTTP header.
121
+
122
+ ## Documentation for API Endpoints
123
+
124
+ With a TeamDB Client, check the documentation at *http://localhost:9001* (Default value for the TeamDB Web API URL)
125
+
126
+ ## Documentation For Authorization
127
+
128
+ Endpoints are subject to the same authorization as in TeamDB.
129
+
130
+ ## Author
131
+
132
+ Trackside Software
133
+ support@trackside.fr
134
+
135
+
@@ -0,0 +1,115 @@
1
+ # teamdbapi
2
+ This module enables you to easily access the TeamDB Web API.
3
+
4
+ - Package version: 3.11.0
5
+ - TeamDB Web API version: 2.0
6
+
7
+ ## Requirements.
8
+
9
+ - Python 3.4+
10
+ - TeamDB 3.11.0
11
+
12
+ ## Installation and usage
13
+ ### pip install
14
+
15
+ Install via [pip](https://pypi.org/project/pip/).
16
+
17
+ ```sh
18
+ pip install teamdbapi
19
+ ```
20
+
21
+ Then import the package:
22
+ ```python
23
+ import teamdbapi
24
+ ```
25
+
26
+ ## Getting Started
27
+
28
+ Please follow the installation procedure above and then, depending your TeamDB WebApi configuration, try the following :
29
+
30
+ ### Using the HTTP protocole
31
+
32
+ ```python
33
+ import teamdbapi
34
+ from teamdbapi.rest import ApiException
35
+
36
+ # Create a Configuration object
37
+ configuration = teamdbapi.Configuration()
38
+ configuration.host = "http://localhost:9001" # Replace with your TeamDB API address if different
39
+
40
+ # Create an instance of the Client API
41
+ client_api = teamdbapi.ApiClient(configuration)
42
+
43
+ # Create an instance of the Assembly API using the client_api
44
+ assembly_api = teamdbapi.AssemblyApi(client_api)
45
+
46
+ # Try to execute the request
47
+ try:
48
+
49
+ # Retrieve and print the current assembly before modification
50
+ result = assembly_api.get_current_assembly()
51
+ print(result)
52
+
53
+ # Set the desired current assembly, and print the response details
54
+ result = assembly_api.select_current_assembly_with_http_info(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554") # Replace with your own valid Assembly id.
55
+ print(result)
56
+
57
+ # Retrieve and print the current assembly after modification
58
+ result = assembly_api.get_current_assembly()
59
+ print(result)
60
+
61
+ except ApiException as e:
62
+ print("Exception when selecting the current assembly : %s\n" % e)
63
+ ```
64
+
65
+ ### Using the HTTPS protocole
66
+
67
+ ```python
68
+ import teamdbapi
69
+ from teamdbapi.rest import ApiException
70
+
71
+ # Create a Configuration object
72
+ configuration = teamdbapi.Configuration()
73
+ configuration.host = "https://localhost:9001" # Replace with your TeamDB API address if different
74
+ configuration.api_key['TDB_API_Key'] = 'user_token' # Replace {user_token} by a valid TeamDB WebApi user token.
75
+
76
+ # Create an instance of the Client API
77
+ client_api = teamdbapi.ApiClient(configuration)
78
+
79
+ # Create an instance of the Assembly API using the client_api
80
+ assembly_api = teamdbapi.AssemblyApi(client_api)
81
+
82
+ # Try to execute the request
83
+ try:
84
+
85
+ # Retrieve and print the current assembly before modification
86
+ result = assembly_api.get_current_assembly()
87
+ print(result)
88
+
89
+ # Set the desired current assembly, and print the response details
90
+ result = assembly_api.select_current_assembly_with_http_info(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554") # Replace with your own valid Assembly id.
91
+ print(result)
92
+
93
+ # Retrieve and print the current assembly after modification
94
+ result = assembly_api.get_current_assembly()
95
+ print(result)
96
+
97
+ except ApiException as e:
98
+ print("Exception when selecting the current assembly : %s\n" % e)
99
+ ```
100
+
101
+ **_NOTE:_** Each method has a detailed version (for example: select_current_assembly => select_current_assembly_with_http_info). This can be useful, for example, if you want to retrieve a detailed response: content, HTTP status code, HTTP header.
102
+
103
+ ## Documentation for API Endpoints
104
+
105
+ With a TeamDB Client, check the documentation at *http://localhost:9001* (Default value for the TeamDB Web API URL)
106
+
107
+ ## Documentation For Authorization
108
+
109
+ Endpoints are subject to the same authorization as in TeamDB.
110
+
111
+ ## Author
112
+
113
+ Trackside Software
114
+ support@trackside.fr
115
+
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "teamdbapi"
7
- version = "3.10.0"
7
+ version = "3.11.0"
8
8
  description = "Easily access the TeamDB Web API."
9
9
  authors = [{name = "Trackside Software", email = "support@trackside.fr"}]
10
10
  readme = "README.md"
@@ -120,7 +120,7 @@ class AssemblyApi(object):
120
120
  ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
121
121
 
122
122
  # Authentication setting
123
- auth_settings = [] # noqa: E501
123
+ auth_settings = ['TdbApiKey'] # noqa: E501
124
124
 
125
125
  return self.api_client.call_api(
126
126
  '/teamdbapi/v2.0/assembly/{assemblyId}/addrevisions', 'POST',
@@ -225,7 +225,7 @@ class AssemblyApi(object):
225
225
  ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
226
226
 
227
227
  # Authentication setting
228
- auth_settings = [] # noqa: E501
228
+ auth_settings = ['TdbApiKey'] # noqa: E501
229
229
 
230
230
  return self.api_client.call_api(
231
231
  '/teamdbapi/v2.0/assembly/{assemblyId}/addtag', 'POST',
@@ -318,7 +318,7 @@ class AssemblyApi(object):
318
318
  ['application/json', 'text/json']) # noqa: E501
319
319
 
320
320
  # Authentication setting
321
- auth_settings = [] # noqa: E501
321
+ auth_settings = ['TdbApiKey'] # noqa: E501
322
322
 
323
323
  return self.api_client.call_api(
324
324
  '/teamdbapi/v2.0/run/{runId}/assemblies', 'GET',
@@ -336,17 +336,17 @@ class AssemblyApi(object):
336
336
  _request_timeout=params.get('_request_timeout'),
337
337
  collection_formats=collection_formats)
338
338
 
339
- def compare_assemblies(self, assembly_aid, assembly_bid, **kwargs): # noqa: E501
339
+ def compare_assemblies(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
340
340
  """[Command] Compare 2 assemblies # noqa: E501
341
341
 
342
342
  This method makes a synchronous HTTP request by default. To make an
343
343
  asynchronous HTTP request, please pass async_req=True
344
- >>> thread = api.compare_assemblies(assembly_aid, assembly_bid, async_req=True)
344
+ >>> thread = api.compare_assemblies(assembly_a_id, assembly_b_id, async_req=True)
345
345
  >>> result = thread.get()
346
346
 
347
347
  :param async_req bool
348
- :param str assembly_aid: Assembly A unique Id (required)
349
- :param str assembly_bid: Assembly B unique Id (required)
348
+ :param str assembly_a_id: Assembly A unique Id (required)
349
+ :param str assembly_b_id: Assembly B unique Id (required)
350
350
  :param CompareOptions compare_options: The import options. You can leave options empty. By defaut, there will be no filter and no file export. To apply a filter you have to fill ParametersSelectionFilters and ExcludeParametersInSelection. To export a file you must fill OutPathFilePath. The file extension will be automatically replaced by the good one. DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
351
351
  :return: list[CompareResultDetail]
352
352
  If the method is called asynchronously,
@@ -354,29 +354,29 @@ class AssemblyApi(object):
354
354
  """
355
355
  kwargs['_return_http_data_only'] = True
356
356
  if kwargs.get('async_req'):
357
- return self.compare_assemblies_with_http_info(assembly_aid, assembly_bid, **kwargs) # noqa: E501
357
+ return self.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
358
358
  else:
359
- (data) = self.compare_assemblies_with_http_info(assembly_aid, assembly_bid, **kwargs) # noqa: E501
359
+ (data) = self.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
360
360
  return data
361
361
 
362
- def compare_assemblies_with_http_info(self, assembly_aid, assembly_bid, **kwargs): # noqa: E501
362
+ def compare_assemblies_with_http_info(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
363
363
  """[Command] Compare 2 assemblies # noqa: E501
364
364
 
365
365
  This method makes a synchronous HTTP request by default. To make an
366
366
  asynchronous HTTP request, please pass async_req=True
367
- >>> thread = api.compare_assemblies_with_http_info(assembly_aid, assembly_bid, async_req=True)
367
+ >>> thread = api.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, async_req=True)
368
368
  >>> result = thread.get()
369
369
 
370
370
  :param async_req bool
371
- :param str assembly_aid: Assembly A unique Id (required)
372
- :param str assembly_bid: Assembly B unique Id (required)
371
+ :param str assembly_a_id: Assembly A unique Id (required)
372
+ :param str assembly_b_id: Assembly B unique Id (required)
373
373
  :param CompareOptions compare_options: The import options. You can leave options empty. By defaut, there will be no filter and no file export. To apply a filter you have to fill ParametersSelectionFilters and ExcludeParametersInSelection. To export a file you must fill OutPathFilePath. The file extension will be automatically replaced by the good one. DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
374
374
  :return: list[CompareResultDetail]
375
375
  If the method is called asynchronously,
376
376
  returns the request thread.
377
377
  """
378
378
 
379
- all_params = ['assembly_aid', 'assembly_bid', 'compare_options'] # noqa: E501
379
+ all_params = ['assembly_a_id', 'assembly_b_id', 'compare_options'] # noqa: E501
380
380
  all_params.append('async_req')
381
381
  all_params.append('_return_http_data_only')
382
382
  all_params.append('_preload_content')
@@ -391,24 +391,24 @@ class AssemblyApi(object):
391
391
  )
392
392
  params[key] = val
393
393
  del params['kwargs']
394
- # verify the required parameter 'assembly_aid' is set
395
- if self.api_client.client_side_validation and ('assembly_aid' not in params or
396
- params['assembly_aid'] is None): # noqa: E501
397
- raise ValueError("Missing the required parameter `assembly_aid` when calling `compare_assemblies`") # noqa: E501
398
- # verify the required parameter 'assembly_bid' is set
399
- if self.api_client.client_side_validation and ('assembly_bid' not in params or
400
- params['assembly_bid'] is None): # noqa: E501
401
- raise ValueError("Missing the required parameter `assembly_bid` when calling `compare_assemblies`") # noqa: E501
394
+ # verify the required parameter 'assembly_a_id' is set
395
+ if self.api_client.client_side_validation and ('assembly_a_id' not in params or
396
+ params['assembly_a_id'] is None): # noqa: E501
397
+ raise ValueError("Missing the required parameter `assembly_a_id` when calling `compare_assemblies`") # noqa: E501
398
+ # verify the required parameter 'assembly_b_id' is set
399
+ if self.api_client.client_side_validation and ('assembly_b_id' not in params or
400
+ params['assembly_b_id'] is None): # noqa: E501
401
+ raise ValueError("Missing the required parameter `assembly_b_id` when calling `compare_assemblies`") # noqa: E501
402
402
 
403
403
  collection_formats = {}
404
404
 
405
405
  path_params = {}
406
406
 
407
407
  query_params = []
408
- if 'assembly_aid' in params:
409
- query_params.append(('assemblyAId', params['assembly_aid'])) # noqa: E501
410
- if 'assembly_bid' in params:
411
- query_params.append(('assemblyBId', params['assembly_bid'])) # noqa: E501
408
+ if 'assembly_a_id' in params:
409
+ query_params.append(('assemblyAId', params['assembly_a_id'])) # noqa: E501
410
+ if 'assembly_b_id' in params:
411
+ query_params.append(('assemblyBId', params['assembly_b_id'])) # noqa: E501
412
412
 
413
413
  header_params = {}
414
414
 
@@ -427,7 +427,7 @@ class AssemblyApi(object):
427
427
  ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
428
428
 
429
429
  # Authentication setting
430
- auth_settings = [] # noqa: E501
430
+ auth_settings = ['TdbApiKey'] # noqa: E501
431
431
 
432
432
  return self.api_client.call_api(
433
433
  '/teamdbapi/v2.0/assembly/compare', 'POST',
@@ -526,7 +526,7 @@ class AssemblyApi(object):
526
526
  ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
527
527
 
528
528
  # Authentication setting
529
- auth_settings = [] # noqa: E501
529
+ auth_settings = ['TdbApiKey'] # noqa: E501
530
530
 
531
531
  return self.api_client.call_api(
532
532
  '/teamdbapi/v2.0/assembly', 'POST',
@@ -619,7 +619,7 @@ class AssemblyApi(object):
619
619
  ['application/json', 'text/json']) # noqa: E501
620
620
 
621
621
  # Authentication setting
622
- auth_settings = [] # noqa: E501
622
+ auth_settings = ['TdbApiKey'] # noqa: E501
623
623
 
624
624
  return self.api_client.call_api(
625
625
  '/teamdbapi/v2.0/assembly/{assemblyId}', 'DELETE',
@@ -716,7 +716,7 @@ class AssemblyApi(object):
716
716
  ['application/json', 'text/json']) # noqa: E501
717
717
 
718
718
  # Authentication setting
719
- auth_settings = [] # noqa: E501
719
+ auth_settings = ['TdbApiKey'] # noqa: E501
720
720
 
721
721
  return self.api_client.call_api(
722
722
  '/teamdbapi/v2.0/assembly/{assemblyId}/duplicate', 'POST',
@@ -817,7 +817,7 @@ class AssemblyApi(object):
817
817
  ['application/json', 'text/json']) # noqa: E501
818
818
 
819
819
  # Authentication setting
820
- auth_settings = [] # noqa: E501
820
+ auth_settings = ['TdbApiKey'] # noqa: E501
821
821
 
822
822
  return self.api_client.call_api(
823
823
  '/teamdbapi/v2.0/assembly/{assemblyId}/export', 'POST',
@@ -910,7 +910,7 @@ class AssemblyApi(object):
910
910
  ['application/json', 'text/json']) # noqa: E501
911
911
 
912
912
  # Authentication setting
913
- auth_settings = [] # noqa: E501
913
+ auth_settings = ['TdbApiKey'] # noqa: E501
914
914
 
915
915
  return self.api_client.call_api(
916
916
  '/teamdbapi/v2.0/version/{versionId}/assemblies', 'GET',
@@ -1003,7 +1003,7 @@ class AssemblyApi(object):
1003
1003
  ['application/json', 'text/json']) # noqa: E501
1004
1004
 
1005
1005
  # Authentication setting
1006
- auth_settings = [] # noqa: E501
1006
+ auth_settings = ['TdbApiKey'] # noqa: E501
1007
1007
 
1008
1008
  return self.api_client.call_api(
1009
1009
  '/teamdbapi/v2.0/assembly/{assemblyId}', 'GET',
@@ -1088,7 +1088,7 @@ class AssemblyApi(object):
1088
1088
  ['application/json', 'text/json']) # noqa: E501
1089
1089
 
1090
1090
  # Authentication setting
1091
- auth_settings = [] # noqa: E501
1091
+ auth_settings = ['TdbApiKey'] # noqa: E501
1092
1092
 
1093
1093
  return self.api_client.call_api(
1094
1094
  '/teamdbapi/v2.0/assembly/current', 'GET',
@@ -1181,7 +1181,7 @@ class AssemblyApi(object):
1181
1181
  ['application/json', 'text/json']) # noqa: E501
1182
1182
 
1183
1183
  # Authentication setting
1184
- auth_settings = [] # noqa: E501
1184
+ auth_settings = ['TdbApiKey'] # noqa: E501
1185
1185
 
1186
1186
  return self.api_client.call_api(
1187
1187
  '/teamdbapi/v2.0/assembly/{assemblyId}/grouprevisions', 'GET',
@@ -1282,7 +1282,7 @@ class AssemblyApi(object):
1282
1282
  ['application/json', 'text/json']) # noqa: E501
1283
1283
 
1284
1284
  # Authentication setting
1285
- auth_settings = [] # noqa: E501
1285
+ auth_settings = ['TdbApiKey'] # noqa: E501
1286
1286
 
1287
1287
  return self.api_client.call_api(
1288
1288
  '/teamdbapi/v2.0/assembly/{assemblyId}/group/{groupId}/revisions', 'GET',
@@ -1383,7 +1383,7 @@ class AssemblyApi(object):
1383
1383
  ['application/json', 'text/json']) # noqa: E501
1384
1384
 
1385
1385
  # Authentication setting
1386
- auth_settings = [] # noqa: E501
1386
+ auth_settings = ['TdbApiKey'] # noqa: E501
1387
1387
 
1388
1388
  return self.api_client.call_api(
1389
1389
  '/teamdbapi/v2.0/assembly/import', 'POST',
@@ -1484,7 +1484,7 @@ class AssemblyApi(object):
1484
1484
  ['application/json', 'text/json']) # noqa: E501
1485
1485
 
1486
1486
  # Authentication setting
1487
- auth_settings = [] # noqa: E501
1487
+ auth_settings = ['TdbApiKey'] # noqa: E501
1488
1488
 
1489
1489
  return self.api_client.call_api(
1490
1490
  '/teamdbapi/v2.0/run/{runId}/linkassembly', 'POST',
@@ -1585,7 +1585,7 @@ class AssemblyApi(object):
1585
1585
  ['application/json', 'text/json']) # noqa: E501
1586
1586
 
1587
1587
  # Authentication setting
1588
- auth_settings = [] # noqa: E501
1588
+ auth_settings = ['TdbApiKey'] # noqa: E501
1589
1589
 
1590
1590
  return self.api_client.call_api(
1591
1591
  '/teamdbapi/v2.0/assembly/{assemblyId}/lock', 'POST',
@@ -1690,7 +1690,7 @@ class AssemblyApi(object):
1690
1690
  ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1691
1691
 
1692
1692
  # Authentication setting
1693
- auth_settings = [] # noqa: E501
1693
+ auth_settings = ['TdbApiKey'] # noqa: E501
1694
1694
 
1695
1695
  return self.api_client.call_api(
1696
1696
  '/teamdbapi/v2.0/assembly/{assemblyId}/removerevisions', 'POST',
@@ -1791,7 +1791,7 @@ class AssemblyApi(object):
1791
1791
  ['application/json', 'text/json']) # noqa: E501
1792
1792
 
1793
1793
  # Authentication setting
1794
- auth_settings = [] # noqa: E501
1794
+ auth_settings = ['TdbApiKey'] # noqa: E501
1795
1795
 
1796
1796
  return self.api_client.call_api(
1797
1797
  '/teamdbapi/v2.0/assembly/{assemblyId}/removetag', 'POST',
@@ -1884,7 +1884,7 @@ class AssemblyApi(object):
1884
1884
  ['application/json', 'text/json']) # noqa: E501
1885
1885
 
1886
1886
  # Authentication setting
1887
- auth_settings = [] # noqa: E501
1887
+ auth_settings = ['TdbApiKey'] # noqa: E501
1888
1888
 
1889
1889
  return self.api_client.call_api(
1890
1890
  '/teamdbapi/v2.0/assembly/current', 'POST',
@@ -1985,7 +1985,7 @@ class AssemblyApi(object):
1985
1985
  ['application/json', 'text/json']) # noqa: E501
1986
1986
 
1987
1987
  # Authentication setting
1988
- auth_settings = [] # noqa: E501
1988
+ auth_settings = ['TdbApiKey'] # noqa: E501
1989
1989
 
1990
1990
  return self.api_client.call_api(
1991
1991
  '/teamdbapi/v2.0/run/{runId}/unlinkassembly', 'POST',
@@ -2090,7 +2090,7 @@ class AssemblyApi(object):
2090
2090
  ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
2091
2091
 
2092
2092
  # Authentication setting
2093
- auth_settings = [] # noqa: E501
2093
+ auth_settings = ['TdbApiKey'] # noqa: E501
2094
2094
 
2095
2095
  return self.api_client.call_api(
2096
2096
  '/teamdbapi/v2.0/assembly/{assemblyId}', 'PUT',