satnogs-db-api-client 1.79__tar.gz → 1.81__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 (92) hide show
  1. {satnogs_db_api_client-1.79/satnogs_db_api_client.egg-info → satnogs_db_api_client-1.81}/PKG-INFO +1 -1
  2. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81/satnogs_db_api_client.egg-info}/PKG-INFO +1 -1
  3. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogs_db_api_client.egg-info/SOURCES.txt +14 -4
  4. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/__init__.py +7 -2
  5. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/_version.py +3 -3
  6. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/__init__.py +3 -0
  7. satnogs_db_api_client-1.81/satnogsdbapiclient/api/asids_api.py +338 -0
  8. satnogs_db_api_client-1.81/satnogsdbapiclient/api/orbital_api.py +707 -0
  9. satnogs_db_api_client-1.81/satnogsdbapiclient/api/satellite_data_api.py +338 -0
  10. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/tle_api.py +9 -289
  11. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/__init__.py +4 -2
  12. satnogs_db_api_client-1.79/satnogsdbapiclient/models/tle.py → satnogs_db_api_client-1.81/satnogsdbapiclient/models/historical_tle.py +30 -17
  13. satnogs_db_api_client-1.81/satnogsdbapiclient/models/orbital_data.py +142 -0
  14. satnogs_db_api_client-1.81/satnogsdbapiclient/models/paginated_historical_tle_list.py +110 -0
  15. satnogs_db_api_client-1.79/satnogsdbapiclient/models/paginated_tle_list.py → satnogs_db_api_client-1.81/satnogsdbapiclient/models/paginated_orbital_data_list.py +7 -7
  16. satnogs_db_api_client-1.81/satnogsdbapiclient/test/test_asids_api.py +38 -0
  17. satnogs_db_api_client-1.79/satnogsdbapiclient/test/test_tle.py → satnogs_db_api_client-1.81/satnogsdbapiclient/test/test_historical_tle.py +23 -19
  18. satnogs_db_api_client-1.81/satnogsdbapiclient/test/test_orbital_api.py +44 -0
  19. satnogs_db_api_client-1.81/satnogsdbapiclient/test/test_orbital_data.py +99 -0
  20. satnogs_db_api_client-1.79/satnogsdbapiclient/test/test_paginated_tle_list.py → satnogs_db_api_client-1.81/satnogsdbapiclient/test/test_paginated_historical_tle_list.py +27 -27
  21. satnogs_db_api_client-1.81/satnogsdbapiclient/test/test_paginated_orbital_data_list.py +109 -0
  22. satnogs_db_api_client-1.81/satnogsdbapiclient/test/test_satellite_data_api.py +38 -0
  23. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_tle_api.py +0 -6
  24. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/LICENSE +0 -0
  25. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/MANIFEST.in +0 -0
  26. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/README.md +0 -0
  27. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/pyproject.toml +0 -0
  28. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogs_db_api_client.egg-info/dependency_links.txt +0 -0
  29. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogs_db_api_client.egg-info/requires.txt +0 -0
  30. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogs_db_api_client.egg-info/top_level.txt +0 -0
  31. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/artifacts_api.py +0 -0
  32. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/decoded_frame_api.py +0 -0
  33. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/modes_api.py +0 -0
  34. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/optical_observations_api.py +0 -0
  35. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/satellites_api.py +0 -0
  36. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/telemetry_api.py +0 -0
  37. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/transmitter_params_schemas_api.py +0 -0
  38. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api/transmitters_api.py +0 -0
  39. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api_client.py +0 -0
  40. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/api_response.py +0 -0
  41. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/configuration.py +0 -0
  42. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/exceptions.py +0 -0
  43. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/artifact.py +0 -0
  44. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/iaru_coordination_enum.py +0 -0
  45. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/inline_decoded_frame_request.py +0 -0
  46. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/latest_tle_set.py +0 -0
  47. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/mode.py +0 -0
  48. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/new_artifact.py +0 -0
  49. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/optical_identification.py +0 -0
  50. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/optical_observation.py +0 -0
  51. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/optical_observation_create.py +0 -0
  52. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/paginated_artifact_list.py +0 -0
  53. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/paginated_telemetry_list.py +0 -0
  54. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/satellite.py +0 -0
  55. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/service_enum.py +0 -0
  56. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/status_enum.py +0 -0
  57. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/telemetry.py +0 -0
  58. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/telemetry_request.py +0 -0
  59. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/transmitter.py +0 -0
  60. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/transmitter_params_schema.py +0 -0
  61. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/models/type_enum.py +0 -0
  62. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/rest.py +0 -0
  63. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/__init__.py +0 -0
  64. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_artifact.py +0 -0
  65. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_artifacts_api.py +0 -0
  66. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_decoded_frame_api.py +0 -0
  67. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_iaru_coordination_enum.py +0 -0
  68. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_inline_decoded_frame_request.py +0 -0
  69. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_latest_tle_set.py +0 -0
  70. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_mode.py +0 -0
  71. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_modes_api.py +0 -0
  72. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_new_artifact.py +0 -0
  73. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_optical_identification.py +0 -0
  74. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_optical_observation.py +0 -0
  75. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_optical_observation_create.py +0 -0
  76. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_optical_observations_api.py +0 -0
  77. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_paginated_artifact_list.py +0 -0
  78. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_paginated_telemetry_list.py +0 -0
  79. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_satellite.py +0 -0
  80. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_satellites_api.py +0 -0
  81. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_service_enum.py +0 -0
  82. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_status_enum.py +0 -0
  83. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_telemetry.py +0 -0
  84. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_telemetry_api.py +0 -0
  85. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_telemetry_request.py +0 -0
  86. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_transmitter.py +0 -0
  87. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_transmitter_params_schema.py +0 -0
  88. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_transmitter_params_schemas_api.py +0 -0
  89. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_transmitters_api.py +0 -0
  90. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/satnogsdbapiclient/test/test_type_enum.py +0 -0
  91. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/setup.cfg +0 -0
  92. {satnogs_db_api_client-1.79 → satnogs_db_api_client-1.81}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: satnogs-db-api-client
