satnogs-db-api-client 1.70__tar.gz → 1.72__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 (76) hide show
  1. {satnogs_db_api_client-1.70/satnogs_db_api_client.egg-info → satnogs_db_api_client-1.72}/PKG-INFO +1 -1
  2. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72/satnogs_db_api_client.egg-info}/PKG-INFO +1 -1
  3. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogs_db_api_client.egg-info/SOURCES.txt +4 -0
  4. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/__init__.py +2 -0
  5. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/_version.py +3 -3
  6. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/__init__.py +1 -0
  7. satnogs_db_api_client-1.72/satnogsdbapiclient/api/decoded_frame_api.py +313 -0
  8. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/__init__.py +1 -0
  9. satnogs_db_api_client-1.72/satnogsdbapiclient/models/inline_decoded_frame_request.py +95 -0
  10. satnogs_db_api_client-1.72/satnogsdbapiclient/test/test_decoded_frame_api.py +38 -0
  11. satnogs_db_api_client-1.72/satnogsdbapiclient/test/test_inline_decoded_frame_request.py +55 -0
  12. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/LICENSE +0 -0
  13. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/MANIFEST.in +0 -0
  14. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/README.md +0 -0
  15. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/pyproject.toml +0 -0
  16. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogs_db_api_client.egg-info/dependency_links.txt +0 -0
  17. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogs_db_api_client.egg-info/requires.txt +0 -0
  18. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogs_db_api_client.egg-info/top_level.txt +0 -0
  19. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/artifacts_api.py +0 -0
  20. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/modes_api.py +0 -0
  21. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/optical_observations_api.py +0 -0
  22. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/satellites_api.py +0 -0
  23. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/telemetry_api.py +0 -0
  24. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/tle_api.py +0 -0
  25. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api/transmitters_api.py +0 -0
  26. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api_client.py +0 -0
  27. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/api_response.py +0 -0
  28. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/configuration.py +0 -0
  29. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/exceptions.py +0 -0
  30. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/artifact.py +0 -0
  31. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/iaru_coordination_enum.py +0 -0
  32. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/latest_tle_set.py +0 -0
  33. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/mode.py +0 -0
  34. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/new_artifact.py +0 -0
  35. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/optical_identification.py +0 -0
  36. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/optical_observation.py +0 -0
  37. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/optical_observation_create.py +0 -0
  38. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/paginated_artifact_list.py +0 -0
  39. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/paginated_telemetry_list.py +0 -0
  40. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/satellite.py +0 -0
  41. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/service_enum.py +0 -0
  42. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/status_enum.py +0 -0
  43. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/telemetry.py +0 -0
  44. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/telemetry_request.py +0 -0
  45. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/transmitter.py +0 -0
  46. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/transmitter_request.py +0 -0
  47. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/models/type_enum.py +0 -0
  48. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/rest.py +0 -0
  49. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/__init__.py +0 -0
  50. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_artifact.py +0 -0
  51. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_artifacts_api.py +0 -0
  52. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_iaru_coordination_enum.py +0 -0
  53. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_latest_tle_set.py +0 -0
  54. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_mode.py +0 -0
  55. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_modes_api.py +0 -0
  56. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_new_artifact.py +0 -0
  57. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_optical_identification.py +0 -0
  58. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_optical_observation.py +0 -0
  59. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_optical_observation_create.py +0 -0
  60. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_optical_observations_api.py +0 -0
  61. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_paginated_artifact_list.py +0 -0
  62. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_paginated_telemetry_list.py +0 -0
  63. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_satellite.py +0 -0
  64. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_satellites_api.py +0 -0
  65. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_service_enum.py +0 -0
  66. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_status_enum.py +0 -0
  67. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_telemetry.py +0 -0
  68. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_telemetry_api.py +0 -0
  69. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_telemetry_request.py +0 -0
  70. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_tle_api.py +0 -0
  71. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_transmitter.py +0 -0
  72. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_transmitter_request.py +0 -0
  73. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_transmitters_api.py +0 -0
  74. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/satnogsdbapiclient/test/test_type_enum.py +0 -0
  75. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/setup.cfg +0 -0
  76. {satnogs_db_api_client-1.70 → satnogs_db_api_client-1.72}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: satnogs-db-api-client
