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.
- crypticorn/auth/client/api/admin_api.py +6 -26
- crypticorn/auth/client/api/auth_api.py +36 -148
- crypticorn/auth/client/api/service_api.py +3 -16
- crypticorn/auth/client/api/user_api.py +33 -136
- crypticorn/auth/client/api/wallet_api.py +18 -76
- crypticorn/auth/client/api_client.py +0 -5
- crypticorn/auth/client/models/add_wallet_request.py +1 -1
- crypticorn/auth/client/models/authorize_user_request.py +1 -1
- crypticorn/auth/client/models/create_api_key_request.py +1 -1
- crypticorn/auth/client/models/create_user_request.py +1 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +1 -1
- crypticorn/auth/client/models/logout_default_response.py +1 -1
- crypticorn/auth/client/models/oauth_callback200_response_user.py +1 -1
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +1 -1
- crypticorn/auth/client/models/rotate_tokens200_response.py +1 -1
- crypticorn/auth/client/models/token_info200_response.py +1 -1
- crypticorn/auth/client/models/update_user_request.py +1 -1
- crypticorn/auth/client/models/user_by_username200_response.py +1 -1
- crypticorn/auth/client/models/verify200_response.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +1 -1
- crypticorn/auth/client/models/whoami200_response.py +1 -1
- crypticorn/cli/init.py +1 -1
- crypticorn/cli/templates/.env.docker.temp +3 -0
- crypticorn/cli/templates/.env.example.temp +4 -0
- crypticorn/cli/templates/Dockerfile +5 -2
- crypticorn/client.py +0 -1
- crypticorn/common/auth.py +31 -4
- crypticorn/common/decorators.py +1 -2
- crypticorn/common/enums.py +0 -2
- crypticorn/common/errors.py +10 -0
- crypticorn/common/metrics.py +1 -1
- crypticorn/common/middleware.py +0 -1
- crypticorn/common/pagination.py +116 -24
- crypticorn/common/router/admin_router.py +1 -11
- crypticorn/common/router/status_router.py +33 -2
- crypticorn/common/scopes.py +2 -2
- crypticorn/common/utils.py +1 -2
- crypticorn/dex/__init__.py +6 -0
- crypticorn/dex/client/__init__.py +49 -0
- crypticorn/dex/client/api/__init__.py +6 -0
- crypticorn/dex/client/api/admin_api.py +2983 -0
- crypticorn/dex/client/api/signals_api.py +1794 -0
- crypticorn/dex/client/api/status_api.py +889 -0
- crypticorn/dex/client/api_client.py +753 -0
- crypticorn/dex/client/api_response.py +20 -0
- crypticorn/dex/client/configuration.py +620 -0
- crypticorn/dex/client/exceptions.py +220 -0
- crypticorn/dex/client/models/__init__.py +30 -0
- crypticorn/dex/client/models/api_error_identifier.py +121 -0
- crypticorn/dex/client/models/api_error_level.py +37 -0
- crypticorn/dex/client/models/api_error_type.py +37 -0
- crypticorn/dex/client/models/exception_detail.py +117 -0
- crypticorn/dex/client/models/log_level.py +38 -0
- crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
- crypticorn/dex/client/models/risk.py +86 -0
- crypticorn/dex/client/models/signal_overview_stats.py +156 -0
- crypticorn/dex/client/models/signal_volume.py +84 -0
- crypticorn/dex/client/models/signal_with_token.py +163 -0
- crypticorn/dex/client/models/token_data.py +127 -0
- crypticorn/dex/client/models/token_detail.py +116 -0
- crypticorn/dex/client/py.typed +0 -0
- crypticorn/dex/client/rest.py +217 -0
- crypticorn/dex/main.py +1 -0
- crypticorn/hive/client/api/admin_api.py +18 -75
- crypticorn/hive/client/api/data_api.py +6 -28
- crypticorn/hive/client/api/models_api.py +22 -88
- crypticorn/hive/client/api/status_api.py +6 -27
- crypticorn/hive/client/api_client.py +0 -5
- crypticorn/hive/client/models/coin_info.py +1 -1
- crypticorn/hive/client/models/exception_detail.py +1 -1
- crypticorn/hive/client/models/target_info.py +1 -1
- crypticorn/hive/utils.py +2 -2
- crypticorn/klines/client/api/admin_api.py +18 -75
- crypticorn/klines/client/api/change_in_timeframe_api.py +3 -16
- crypticorn/klines/client/api/funding_rates_api.py +3 -16
- crypticorn/klines/client/api/ohlcv_data_api.py +3 -16
- crypticorn/klines/client/api/status_api.py +6 -27
- crypticorn/klines/client/api/symbols_api.py +3 -16
- crypticorn/klines/client/api/udf_api.py +18 -74
- crypticorn/klines/client/api_client.py +0 -5
- crypticorn/klines/client/models/exception_detail.py +1 -1
- crypticorn/klines/client/models/ohlcv.py +1 -1
- crypticorn/klines/client/models/symbol_group.py +1 -1
- crypticorn/klines/client/models/udf_config.py +1 -1
- crypticorn/metrics/client/api/admin_api.py +18 -75
- crypticorn/metrics/client/api/exchanges_api.py +12 -52
- crypticorn/metrics/client/api/indicators_api.py +6 -28
- crypticorn/metrics/client/api/logs_api.py +3 -16
- crypticorn/metrics/client/api/marketcap_api.py +12 -52
- crypticorn/metrics/client/api/markets_api.py +3 -16
- crypticorn/metrics/client/api/quote_currencies_api.py +3 -16
- crypticorn/metrics/client/api/status_api.py +6 -27
- crypticorn/metrics/client/api/tokens_api.py +6 -26
- crypticorn/metrics/client/api_client.py +0 -5
- crypticorn/metrics/client/models/exception_detail.py +1 -1
- crypticorn/metrics/client/models/exchange_mapping.py +1 -1
- crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
- crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
- crypticorn/metrics/client/models/ohlcv.py +1 -1
- crypticorn/pay/client/api/admin_api.py +21 -87
- crypticorn/pay/client/api/now_payments_api.py +15 -64
- crypticorn/pay/client/api/payments_api.py +6 -28
- crypticorn/pay/client/api/products_api.py +12 -52
- crypticorn/pay/client/api/status_api.py +6 -27
- crypticorn/pay/client/api_client.py +0 -5
- crypticorn/pay/client/models/exception_detail.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
- crypticorn/pay/client/models/product.py +1 -1
- crypticorn/pay/client/models/product_create.py +1 -1
- crypticorn/pay/client/models/product_update.py +1 -1
- crypticorn/trade/client/__init__.py +15 -0
- crypticorn/trade/client/api/admin_api.py +43 -107
- crypticorn/trade/client/api/api_keys_api.py +207 -184
- crypticorn/trade/client/api/bots_api.py +6557 -240
- crypticorn/trade/client/api/exchanges_api.py +9 -36
- crypticorn/trade/client/api/notifications_api.py +18 -72
- crypticorn/trade/client/api/orders_api.py +220 -115
- crypticorn/trade/client/api/status_api.py +6 -24
- crypticorn/trade/client/api/strategies_api.py +15 -60
- crypticorn/trade/client/api/trading_actions_api.py +431 -112
- crypticorn/trade/client/models/__init__.py +15 -0
- crypticorn/trade/client/models/bot.py +7 -18
- crypticorn/trade/client/models/bot_create.py +17 -1
- crypticorn/trade/client/models/bot_update.py +17 -1
- crypticorn/trade/client/models/exchange_key_create.py +17 -1
- crypticorn/trade/client/models/exchange_key_update.py +17 -1
- crypticorn/trade/client/models/notification.py +17 -1
- crypticorn/trade/client/models/notification_create.py +17 -1
- crypticorn/trade/client/models/notification_update.py +17 -1
- crypticorn/trade/client/models/orders_count.py +88 -0
- crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
- crypticorn/trade/client/models/paginated_response_order.py +134 -0
- crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action.py +141 -0
- crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action_data_inner.py +165 -0
- crypticorn/trade/client/models/pn_l.py +95 -0
- crypticorn/trade/client/models/spot_trading_action.py +207 -0
- crypticorn/trade/client/models/strategy.py +17 -1
- crypticorn/trade/client/models/strategy_create.py +17 -1
- crypticorn/trade/client/models/strategy_update.py +17 -1
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/METADATA +3 -3
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/RECORD +151 -116
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/WHEEL +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/licenses/LICENSE +0 -0
- {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
|
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
|
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
|
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
|
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(
|
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(
|
48
|
+
logger.info(" starting download")
|
49
49
|
|
50
50
|
# write dataset to file and show progress bar
|
51
51
|
pbar = tqdm.tqdm(
|