3
- Version: 1.79
3
+ Version: 1.81
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.79
3
+ Version: 1.81
4
4
  Summary: SatNOGS DB API Client
5
5
  Home-page: https://gitlab.com/librespacefoundation/satnogs/satnogs-db
6
6
  Author: SatNOGS project
@@ -18,9 +18,12 @@ satnogsdbapiclient/exceptions.py
18
18
  satnogsdbapiclient/rest.py
19
19
  satnogsdbapiclient/api/__init__.py
20
20
  satnogsdbapiclient/api/artifacts_api.py
21
+ satnogsdbapiclient/api/asids_api.py
21
22
  satnogsdbapiclient/api/decoded_frame_api.py
22
23
  satnogsdbapiclient/api/modes_api.py
23
24
  satnogsdbapiclient/api/optical_observations_api.py
25
+ satnogsdbapiclient/api/orbital_api.py
26
+ satnogsdbapiclient/api/satellite_data_api.py
24
27
  satnogsdbapiclient/api/satellites_api.py
25
28
  satnogsdbapiclient/api/telemetry_api.py
26
29
  satnogsdbapiclient/api/tle_api.py
@@ -28,6 +31,7 @@ satnogsdbapiclient/api/transmitter_params_schemas_api.py
28
31
  satnogsdbapiclient/api/transmitters_api.py
29
32
  satnogsdbapiclient/models/__init__.py
30
33
  satnogsdbapiclient/models/artifact.py
34
+ satnogsdbapiclient/models/historical_tle.py
31
35
  satnogsdbapiclient/models/iaru_coordination_enum.py
32
36
  satnogsdbapiclient/models/inline_decoded_frame_request.py
33
37
  satnogsdbapiclient/models/latest_tle_set.py
@@ -36,22 +40,25 @@ satnogsdbapiclient/models/new_artifact.py
36
40
  satnogsdbapiclient/models/optical_identification.py
37
41
  satnogsdbapiclient/models/optical_observation.py
38
42
  satnogsdbapiclient/models/optical_observation_create.py
43
+ satnogsdbapiclient/models/orbital_data.py
39
44
  satnogsdbapiclient/models/paginated_artifact_list.py