3
- Version: 1.70
3
+ Version: 1.72
4
4
  Summary: SatNOGS DB API Client
5
5
  Home-page: https://gitlab.com/librespacefoundation/satnogs/satnogs-db
6
6
  Author: SatNOGS project
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: satnogs-db-api-client
3
- Version: 1.70
3
+ Version: 1.72
4
4
  Summary: SatNOGS DB API Client
5
5
  Home-page: https://gitlab.com/librespacefoundation/satnogs/satnogs-db
6
6
  Author: SatNOGS project
@@ -18,6 +18,7 @@ satnogsdbapiclient/exceptions.py
18
18
  satnogsdbapiclient/rest.py
19
19
  satnogsdbapiclient/api/__init__.py
20
20
  satnogsdbapiclient/api/artifacts_api.py
21
+ satnogsdbapiclient/api/decoded_frame_api.py
21
22
  satnogsdbapiclient/api/modes_api.py
22
23
  satnogsdbapiclient/api/optical_observations_api.py
23
24
  satnogsdbapiclient/api/satellites_api.py
@@ -27,6 +28,7 @@ satnogsdbapiclient/api/transmitters_api.py
27
28
  satnogsdbapiclient/models/__init__.py
28
29
  satnogsdbapiclient/models/artifact.py
29
30
  satnogsdbapiclient/models/iaru_coordination_enum.py
31
+ satnogsdbapiclient/models/inline_decoded_frame_request.py
30
32
  satnogsdbapiclient/models/latest_tle_set.py
31
33
  satnogsdbapiclient/models/mode.py
32
34
  satnogsdbapiclient/models/new_artifact.py
@@ -46,7 +48,9 @@ satnogsdbapiclient/models/type_enum.py
46
48
  satnogsdbapiclient/test/__init__.py
47
49
  satnogsdbapiclient/test/test_artifact.py
48
50
  satnogsdbapiclient/test/test_artifacts_api.py
51
+ satnogsdbapiclient/test/test_decoded_frame_api.py
49
52
  satnogsdbapiclient/test/test_iaru_coordination_enum.py
53
+ satnogsdbapiclient/test/test_inline_decoded_frame_request.py
50
54
  satnogsdbapiclient/test/test_latest_tle_set.py
51
55
  satnogsdbapiclient/test/test_mode.py
52
56
  satnogsdbapiclient/test/test_modes_api.py
@@ -19,6 +19,7 @@ __version__ = "1.0.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from satnogsdbapiclient.api.artifacts_api import ArtifactsApi
22
+ from satnogsdbapiclient.api.decoded_frame_api import DecodedFrameApi
22
23
  from satnogsdbapiclient.api.modes_api import ModesApi
23
24
  from satnogsdbapiclient.api.optical_observations_api import OpticalObservationsApi
24
25
  from satnogsdbapiclient.api.satellites_api import SatellitesApi
@@ -40,6 +41,7 @@ from satnogsdbapiclient.exceptions import ApiException
40
41
  # import models into sdk package
41
42
  from satnogsdbapiclient.models.artifact import Artifact
42
43
  from satnogsdbapiclient.models.iaru_coordination_enum import IaruCoordinationEnum
44
+ from satnogsdbapiclient.models.inline_decoded_frame_request import InlineDecodedFrameRequest
43
45
  from satnogsdbapiclient.models.latest_tle_set import LatestTleSet
44
46
  from satnogsdbapiclient.models.mode import Mode
45
47
  from satnogsdbapiclient.models.new_artifact import NewArtifact
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-09-10T17:17:28+0300",
11
+ "date": "2025-11-19T10:16:33+0200",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "91d45b93f457ce02a55b74552ec2ae7b770e7c10",
15
- "version": "1.70"
14
+ "full-revisionid": "68e7f6211868e5814fb5f2a44ac5e56b010bd4ca",
15
+ "version": "1.72"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  # import apis into api package
4
4
  from satnogsdbapiclient.api.artifacts_api import ArtifactsApi
