crypticorn 2.17.0rc4__py3-none-any.whl → 2.17.0rc6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. crypticorn/auth/client/api/admin_api.py +6 -26
  2. crypticorn/auth/client/api/auth_api.py +36 -148
  3. crypticorn/auth/client/api/service_api.py +3 -16
  4. crypticorn/auth/client/api/user_api.py +33 -136
  5. crypticorn/auth/client/api/wallet_api.py +18 -76
  6. crypticorn/auth/client/api_client.py +0 -5
  7. crypticorn/auth/client/models/add_wallet_request.py +1 -1
  8. crypticorn/auth/client/models/authorize_user_request.py +1 -1
  9. crypticorn/auth/client/models/create_api_key_request.py +1 -1
  10. crypticorn/auth/client/models/create_user_request.py +1 -1
  11. crypticorn/auth/client/models/get_api_keys200_response_inner.py +1 -1
  12. crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +1 -1
  13. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +1 -1
  14. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +1 -1
  15. crypticorn/auth/client/models/list_wallets200_response_data_inner.py +1 -1
  16. crypticorn/auth/client/models/logout_default_response.py +1 -1
  17. crypticorn/auth/client/models/oauth_callback200_response_user.py +1 -1
  18. crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +1 -1
  19. crypticorn/auth/client/models/rotate_tokens200_response.py +1 -1
  20. crypticorn/auth/client/models/token_info200_response.py +1 -1
  21. crypticorn/auth/client/models/update_user_request.py +1 -1
  22. crypticorn/auth/client/models/user_by_username200_response.py +1 -1
  23. crypticorn/auth/client/models/verify200_response.py +1 -1
  24. crypticorn/auth/client/models/verify_email200_response_auth.py +1 -1
  25. crypticorn/auth/client/models/verify_email200_response_auth_auth.py +1 -1
  26. crypticorn/auth/client/models/whoami200_response.py +1 -1
  27. crypticorn/cli/init.py +1 -1
  28. crypticorn/cli/templates/.env.docker.temp +3 -0
  29. crypticorn/cli/templates/.env.example.temp +4 -0
  30. crypticorn/cli/templates/Dockerfile +5 -2
  31. crypticorn/client.py +0 -1
  32. crypticorn/common/auth.py +31 -4
  33. crypticorn/common/decorators.py +1 -2
  34. crypticorn/common/enums.py +0 -2
  35. crypticorn/common/errors.py +10 -0
  36. crypticorn/common/metrics.py +1 -1
  37. crypticorn/common/middleware.py +0 -1
  38. crypticorn/common/pagination.py +116 -24
  39. crypticorn/common/router/admin_router.py +1 -11
  40. crypticorn/common/router/status_router.py +33 -2
  41. crypticorn/common/scopes.py +2 -2
  42. crypticorn/common/utils.py +1 -2
  43. crypticorn/dex/__init__.py +6 -0
  44. crypticorn/dex/client/__init__.py +49 -0
  45. crypticorn/dex/client/api/__init__.py +6 -0
  46. crypticorn/dex/client/api/admin_api.py +2983 -0
  47. crypticorn/dex/client/api/signals_api.py +1794 -0
  48. crypticorn/dex/client/api/status_api.py +889 -0
  49. crypticorn/dex/client/api_client.py +753 -0
  50. crypticorn/dex/client/api_response.py +20 -0
  51. crypticorn/dex/client/configuration.py +620 -0
  52. crypticorn/dex/client/exceptions.py +220 -0
  53. crypticorn/dex/client/models/__init__.py +30 -0
  54. crypticorn/dex/client/models/api_error_identifier.py +121 -0
  55. crypticorn/dex/client/models/api_error_level.py +37 -0
  56. crypticorn/dex/client/models/api_error_type.py +37 -0
  57. crypticorn/dex/client/models/exception_detail.py +117 -0
  58. crypticorn/dex/client/models/log_level.py +38 -0
  59. crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
  60. crypticorn/dex/client/models/risk.py +86 -0
  61. crypticorn/dex/client/models/signal_overview_stats.py +156 -0
  62. crypticorn/dex/client/models/signal_volume.py +84 -0
  63. crypticorn/dex/client/models/signal_with_token.py +163 -0
  64. crypticorn/dex/client/models/token_data.py +127 -0
  65. crypticorn/dex/client/models/token_detail.py +116 -0
  66. crypticorn/dex/client/py.typed +0 -0
  67. crypticorn/dex/client/rest.py +217 -0
  68. crypticorn/dex/main.py +1 -0
  69. crypticorn/hive/client/api/admin_api.py +18 -75
  70. crypticorn/hive/client/api/data_api.py +6 -28
  71. crypticorn/hive/client/api/models_api.py +22 -88
  72. crypticorn/hive/client/api/status_api.py +6 -27
  73. crypticorn/hive/client/api_client.py +0 -5
  74. crypticorn/hive/client/models/coin_info.py +1 -1
  75. crypticorn/hive/client/models/exception_detail.py +1 -1
  76. crypticorn/hive/client/models/target_info.py +1 -1
  77. crypticorn/hive/utils.py +2 -2
  78. crypticorn/klines/client/api/admin_api.py +18 -75
  79. crypticorn/klines/client/api/change_in_timeframe_api.py +3 -16
  80. crypticorn/klines/client/api/funding_rates_api.py +3 -16
  81. crypticorn/klines/client/api/ohlcv_data_api.py +3 -16
  82. crypticorn/klines/client/api/status_api.py +6 -27
  83. crypticorn/klines/client/api/symbols_api.py +3 -16
  84. crypticorn/klines/client/api/udf_api.py +18 -74
  85. crypticorn/klines/client/api_client.py +0 -5
  86. crypticorn/klines/client/models/exception_detail.py +1 -1
  87. crypticorn/klines/client/models/ohlcv.py +1 -1
  88. crypticorn/klines/client/models/symbol_group.py +1 -1
  89. crypticorn/klines/client/models/udf_config.py +1 -1
  90. crypticorn/metrics/client/api/admin_api.py +18 -75
  91. crypticorn/metrics/client/api/exchanges_api.py +12 -52
  92. crypticorn/metrics/client/api/indicators_api.py +6 -28
  93. crypticorn/metrics/client/api/logs_api.py +3 -16
  94. crypticorn/metrics/client/api/marketcap_api.py +12 -52
  95. crypticorn/metrics/client/api/markets_api.py +3 -16
  96. crypticorn/metrics/client/api/quote_currencies_api.py +3 -16
  97. crypticorn/metrics/client/api/status_api.py +6 -27
  98. crypticorn/metrics/client/api/tokens_api.py +6 -26
  99. crypticorn/metrics/client/api_client.py +0 -5
  100. crypticorn/metrics/client/models/exception_detail.py +1 -1
  101. crypticorn/metrics/client/models/exchange_mapping.py +1 -1
  102. crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
  103. crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
  104. crypticorn/metrics/client/models/ohlcv.py +1 -1
  105. crypticorn/pay/client/api/admin_api.py +21 -87
  106. crypticorn/pay/client/api/now_payments_api.py +15 -64
  107. crypticorn/pay/client/api/payments_api.py +6 -28
  108. crypticorn/pay/client/api/products_api.py +12 -52
  109. crypticorn/pay/client/api/status_api.py +6 -27
  110. crypticorn/pay/client/api_client.py +0 -5
  111. crypticorn/pay/client/models/exception_detail.py +1 -1
  112. crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
  113. crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
  114. crypticorn/pay/client/models/product.py +1 -1
  115. crypticorn/pay/client/models/product_create.py +1 -1
  116. crypticorn/pay/client/models/product_update.py +1 -1
  117. crypticorn/trade/client/__init__.py +15 -0
  118. crypticorn/trade/client/api/admin_api.py +43 -107
  119. crypticorn/trade/client/api/api_keys_api.py +207 -184
  120. crypticorn/trade/client/api/bots_api.py +6557 -240
  121. crypticorn/trade/client/api/exchanges_api.py +9 -36
  122. crypticorn/trade/client/api/notifications_api.py +18 -72
  123. crypticorn/trade/client/api/orders_api.py +220 -115
  124. crypticorn/trade/client/api/status_api.py +6 -24
  125. crypticorn/trade/client/api/strategies_api.py +15 -60
  126. crypticorn/trade/client/api/trading_actions_api.py +431 -112
  127. crypticorn/trade/client/models/__init__.py +15 -0
  128. crypticorn/trade/client/models/bot.py +7 -18
  129. crypticorn/trade/client/models/bot_create.py +17 -1
  130. crypticorn/trade/client/models/bot_update.py +17 -1
  131. crypticorn/trade/client/models/exchange_key_create.py +17 -1
  132. crypticorn/trade/client/models/exchange_key_update.py +17 -1
  133. crypticorn/trade/client/models/notification.py +17 -1
  134. crypticorn/trade/client/models/notification_create.py +17 -1
  135. crypticorn/trade/client/models/notification_update.py +17 -1
  136. crypticorn/trade/client/models/orders_count.py +88 -0
  137. crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
  138. crypticorn/trade/client/models/paginated_response_order.py +134 -0
  139. crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action.py +141 -0
  140. crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action_data_inner.py +165 -0
  141. crypticorn/trade/client/models/pn_l.py +95 -0
  142. crypticorn/trade/client/models/spot_trading_action.py +207 -0
  143. crypticorn/trade/client/models/strategy.py +17 -1
  144. crypticorn/trade/client/models/strategy_create.py +17 -1
  145. crypticorn/trade/client/models/strategy_update.py +17 -1
  146. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/METADATA +3 -3
  147. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/RECORD +151 -116
  148. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/WHEEL +0 -0
  149. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/entry_points.txt +0 -0
  150. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/licenses/LICENSE +0 -0
  151. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/top_level.txt +0 -0