45
+ satnogsdbapiclient/models/paginated_historical_tle_list.py
46
+ satnogsdbapiclient/models/paginated_orbital_data_list.py
40
47
  satnogsdbapiclient/models/paginated_telemetry_list.py
41
- satnogsdbapiclient/models/paginated_tle_list.py
42
48
  satnogsdbapiclient/models/satellite.py
43
49
  satnogsdbapiclient/models/service_enum.py
44
50
  satnogsdbapiclient/models/status_enum.py
45
51
  satnogsdbapiclient/models/telemetry.py
46
52
  satnogsdbapiclient/models/telemetry_request.py
47
- satnogsdbapiclient/models/tle.py
48
53
  satnogsdbapiclient/models/transmitter.py
49
54
  satnogsdbapiclient/models/transmitter_params_schema.py
50
55
  satnogsdbapiclient/models/type_enum.py
51
56
  satnogsdbapiclient/test/__init__.py
52
57
  satnogsdbapiclient/test/test_artifact.py
53
58
  satnogsdbapiclient/test/test_artifacts_api.py
59
+ satnogsdbapiclient/test/test_asids_api.py
54
60
  satnogsdbapiclient/test/test_decoded_frame_api.py
61
+ satnogsdbapiclient/test/test_historical_tle.py
55
62
  satnogsdbapiclient/test/test_iaru_coordination_enum.py
56
63
  satnogsdbapiclient/test/test_inline_decoded_frame_request.py
57
64
  satnogsdbapiclient/test/test_latest_tle_set.py
@@ -62,17 +69,20 @@ satnogsdbapiclient/test/test_optical_identification.py
62
69
  satnogsdbapiclient/test/test_optical_observation.py
63
70
  satnogsdbapiclient/test/test_optical_observation_create.py
64
71
  satnogsdbapiclient/test/test_optical_observations_api.py
72
+ satnogsdbapiclient/test/test_orbital_api.py
73
+ satnogsdbapiclient/test/test_orbital_data.py
65
74
  satnogsdbapiclient/test/test_paginated_artifact_list.py
75
+ satnogsdbapiclient/test/test_paginated_historical_tle_list.py
76
+ satnogsdbapiclient/test/test_paginated_orbital_data_list.py
66
77
  satnogsdbapiclient/test/test_paginated_telemetry_list.py
67
- satnogsdbapiclient/test/test_paginated_tle_list.py
68
78
  satnogsdbapiclient/test/test_satellite.py
79
+ satnogsdbapiclient/test/test_satellite_data_api.py
69
80
  satnogsdbapiclient/test/test_satellites_api.py
70
81
  satnogsdbapiclient/test/test_service_enum.py
71
82
  satnogsdbapiclient/test/test_status_enum.py
72
83
  satnogsdbapiclient/test/test_telemetry.py
73
84
  satnogsdbapiclient/test/test_telemetry_api.py
74
85
  satnogsdbapiclient/test/test_telemetry_request.py
75
- satnogsdbapiclient/test/test_tle.py
76
86
  satnogsdbapiclient/test/test_tle_api.py
77
87
  satnogsdbapiclient/test/test_transmitter.py
78
88
  satnogsdbapiclient/test/test_transmitter_params_schema.py
@@ -19,9 +19,12 @@ __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.asids_api import AsidsApi
22
23
  from satnogsdbapiclient.api.decoded_frame_api import DecodedFrameApi
23
24
  from satnogsdbapiclient.api.modes_api import ModesApi
24
25
  from satnogsdbapiclient.api.optical_observations_api import OpticalObservationsApi
26
+ from satnogsdbapiclient.api.orbital_api import OrbitalApi
27
+ from satnogsdbapiclient.api.satellite_data_api import SatelliteDataApi
25
28
  from satnogsdbapiclient.api.satellites_api import SatellitesApi
26
29
  from satnogsdbapiclient.api.telemetry_api import TelemetryApi
27
30
  from satnogsdbapiclient.api.tle_api import TleApi
@@ -41,6 +44,7 @@ from satnogsdbapiclient.exceptions import ApiException
41
44
 
42
45
  # import models into sdk package
43
46
  from satnogsdbapiclient.models.artifact import Artifact