5
+ from satnogsdbapiclient.api.decoded_frame_api import DecodedFrameApi
5
6
  from satnogsdbapiclient.api.modes_api import ModesApi
6
7
  from satnogsdbapiclient.api.optical_observations_api import OpticalObservationsApi
7
8
  from satnogsdbapiclient.api.satellites_api import SatellitesApi
@@ -0,0 +1,313 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ SatNOGS DB
5
+
6
+ SatNOGS DB is a crowdsourced database of details about orbital satellites and data collected from them.
7
+
8
+ The version of the OpenAPI document: 1.1
9
+ Contact: dev@satnogs.org
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import StrictStr
21
+ from satnogsdbapiclient.models.inline_decoded_frame_request import InlineDecodedFrameRequest
22
+
23
+ from satnogsdbapiclient.api_client import ApiClient, RequestSerialized
24
+ from satnogsdbapiclient.api_response import ApiResponse
25
+ from satnogsdbapiclient.rest import RESTResponseType
26
+
27
+
28
+ class DecodedFrameApi:
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None) -> None:
36
+ if api_client is None:
37
+ api_client = ApiClient.get_default()
38
+ self.api_client = api_client
39
+
40
+
41
+ @validate_call
42
+ def decoded_frame_create(
43
+ self,
44
+ inline_decoded_frame_request: InlineDecodedFrameRequest,
45
+ _request_timeout: Union[
46
+ None,
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Tuple[
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Annotated[StrictFloat, Field(gt=0)]
51
+ ]
52
+ ] = None,
53
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
54
+ _content_type: Optional[StrictStr] = None,
55
+ _headers: Optional[Dict[StrictStr, Any]] = None,
56
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
+ ) -> str:
58
+ """decoded_frame_create
59
+
60
+ A view for receiving externally decoded frames e.g. from YAMCS
61
+
62
+ :param inline_decoded_frame_request: (required)
63
+ :type inline_decoded_frame_request: InlineDecodedFrameRequest
64
+ :param _request_timeout: timeout setting for this request. If one
65
+ number provided, it will be total request
66
+ timeout. It can also be a pair (tuple) of
67
+ (connection, read) timeouts.
68
+ :type _request_timeout: int, tuple(int, int), optional
69
+ :param _request_auth: set to override the auth_settings for an a single
70
+ request; this effectively ignores the
71
+ authentication in the spec for a single request.
72
+ :type _request_auth: dict, optional
73
+ :param _content_type: force content-type for the request.
74
+ :type _content_type: str, Optional
75
+ :param _headers: set to override the headers for a single
76
+ request; this effectively ignores the headers
77
+ in the spec for a single request.
78
+ :type _headers: dict, optional
79
+ :param _host_index: set to override the host_index for a single
80
+ request; this effectively ignores the host_index
81
+ in the spec for a single request.
82
+ :type _host_index: int, optional
83
+ :return: Returns the result object.
84
+ """ # noqa: E501
85
+
86
+ _param = self._decoded_frame_create_serialize(
87
+ inline_decoded_frame_request=inline_decoded_frame_request,
88
+ _request_auth=_request_auth,
89
+ _content_type=_content_type,
90
+ _headers=_headers,
91
+ _host_index=_host_index
92
+ )
93
+
94
+ _response_types_map: Dict[str, Optional[str]] = {
95
+ '200': "str",
96
+ }
97
+ response_data = self.api_client.call_api(
98
+ *_param,
99
+ _request_timeout=_request_timeout
100
+ )
101
+ response_data.read()
102
+ return self.api_client.response_deserialize(
103
+ response_data=response_data,
104
+ response_types_map=_response_types_map,
105
+ ).data
106
+
107
+
108
+ @validate_call
109
+ def decoded_frame_create_with_http_info(
110
+ self,
111
+ inline_decoded_frame_request: InlineDecodedFrameRequest,
112
+ _request_timeout: Union[
113
+ None,
114
+ Annotated[StrictFloat, Field(gt=0)],
115
+ Tuple[
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Annotated[StrictFloat, Field(gt=0)]
118
+ ]
119
+ ] = None,
120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
121
+ _content_type: Optional[StrictStr] = None,
122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
+ ) -> ApiResponse[str]:
125
+ """decoded_frame_create
126
+
127
+ A view for receiving externally decoded frames e.g. from YAMCS
128
+
129
+ :param inline_decoded_frame_request: (required)
130
+ :type inline_decoded_frame_request: InlineDecodedFrameRequest
131
+ :param _request_timeout: timeout setting for this request. If one
132
+ number provided, it will be total request
133
+ timeout. It can also be a pair (tuple) of
134
+ (connection, read) timeouts.
135
+ :type _request_timeout: int, tuple(int, int), optional
136
+ :param _request_auth: set to override the auth_settings for an a single
137
+ request; this effectively ignores the
138
+ authentication in the spec for a single request.
139
+ :type _request_auth: dict, optional
140
+ :param _content_type: force content-type for the request.
141
+ :type _content_type: str, Optional
142
+ :param _headers: set to override the headers for a single
143
+ request; this effectively ignores the headers
144
+ in the spec for a single request.
145
+ :type _headers: dict, optional
146
+ :param _host_index: set to override the host_index for a single
147
+ request; this effectively ignores the host_index
148
+ in the spec for a single request.
149
+ :type _host_index: int, optional
150
+ :return: Returns the result object.
151
+ """ # noqa: E501
152
+
153
+ _param = self._decoded_frame_create_serialize(
154
+ inline_decoded_frame_request=inline_decoded_frame_request,
155
+ _request_auth=_request_auth,
156
+ _content_type=_content_type,
157
+ _headers=_headers,
158
+ _host_index=_host_index
159
+ )
160
+
161
+ _response_types_map: Dict[str, Optional[str]] = {
162
+ '200': "str",
163
+ }
164
+ response_data = self.api_client.call_api(
165
+ *_param,
166
+ _request_timeout=_request_timeout
167
+ )
168
+ response_data.read()
169
+ return self.api_client.response_deserialize(
170
+ response_data=response_data,
171
+ response_types_map=_response_types_map,
172
+ )
173
+
174
+
175
+ @validate_call
176
+ def decoded_frame_create_without_preload_content(
177
+ self,
178
+ inline_decoded_frame_request: InlineDecodedFrameRequest,
179
+ _request_timeout: Union[
180
+ None,
181
+ Annotated[StrictFloat, Field(gt=0)],
182
+ Tuple[
183
+ Annotated[StrictFloat, Field(gt=0)],
184
+ Annotated[StrictFloat, Field(gt=0)]
185
+ ]
186
+ ] = None,
187
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
188
+ _content_type: Optional[StrictStr] = None,
189
+ _headers: Optional[Dict[StrictStr, Any]] = None,
190
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
191
+ ) -> RESTResponseType:
192
+ """decoded_frame_create
193
+
194
+ A view for receiving externally decoded frames e.g. from YAMCS
195
+
196
+ :param inline_decoded_frame_request: (required)
197
+ :type inline_decoded_frame_request: InlineDecodedFrameRequest
198
+ :param _request_timeout: timeout setting for this request. If one
199
+ number provided, it will be total request
200
+ timeout. It can also be a pair (tuple) of
201
+ (connection, read) timeouts.
202
+ :type _request_timeout: int, tuple(int, int), optional
203
+ :param _request_auth: set to override the auth_settings for an a single
204
+ request; this effectively ignores the
205
+ authentication in the spec for a single request.
206
+ :type _request_auth: dict, optional
207
+ :param _content_type: force content-type for the request.
208
+ :type _content_type: str, Optional
209
+ :param _headers: set to override the headers for a single
210
+ request; this effectively ignores the headers
211
+ in the spec for a single request.
212
+ :type _headers: dict, optional
213
+ :param _host_index: set to override the host_index for a single
214
+ request; this effectively ignores the host_index
215
+ in the spec for a single request.
216
+ :type _host_index: int, optional
217
+ :return: Returns the result object.
218
+ """ # noqa: E501
219
+
220
+ _param = self._decoded_frame_create_serialize(
221
+ inline_decoded_frame_request=inline_decoded_frame_request,
222
+ _request_auth=_request_auth,
223
+ _content_type=_content_type,
224
+ _headers=_headers,
225
+ _host_index=_host_index
226
+ )
227
+
228
+ _response_types_map: Dict[str, Optional[str]] = {
229
+ '200': "str",
230
+ }
231
+ response_data = self.api_client.call_api(
232
+ *_param,
233
+ _request_timeout=_request_timeout
234
+ )
235
+ return response_data.response
236
+
237
+
238
+ def _decoded_frame_create_serialize(
239
+ self,
240
+ inline_decoded_frame_request,
241
+ _request_auth,
242
+ _content_type,
243
+ _headers,
244
+ _host_index,
245
+ ) -> RequestSerialized:
246
+
247
+ _host = None
248
+
249
+ _collection_formats: Dict[str, str] = {
250
+ }
251
+
252
+ _path_params: Dict[str, str] = {}
253
+ _query_params: List[Tuple[str, str]] = []
254
+ _header_params: Dict[str, Optional[str]] = _headers or {}
255
+ _form_params: List[Tuple[str, str]] = []
256
+ _files: Dict[
257
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
258
+ ] = {}
259
+ _body_params: Optional[bytes] = None
260
+
261
+ # process the path parameters
262
+ # process the query parameters
263
+ # process the header parameters
264
+ # process the form parameters
265
+ # process the body parameter
266
+ if inline_decoded_frame_request is not None:
267
+ _body_params = inline_decoded_frame_request
268
+
269
+
270
+ # set the HTTP header `Accept`
271
+ if 'Accept' not in _header_params:
272
+ _header_params['Accept'] = self.api_client.select_header_accept(
273
+ [
274
+ 'application/json'
275
+ ]
276
+ )
277
+
278
+ # set the HTTP header `Content-Type`
279
+ if _content_type:
280
+ _header_params['Content-Type'] = _content_type
281
+ else:
282
+ _default_content_type = (
283
+ self.api_client.select_header_content_type(
284
+ [
285
+ 'application/json'
286
+ ]
287
+ )
288
+ )
289
+ if _default_content_type is not None:
290
+ _header_params['Content-Type'] = _default_content_type
291
+
292
+ # authentication setting
293
+ _auth_settings: List[str] = [
294
+ 'tokenAuth',
295
+ 'cookieAuth'
296
+ ]
297
+
298
+ return self.api_client.param_serialize(
299
+ method='POST',
300
+ resource_path='/api/decoded_frame/',
301
+ path_params=_path_params,
302
+ query_params=_query_params,
303
+ header_params=_header_params,
304
+ body=_body_params,
305
+ post_params=_form_params,
306
+ files=_files,
307
+ auth_settings=_auth_settings,
308
+ collection_formats=_collection_formats,
309
+ _host=_host,
310
+ _request_auth=_request_auth
311
+ )
312
+
313
+
@@ -17,6 +17,7 @@
17
17
  # import models into model package