@@ -11,14 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
  Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
- import warnings
15
14
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
15
  from typing import Any, Dict, List, Optional, Tuple, Union
17
16
  from typing_extensions import Annotated
18
17
 
19
- from pydantic import Field, StrictInt
20
- from typing import Optional
21
- from typing_extensions import Annotated
22
18
  from crypticorn.hive.client.models.data_download_response import DataDownloadResponse
23
19
  from crypticorn.hive.client.models.data_info import DataInfo
24
20
  from crypticorn.hive.client.models.data_version import DataVersion
@@ -90,10 +86,7 @@ class DataApi:
90
86
  _headers: Optional[Dict[StrictStr, Any]] = None,
91
87
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
92
88
  ) -> DataDownloadResponse:
93
- """Download Data
94
-
95
- This method can work in both sync and async modes based on the is_sync flag.
96
- """
89
+ """Download Data"""
97
90
  if self.is_sync:
98
91
  return self._download_data_sync(
99
92
  model_id=model_id,
@@ -148,10 +141,7 @@ class DataApi:
148
141
  _headers: Optional[Dict[StrictStr, Any]] = None,
149
142
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
150
143
  ) -> ApiResponse[DataDownloadResponse]:
151
- """Download Data with HTTP info
152
-
153
- This method can work in both sync and async modes based on the is_sync flag.
154
- """
144
+ """Download Data with HTTP info"""
155
145
  if self.is_sync:
156
146
  return self._download_data_sync_with_http_info(
157
147
  model_id=model_id,
@@ -206,10 +196,7 @@ class DataApi:
206
196
  _headers: Optional[Dict[StrictStr, Any]] = None,
207
197
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
208
198
  ) -> RESTResponseType:
209
- """Download Data without preloading content
210
-
211
- This method can work in both sync and async modes based on the is_sync flag.
212
- """
199
+ """Download Data without preloading content"""
213
200
  if self.is_sync:
214
201
  return self._download_data_sync_without_preload_content(
215
202
  model_id=model_id,
@@ -690,10 +677,7 @@ class DataApi:
690
677
  _headers: Optional[Dict[StrictStr, Any]] = None,
691
678
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
692
679
  ) -> DataInfo:
693
- """Get Data Info
694
-
695
- This method can work in both sync and async modes based on the is_sync flag.
696
- """
680
+ """Get Data Info"""
697
681
  if self.is_sync:
698
682
  return self._get_data_info_sync(
699
683
  _request_timeout=_request_timeout,
@@ -727,10 +711,7 @@ class DataApi:
727
711
  _headers: Optional[Dict[StrictStr, Any]] = None,
728
712
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
729
713
  ) -> ApiResponse[DataInfo]:
730
- """Get Data Info with HTTP info
731
-
732
- This method can work in both sync and async modes based on the is_sync flag.
733
- """
714
+ """Get Data Info with HTTP info"""
734
715
  if self.is_sync:
735
716
  return self._get_data_info_sync_with_http_info(
736
717
  _request_timeout=_request_timeout,
@@ -764,10 +745,7 @@ class DataApi:
764
745
  _headers: Optional[Dict[StrictStr, Any]] = None,
765
746
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
766
747
  ) -> RESTResponseType:
767
- """Get Data Info without preloading content
768
-
769
- This method can work in both sync and async modes based on the is_sync flag.
770
- """
748
+ """Get Data Info without preloading content"""
771
749
  if self.is_sync:
772
750
  return self._get_data_info_sync_without_preload_content(
773
751
  _request_timeout=_request_timeout,
@@ -11,14 +11,11 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
  Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
- import warnings
15
14
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
15
  from typing import Any, Dict, List, Optional, Tuple, Union
17
16
  from typing_extensions import Annotated
18
17
 
19
- from pydantic import Field, StrictBool, StrictInt, StrictStr
20
- from typing import Any, List, Optional
21
- from typing_extensions import Annotated
18
+ from pydantic import StrictBool
22
19
  from crypticorn.hive.client.models.data_version import DataVersion
23
20
  from crypticorn.hive.client.models.evaluation_response import EvaluationResponse
24
21
  from crypticorn.hive.client.models.model_create import ModelCreate
@@ -77,10 +74,7 @@ class ModelsApi:
77
74
  _headers: Optional[Dict[StrictStr, Any]] = None,
78
75
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
79
76
  ) -> ModelRead:
80
- """Create Model
81
-
82
- This method can work in both sync and async modes based on the is_sync flag.
83
- """
77
+ """Create Model"""
84
78
  if self.is_sync:
85
79
  return self._create_model_sync(
86
80
  model_create=model_create,
@@ -117,10 +111,7 @@ class ModelsApi:
117
111
  _headers: Optional[Dict[StrictStr, Any]] = None,
118
112
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
119
113
  ) -> ApiResponse[ModelRead]:
120
- """Create Model with HTTP info
121
-
122
- This method can work in both sync and async modes based on the is_sync flag.
123
- """
114
+ """Create Model with HTTP info"""
124
115
  if self.is_sync:
125
116
  return self._create_model_sync_with_http_info(
126
117
  model_create=model_create,
@@ -157,10 +148,7 @@ class ModelsApi:
157
148
  _headers: Optional[Dict[StrictStr, Any]] = None,
158
149
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
159
150
  ) -> RESTResponseType:
160
- """Create Model without preloading content
161
-
162
- This method can work in both sync and async modes based on the is_sync flag.
163
- """
151
+ """Create Model without preloading content"""
164
152
  if self.is_sync:
165
153
  return self._create_model_sync_without_preload_content(
166
154
  model_create=model_create,
@@ -528,10 +516,7 @@ class ModelsApi:
528
516
  _headers: Optional[Dict[StrictStr, Any]] = None,
529
517
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
530
518
  ) -> None:
531
- """Delete Model
532
-
533
- This method can work in both sync and async modes based on the is_sync flag.
534
- """
519
+ """Delete Model"""
535
520
  if self.is_sync:
536
521
  return self._delete_model_sync(
537
522
  id=id,
@@ -568,10 +553,7 @@ class ModelsApi:
568
553
  _headers: Optional[Dict[StrictStr, Any]] = None,
569
554
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
570
555
  ) -> ApiResponse[None]:
571
- """Delete Model with HTTP info
572
-
573
- This method can work in both sync and async modes based on the is_sync flag.
574
- """
556
+ """Delete Model with HTTP info"""
575
557
  if self.is_sync:
576
558
  return self._delete_model_sync_with_http_info(
577
559
  id=id,
@@ -608,10 +590,7 @@ class ModelsApi:
608
590
  _headers: Optional[Dict[StrictStr, Any]] = None,
609
591
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
610
592
  ) -> RESTResponseType:
611
- """Delete Model without preloading content
612
-
613
- This method can work in both sync and async modes based on the is_sync flag.
614
- """
593
+ """Delete Model without preloading content"""
615
594
  if self.is_sync:
616
595
  return self._delete_model_sync_without_preload_content(
617
596
  id=id,
@@ -978,10 +957,7 @@ class ModelsApi:
978
957
  _headers: Optional[Dict[StrictStr, Any]] = None,
979
958
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
980
959
  ) -> EvaluationResponse:
981
- """Evaluate Model
982
-
983
- This method can work in both sync and async modes based on the is_sync flag.
984
- """
960
+ """Evaluate Model"""
985
961
  if self.is_sync:
986
962
  return self._evaluate_model_sync(
987
963
  id=id,
@@ -1031,10 +1007,7 @@ class ModelsApi:
1031
1007
  _headers: Optional[Dict[StrictStr, Any]] = None,
1032
1008
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1033
1009
  ) -> ApiResponse[EvaluationResponse]:
1034
- """Evaluate Model with HTTP info
1035
-
1036
- This method can work in both sync and async modes based on the is_sync flag.
1037
- """
1010
+ """Evaluate Model with HTTP info"""
1038
1011
  if self.is_sync:
1039
1012
  return self._evaluate_model_sync_with_http_info(
1040
1013
  id=id,
@@ -1084,10 +1057,7 @@ class ModelsApi:
1084
1057
  _headers: Optional[Dict[StrictStr, Any]] = None,
1085
1058
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1086
1059
  ) -> RESTResponseType:
1087
- """Evaluate Model without preloading content
1088
-
1089
- This method can work in both sync and async modes based on the is_sync flag.
1090
- """
1060
+ """Evaluate Model without preloading content"""
1091
1061
  if self.is_sync:
1092
1062
  return self._evaluate_model_sync_without_preload_content(
1093
1063
  id=id,
@@ -1547,10 +1517,7 @@ class ModelsApi:
1547
1517
  _headers: Optional[Dict[StrictStr, Any]] = None,
1548
1518
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1549
1519
  ) -> ModelRead:
1550
- """Get Model
1551
-
1552
- This method can work in both sync and async modes based on the is_sync flag.
1553
- """
1520
+ """Get Model"""
1554
1521
  if self.is_sync:
1555
1522
  return self._get_model_sync(
1556
1523
  id=id,
@@ -1587,10 +1554,7 @@ class ModelsApi:
1587
1554
  _headers: Optional[Dict[StrictStr, Any]] = None,
1588
1555
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1589
1556
  ) -> ApiResponse[ModelRead]:
1590
- """Get Model with HTTP info
1591
-
1592
- This method can work in both sync and async modes based on the is_sync flag.
1593
- """
1557
+ """Get Model with HTTP info"""
1594
1558
  if self.is_sync:
1595
1559
  return self._get_model_sync_with_http_info(
1596
1560
  id=id,
@@ -1627,10 +1591,7 @@ class ModelsApi:
1627
1591
  _headers: Optional[Dict[StrictStr, Any]] = None,
1628
1592
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1629
1593
  ) -> RESTResponseType:
1630
- """Get Model without preloading content
1631
-
1632
- This method can work in both sync and async modes based on the is_sync flag.
1633
- """
1594
+ """Get Model without preloading content"""
1634
1595
  if self.is_sync:
1635
1596
  return self._get_model_sync_without_preload_content(
1636
1597
  id=id,
@@ -1988,10 +1949,7 @@ class ModelsApi:
1988
1949
  _headers: Optional[Dict[StrictStr, Any]] = None,
1989
1950
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1990
1951
  ) -> ModelRead:
1991
- """Get Model By Name
1992
-
1993
- This method can work in both sync and async modes based on the is_sync flag.
1994
- """
1952
+ """Get Model By Name"""
1995
1953
  if self.is_sync:
1996
1954
  return self._get_model_by_name_sync(
1997
1955
  name=name,
@@ -2028,10 +1986,7 @@ class ModelsApi:
2028
1986
  _headers: Optional[Dict[StrictStr, Any]] = None,
2029
1987
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2030
1988
  ) -> ApiResponse[ModelRead]:
2031
- """Get Model By Name with HTTP info
2032
-
2033
- This method can work in both sync and async modes based on the is_sync flag.
2034
- """
1989
+ """Get Model By Name with HTTP info"""
2035
1990
  if self.is_sync:
2036
1991
  return self._get_model_by_name_sync_with_http_info(
2037
1992
  name=name,
@@ -2068,10 +2023,7 @@ class ModelsApi:
2068
2023
  _headers: Optional[Dict[StrictStr, Any]] = None,
2069
2024
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2070
2025
  ) -> RESTResponseType:
2071
- """Get Model By Name without preloading content
2072
-
2073
- This method can work in both sync and async modes based on the is_sync flag.
2074
- """
2026
+ """Get Model By Name without preloading content"""
2075
2027
  if self.is_sync:
2076
2028
  return self._get_model_by_name_sync_without_preload_content(
2077
2029
  name=name,
@@ -2440,10 +2392,7 @@ class ModelsApi:
2440
2392
  _headers: Optional[Dict[StrictStr, Any]] = None,
2441
2393
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2442
2394
  ) -> List[ModelRead]:
2443
- """Get All Models
2444
-
2445
- This method can work in both sync and async modes based on the is_sync flag.
2446
- """
2395
+ """Get All Models"""
2447
2396
  if self.is_sync:
2448
2397
  return self._get_models_sync(
2449
2398
  by_user=by_user,
@@ -2493,10 +2442,7 @@ class ModelsApi:
2493
2442
  _headers: Optional[Dict[StrictStr, Any]] = None,
2494
2443
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2495
2444
  ) -> ApiResponse[List[ModelRead]]:
2496
- """Get All Models with HTTP info
2497
-
2498
- This method can work in both sync and async modes based on the is_sync flag.
2499
- """
2445
+ """Get All Models with HTTP info"""
2500
2446
  if self.is_sync:
2501
2447
  return self._get_models_sync_with_http_info(
2502
2448
  by_user=by_user,
@@ -2546,10 +2492,7 @@ class ModelsApi:
2546
2492
  _headers: Optional[Dict[StrictStr, Any]] = None,
2547
2493
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2548
2494
  ) -> RESTResponseType:
2549
- """Get All Models without preloading content
2550
-
2551
- This method can work in both sync and async modes based on the is_sync flag.
2552
- """
2495
+ """Get All Models without preloading content"""
2553
2496
  if self.is_sync:
2554
2497
  return self._get_models_sync_without_preload_content(
2555
2498
  by_user=by_user,
@@ -2995,10 +2938,7 @@ class ModelsApi:
2995
2938
  _headers: Optional[Dict[StrictStr, Any]] = None,
2996
2939
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2997
2940
  ) -> object:
2998
- """Update Model
2999
-
3000
- This method can work in both sync and async modes based on the is_sync flag.
3001
- """
2941
+ """Update Model"""
3002
2942
  if self.is_sync:
3003
2943
  return self._update_model_sync(
3004
2944
  id=id,
@@ -3038,10 +2978,7 @@ class ModelsApi:
3038
2978
  _headers: Optional[Dict[StrictStr, Any]] = None,
3039
2979
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3040
2980
  ) -> ApiResponse[object]:
3041
- """Update Model with HTTP info
3042
-
3043
- This method can work in both sync and async modes based on the is_sync flag.
3044
- """
2981
+ """Update Model with HTTP info"""
3045
2982
  if self.is_sync:
3046
2983
  return self._update_model_sync_with_http_info(
3047
2984
  id=id,
@@ -3081,10 +3018,7 @@ class ModelsApi:
3081
3018
  _headers: Optional[Dict[StrictStr, Any]] = None,
3082
3019
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3083
3020
  ) -> RESTResponseType:
3084
- """Update Model without preloading content
3085
-
3086
- This method can work in both sync and async modes based on the is_sync flag.
3087
- """
3021
+ """Update Model without preloading content"""
3088
3022
  if self.is_sync:
3089
3023
  return self._update_model_sync_without_preload_content(
3090
3024
  id=id,
@@ -11,13 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
  Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
- import warnings
15
14
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
15
  from typing import Any, Dict, List, Optional, Tuple, Union
17
16
  from typing_extensions import Annotated
18
17
 
19
- from pydantic import StrictStr, field_validator
20
- from typing import Optional
21
18
 
22
19
  from crypticorn.hive.client.api_client import ApiClient, RequestSerialized
23
20
  from crypticorn.hive.client.api_response import ApiResponse
@@ -71,10 +68,7 @@ class StatusApi:
71
68
  _headers: Optional[Dict[StrictStr, Any]] = None,
72
69
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
73
70
  ) -> str:
74
- """Time
75
-
76
- This method can work in both sync and async modes based on the is_sync flag.
77
- """
71
+ """Time"""
78
72
  if self.is_sync:
79
73
  return self._get_time_sync(
80
74
  type=type,
@@ -111,10 +105,7 @@ class StatusApi:
111
105
  _headers: Optional[Dict[StrictStr, Any]] = None,
112
106
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
113
107
  ) -> ApiResponse[str]:
114
- """Time with HTTP info
115
-
116
- This method can work in both sync and async modes based on the is_sync flag.
117
- """
108
+ """Time with HTTP info"""
118
109
  if self.is_sync:
119
110
  return self._get_time_sync_with_http_info(
120
111
  type=type,
@@ -151,10 +142,7 @@ class StatusApi:
151
142
  _headers: Optional[Dict[StrictStr, Any]] = None,
152
143
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
153
144
  ) -> RESTResponseType:
154
- """Time without preloading content
155
-
156
- This method can work in both sync and async modes based on the is_sync flag.
157
- """
145
+ """Time without preloading content"""
158
146
  if self.is_sync:
159
147
  return self._get_time_sync_without_preload_content(
160
148
  type=type,
@@ -513,10 +501,7 @@ class StatusApi:
513
501
  _headers: Optional[Dict[StrictStr, Any]] = None,
514
502
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
515
503
  ) -> str:
516
- """Ping
517
-
518
- This method can work in both sync and async modes based on the is_sync flag.
519
- """
504
+ """Ping"""
520
505
  if self.is_sync:
521
506
  return self._ping_sync(
522
507
  _request_timeout=_request_timeout,
@@ -550,10 +535,7 @@ class StatusApi:
550
535
  _headers: Optional[Dict[StrictStr, Any]] = None,
551
536
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
552
537
  ) -> ApiResponse[str]:
553
- """Ping with HTTP info
554
-
555
- This method can work in both sync and async modes based on the is_sync flag.
556
- """
538
+ """Ping with HTTP info"""
557
539
  if self.is_sync:
558
540
  return self._ping_sync_with_http_info(
559
541
  _request_timeout=_request_timeout,
@@ -587,10 +569,7 @@ class StatusApi:
587
569
  _headers: Optional[Dict[StrictStr, Any]] = None,
588
570
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
589
571
  ) -> RESTResponseType:
590
- """Ping without preloading content
591
-
592
- This method can work in both sync and async modes based on the is_sync flag.
593
- """
572
+ """Ping without preloading content"""
594
573
  if self.is_sync:
595
574
  return self._ping_sync_without_preload_content(
596
575
  _request_timeout=_request_timeout,
@@ -33,11 +33,6 @@ from crypticorn.hive.client import rest
33
33
  from crypticorn.hive.client.exceptions import (
34
34
  ApiValueError,
35
35
  ApiException,
36
- BadRequestException,
37
- UnauthorizedException,
38
- ForbiddenException,
39
- NotFoundException,
40
- ServiceException,
41
36
  )
42
37
 
43
38
  RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
@@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from crypticorn.hive.client.models.coins import Coins
23
23
  from crypticorn.hive.client.models.data_version import DataVersion
24
- from typing import Optional, Set
24
+ from typing import Set
25
25
  from typing_extensions import Self
26
26
 
27
27
 
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from crypticorn.hive.client.models.api_error_identifier import ApiErrorIdentifier
23
23
  from crypticorn.hive.client.models.api_error_level import ApiErrorLevel
24
24
  from crypticorn.hive.client.models.api_error_type import ApiErrorType
25
- from typing import Optional, Set
25
+ from typing import Set
26
26
  from typing_extensions import Self
27
27
 
28
28
 
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from crypticorn.hive.client.models.data_version import DataVersion
23
23
  from crypticorn.hive.client.models.target import Target
24
24
  from crypticorn.hive.client.models.target_type import TargetType
25
- from typing import Optional, Set
25
+ from typing import Set
26
26
  from typing_extensions import Self
27
27
 
28
28
 
crypticorn/hive/utils.py CHANGED
@@ -28,7 +28,7 @@ async def download_file(
28
28
 
29
29
  if file_size < total_size:
30
30
  # Download incomplete
31
- logger.info(f" resuming download")
31
+ logger.info(" resuming download")
32
32
  resume_header = {"Range": f"bytes={file_size}-"}
33
33
  req = requests.get(
34
34
  url,
@@ -45,7 +45,7 @@ async def download_file(
45
45
  file_size = 0
46
46
  else:
47
47
  # File does not exist, starting download
48
- logger.info(f" starting download")
48
+ logger.info(" starting download")
49
49
 
50
50
  # write dataset to file and show progress bar
51
51
  pbar = tqdm.tqdm(