47
+ from satnogsdbapiclient.models.historical_tle import HistoricalTle
44
48
  from satnogsdbapiclient.models.iaru_coordination_enum import IaruCoordinationEnum
45
49
  from satnogsdbapiclient.models.inline_decoded_frame_request import InlineDecodedFrameRequest
46
50
  from satnogsdbapiclient.models.latest_tle_set import LatestTleSet
@@ -49,15 +53,16 @@ from satnogsdbapiclient.models.new_artifact import NewArtifact
49
53
  from satnogsdbapiclient.models.optical_identification import OpticalIdentification
50
54
  from satnogsdbapiclient.models.optical_observation import OpticalObservation
51
55
  from satnogsdbapiclient.models.optical_observation_create import OpticalObservationCreate
56
+ from satnogsdbapiclient.models.orbital_data import OrbitalData
52
57
  from satnogsdbapiclient.models.paginated_artifact_list import PaginatedArtifactList
58
+ from satnogsdbapiclient.models.paginated_historical_tle_list import PaginatedHistoricalTleList
59
+ from satnogsdbapiclient.models.paginated_orbital_data_list import PaginatedOrbitalDataList
53
60
  from satnogsdbapiclient.models.paginated_telemetry_list import PaginatedTelemetryList
54
- from satnogsdbapiclient.models.paginated_tle_list import PaginatedTleList
55
61
  from satnogsdbapiclient.models.satellite import Satellite
56
62
  from satnogsdbapiclient.models.service_enum import ServiceEnum
57
63
  from satnogsdbapiclient.models.status_enum import StatusEnum
58
64
  from satnogsdbapiclient.models.telemetry import Telemetry
59
65
  from satnogsdbapiclient.models.telemetry_request import TelemetryRequest
60
- from satnogsdbapiclient.models.tle import Tle
61
66
  from satnogsdbapiclient.models.transmitter import Transmitter
62
67
  from satnogsdbapiclient.models.transmitter_params_schema import TransmitterParamsSchema
63
68
  from satnogsdbapiclient.models.type_enum import TypeEnum
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2026-09-29T23:54:42+0300",
11
+ "date": "2026-11-20T18:22:07+0200",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "e6ea806331a3d075c88eab1890a41ab8bcb93f7d",
15
- "version": "1.79"
14
+ "full-revisionid": "226991598f9746f9db64a17d2ebb0ff9fc9b3b88",
15
+ "version": "1.81"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -2,9 +2,12 @@
2
2
 
3
3
  # import apis into api package
4
4
  from satnogsdbapiclient.api.artifacts_api import ArtifactsApi
5
+ from satnogsdbapiclient.api.asids_api import AsidsApi
5
6
  from satnogsdbapiclient.api.decoded_frame_api import DecodedFrameApi
6
7
  from satnogsdbapiclient.api.modes_api import ModesApi
7
8
  from satnogsdbapiclient.api.optical_observations_api import OpticalObservationsApi
9
+ from satnogsdbapiclient.api.orbital_api import OrbitalApi
10
+ from satnogsdbapiclient.api.satellite_data_api import SatelliteDataApi
8
11
  from satnogsdbapiclient.api.satellites_api import SatellitesApi
9
12
  from satnogsdbapiclient.api.telemetry_api import TelemetryApi
10
13
  from satnogsdbapiclient.api.tle_api import TleApi