18
18
  from satnogsdbapiclient.models.artifact import Artifact
19
19
  from satnogsdbapiclient.models.iaru_coordination_enum import IaruCoordinationEnum
20
+ from satnogsdbapiclient.models.inline_decoded_frame_request import InlineDecodedFrameRequest
20
21
  from satnogsdbapiclient.models.latest_tle_set import LatestTleSet
21
22
  from satnogsdbapiclient.models.mode import Mode
22
23
  from satnogsdbapiclient.models.new_artifact import NewArtifact
@@ -0,0 +1,95 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ SatNOGS DB
5
+
6
+ SatNOGS DB is a crowdsourced database of details about orbital satellites and data collected from them.
7
+
8
+ The version of the OpenAPI document: 1.1
9
+ Contact: dev@satnogs.org
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, StrictInt
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class InlineDecodedFrameRequest(BaseModel):
27
+ """
28
+ InlineDecodedFrameRequest
29
+ """ # noqa: E501
30
+ frame_id: StrictInt
31
+ decoded_data: Optional[Any]
32
+ __properties: ClassVar[List[str]] = ["frame_id", "decoded_data"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of InlineDecodedFrameRequest from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ ])
67
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ # set to None if decoded_data (nullable) is None
74
+ # and model_fields_set contains the field
75
+ if self.decoded_data is None and "decoded_data" in self.model_fields_set:
76
+ _dict['decoded_data'] = None
77
+
78
+ return _dict
79
+
80
+ @classmethod
81
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
82
+ """Create an instance of InlineDecodedFrameRequest from a dict"""
83
+ if obj is None:
84
+ return None
85
+
86
+ if not isinstance(obj, dict):
87
+ return cls.model_validate(obj)
88
+
89
+ _obj = cls.model_validate({
90
+ "frame_id": obj.get("frame_id"),
91
+ "decoded_data": obj.get("decoded_data")
92
+ })
93
+ return _obj
94
+
95
+
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ SatNOGS DB
5
+
6
+ SatNOGS DB is a crowdsourced database of details about orbital satellites and data collected from them.
7
+
8
+ The version of the OpenAPI document: 1.1
9
+ Contact: dev@satnogs.org
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ import unittest
17
+
18
+ from satnogsdbapiclient.api.decoded_frame_api import DecodedFrameApi
19
+
20
+
21
+ class TestDecodedFrameApi(unittest.TestCase):
22
+ """DecodedFrameApi unit test stubs"""
23
+
24
+ def setUp(self) -> None:
25
+ self.api = DecodedFrameApi()
26
+
27
+ def tearDown(self) -> None:
28
+ pass
29
+
30
+ def test_decoded_frame_create(self) -> None:
31
+ """Test case for decoded_frame_create
32
+
33
+ """
34
+ pass
35
+
36
+
37
+ if __name__ == '__main__':
38
+ unittest.main()
@@ -0,0 +1,55 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ SatNOGS DB
5
+
6
+ SatNOGS DB is a crowdsourced database of details about orbital satellites and data collected from them.
7
+
8
+ The version of the OpenAPI document: 1.1
9
+ Contact: dev@satnogs.org
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ import unittest
17
+
18
+ from satnogsdbapiclient.models.inline_decoded_frame_request import InlineDecodedFrameRequest
19
+
20
+ class TestInlineDecodedFrameRequest(unittest.TestCase):
21
+ """InlineDecodedFrameRequest unit test stubs"""
22
+
23
+ def setUp(self):
24
+ pass
25
+
26
+ def tearDown(self):
27
+ pass
28
+
29
+ def make_instance(self, include_optional) -> InlineDecodedFrameRequest:
30
+ """Test InlineDecodedFrameRequest
31
+ include_optional is a boolean, when False only required
32
+ params are included, when True both required and
33
+ optional params are included """
34
+ # uncomment below to create an instance of `InlineDecodedFrameRequest`
35
+ """
36
+ model = InlineDecodedFrameRequest()
37
+ if include_optional:
38
+ return InlineDecodedFrameRequest(
39
+ frame_id = 56,
40
+ decoded_data = None
41
+ )
42
+ else:
43
+ return InlineDecodedFrameRequest(
44
+ frame_id = 56,
45
+ decoded_data = None,
46
+ )
47
+ """
48
+
49
+ def testInlineDecodedFrameRequest(self):
50
+ """Test InlineDecodedFrameRequest"""
51
+ # inst_req_only = self.make_instance(include_optional=False)
52
+ # inst_req_and_optional = self.make_instance(include_optional=True)
53
+
54
+ if __name__ == '__main__':
55
+ unittest.main()