@@ -0,0 +1,338 @@
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 Field, StrictInt
21
+ from typing import Optional
22
+ from typing_extensions import Annotated
23
+
24
+ from satnogsdbapiclient.api_client import ApiClient, RequestSerialized
25
+ from satnogsdbapiclient.api_response import ApiResponse
26
+ from satnogsdbapiclient.rest import RESTResponseType
27
+
28
+
29
+ class AsidsApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def asids_create(
44
+ self,
45
+ version: Optional[Annotated[str, Field(strict=True, max_length=45)]] = None,
46
+ observation_id: Optional[StrictInt] = None,
47
+ station_id: Optional[StrictInt] = None,
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> None:
61
+ """asids_create
62
+
63
+ Creates an authenticated frame of telemetry data by NORAD ID.
64
+
65
+ :param version:
66
+ :type version: str
67
+ :param observation_id:
68
+ :type observation_id: int
69
+ :param station_id:
70
+ :type station_id: int
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._asids_create_serialize(
94
+ version=version,
95
+ observation_id=observation_id,
96
+ station_id=station_id,
97
+ _request_auth=_request_auth,
98
+ _content_type=_content_type,
99
+ _headers=_headers,
100
+ _host_index=_host_index
101
+ )
102
+
103
+ _response_types_map: Dict[str, Optional[str]] = {
104
+ '201': None,
105
+ }
106
+ response_data = self.api_client.call_api(
107
+ *_param,
108
+ _request_timeout=_request_timeout
109
+ )
110
+ response_data.read()
111
+ return self.api_client.response_deserialize(
112
+ response_data=response_data,
113
+ response_types_map=_response_types_map,
114
+ ).data
115
+
116
+
117
+ @validate_call
118
+ def asids_create_with_http_info(
119
+ self,
120
+ version: Optional[Annotated[str, Field(strict=True, max_length=45)]] = None,
121
+ observation_id: Optional[StrictInt] = None,
122
+ station_id: Optional[StrictInt] = None,
123
+ _request_timeout: Union[
124
+ None,
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Tuple[
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Annotated[StrictFloat, Field(gt=0)]
129
+ ]
130
+ ] = None,
131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
132
+ _content_type: Optional[StrictStr] = None,
133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
135
+ ) -> ApiResponse[None]:
136
+ """asids_create
137
+
138
+ Creates an authenticated frame of telemetry data by NORAD ID.
139
+
140
+ :param version:
141
+ :type version: str
142
+ :param observation_id:
143
+ :type observation_id: int
144
+ :param station_id:
145
+ :type station_id: int
146
+ :param _request_timeout: timeout setting for this request. If one
147
+ number provided, it will be total request
148
+ timeout. It can also be a pair (tuple) of
149
+ (connection, read) timeouts.
150
+ :type _request_timeout: int, tuple(int, int), optional
151
+ :param _request_auth: set to override the auth_settings for an a single
152
+ request; this effectively ignores the
153
+ authentication in the spec for a single request.
154
+ :type _request_auth: dict, optional
155
+ :param _content_type: force content-type for the request.
156
+ :type _content_type: str, Optional
157
+ :param _headers: set to override the headers for a single
158
+ request; this effectively ignores the headers
159
+ in the spec for a single request.
160
+ :type _headers: dict, optional
161
+ :param _host_index: set to override the host_index for a single
162
+ request; this effectively ignores the host_index
163
+ in the spec for a single request.
164
+ :type _host_index: int, optional
165
+ :return: Returns the result object.
166
+ """ # noqa: E501
167
+
168
+ _param = self._asids_create_serialize(
169
+ version=version,
170
+ observation_id=observation_id,
171
+ station_id=station_id,
172
+ _request_auth=_request_auth,
173
+ _content_type=_content_type,
174
+ _headers=_headers,
175
+ _host_index=_host_index
176
+ )
177
+
178
+ _response_types_map: Dict[str, Optional[str]] = {
179
+ '201': None,
180
+ }
181
+ response_data = self.api_client.call_api(
182
+ *_param,
183
+ _request_timeout=_request_timeout
184
+ )
185
+ response_data.read()
186
+ return self.api_client.response_deserialize(
187
+ response_data=response_data,
188
+ response_types_map=_response_types_map,
189
+ )
190
+
191
+
192
+ @validate_call
193
+ def asids_create_without_preload_content(
194
+ self,
195
+ version: Optional[Annotated[str, Field(strict=True, max_length=45)]] = None,
196
+ observation_id: Optional[StrictInt] = None,
197
+ station_id: Optional[StrictInt] = None,
198
+ _request_timeout: Union[
199
+ None,
200
+ Annotated[StrictFloat, Field(gt=0)],
201
+ Tuple[
202
+ Annotated[StrictFloat, Field(gt=0)],
203
+ Annotated[StrictFloat, Field(gt=0)]
204
+ ]
205
+ ] = None,
206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
207
+ _content_type: Optional[StrictStr] = None,
208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
210
+ ) -> RESTResponseType:
211
+ """asids_create
212
+
213
+ Creates an authenticated frame of telemetry data by NORAD ID.
214
+
215
+ :param version:
216
+ :type version: str
217
+ :param observation_id:
218
+ :type observation_id: int
219
+ :param station_id:
220
+ :type station_id: int
221
+ :param _request_timeout: timeout setting for this request. If one
222
+ number provided, it will be total request
223
+ timeout. It can also be a pair (tuple) of
224
+ (connection, read) timeouts.
225
+ :type _request_timeout: int, tuple(int, int), optional
226
+ :param _request_auth: set to override the auth_settings for an a single
227
+ request; this effectively ignores the
228
+ authentication in the spec for a single request.
229
+ :type _request_auth: dict, optional
230
+ :param _content_type: force content-type for the request.
231
+ :type _content_type: str, Optional
232
+ :param _headers: set to override the headers for a single
233
+ request; this effectively ignores the headers
234
+ in the spec for a single request.
235
+ :type _headers: dict, optional
236
+ :param _host_index: set to override the host_index for a single
237
+ request; this effectively ignores the host_index
238
+ in the spec for a single request.
239
+ :type _host_index: int, optional
240
+ :return: Returns the result object.
241
+ """ # noqa: E501
242
+
243
+ _param = self._asids_create_serialize(
244
+ version=version,
245
+ observation_id=observation_id,
246
+ station_id=station_id,
247
+ _request_auth=_request_auth,
248
+ _content_type=_content_type,
249
+ _headers=_headers,
250
+ _host_index=_host_index
251
+ )
252
+
253
+ _response_types_map: Dict[str, Optional[str]] = {
254
+ '201': None,
255
+ }
256
+ response_data = self.api_client.call_api(
257
+ *_param,
258
+ _request_timeout=_request_timeout
259
+ )
260
+ return response_data.response
261
+
262
+
263
+ def _asids_create_serialize(
264
+ self,
265
+ version,
266
+ observation_id,
267
+ station_id,
268
+ _request_auth,
269
+ _content_type,
270
+ _headers,
271
+ _host_index,
272
+ ) -> RequestSerialized:
273
+
274
+ _host = None
275
+
276
+ _collection_formats: Dict[str, str] = {
277
+ }
278
+
279
+ _path_params: Dict[str, str] = {}
280
+ _query_params: List[Tuple[str, str]] = []
281
+ _header_params: Dict[str, Optional[str]] = _headers or {}
282
+ _form_params: List[Tuple[str, str]] = []
283
+ _files: Dict[
284
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
285
+ ] = {}
286
+ _body_params: Optional[bytes] = None
287
+
288
+ # process the path parameters
289
+ # process the query parameters
290
+ # process the header parameters
291
+ # process the form parameters
292
+ if version is not None:
293
+ _form_params.append(('version', version))
294
+ if observation_id is not None:
295
+ _form_params.append(('observation_id', observation_id))
296
+ if station_id is not None:
297
+ _form_params.append(('station_id', station_id))
298
+ # process the body parameter
299
+
300
+
301
+
302
+ # set the HTTP header `Content-Type`
303
+ if _content_type:
304
+ _header_params['Content-Type'] = _content_type
305
+ else:
306
+ _default_content_type = (
307
+ self.api_client.select_header_content_type(
308
+ [
309
+ 'application/x-www-form-urlencoded',
310
+ 'multipart/form-data'
311
+ ]
312
+ )
313
+ )
314
+ if _default_content_type is not None:
315
+ _header_params['Content-Type'] = _default_content_type
316
+
317
+ # authentication setting
318
+ _auth_settings: List[str] = [
319
+ 'tokenAuth',
320
+ 'cookieAuth'
321
+ ]
322
+
323
+ return self.api_client.param_serialize(
324
+ method='POST',
325
+ resource_path='/api/asids/',
326
+ path_params=_path_params,
327
+ query_params=_query_params,
328
+ header_params=_header_params,
329
+ body=_body_params,
330
+ post_params=_form_params,
331
+ files=_files,
332
+ auth_settings=_auth_settings,
333
+ collection_formats=_collection_formats,
334
+ _host=_host,
335
+ _request_auth=_request_auth
336
+ )
337
+
338
+