crypticorn 2.8.0rc9__py3-none-any.whl → 2.9.0rc1__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/cli/init.py +2 -2
- crypticorn/common/router/admin_router.py +7 -9
- crypticorn/klines/client/__init__.py +9 -1
- crypticorn/klines/client/api/__init__.py +1 -0
- crypticorn/klines/client/api/admin_api.py +1455 -0
- crypticorn/klines/client/api/change_in_timeframe_api.py +24 -20
- crypticorn/klines/client/api/funding_rates_api.py +12 -10
- crypticorn/klines/client/api/ohlcv_data_api.py +37 -24
- crypticorn/klines/client/api/status_api.py +8 -235
- crypticorn/klines/client/api/symbols_api.py +12 -9
- crypticorn/klines/client/api/udf_api.py +6 -6
- crypticorn/klines/client/models/__init__.py +8 -1
- crypticorn/klines/client/models/api_error_identifier.py +115 -0
- crypticorn/klines/client/models/api_error_level.py +37 -0
- crypticorn/klines/client/models/api_error_type.py +37 -0
- crypticorn/klines/client/models/exception_detail.py +6 -3
- crypticorn/klines/client/models/funding_rate.py +6 -12
- crypticorn/klines/client/models/funding_rate_response.py +103 -0
- crypticorn/klines/client/models/internal_exchange.py +39 -0
- crypticorn/klines/client/models/log_level.py +38 -0
- crypticorn/klines/client/models/market_type.py +35 -0
- crypticorn/klines/client/models/{ohlcv_history.py → ohlcv.py} +12 -13
- crypticorn/klines/client/models/search_symbol.py +3 -4
- crypticorn/klines/client/models/udf_config.py +2 -1
- crypticorn/klines/main.py +1 -13
- crypticorn/metrics/client/api/admin_api.py +22 -19
- crypticorn/metrics/client/api/status_api.py +6 -6
- crypticorn/metrics/client/configuration.py +4 -2
- {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/METADATA +1 -1
- {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/RECORD +33 -25
- {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/WHEEL +0 -0
- {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/top_level.txt +0 -0
crypticorn/cli/init.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import click
|
2
2
|
from pathlib import Path
|
3
3
|
import subprocess
|
4
|
-
import importlib.resources
|
4
|
+
import importlib.resources
|
5
5
|
import crypticorn.cli.templates as templates
|
6
6
|
|
7
7
|
|
@@ -19,7 +19,7 @@ def get_git_root() -> Path:
|
|
19
19
|
|
20
20
|
def copy_template(template_name: str, target_path: Path):
|
21
21
|
"""Copy a template file to the target path."""
|
22
|
-
with
|
22
|
+
with importlib.resources.files(templates).joinpath(template_name).open(
|
23
23
|
"r"
|
24
24
|
) as template_file:
|
25
25
|
content = template_file.read()
|
@@ -6,7 +6,7 @@ ONLY ALLOW ACCESS TO THIS ROUTER WITH ADMIN SCOPES.
|
|
6
6
|
"""
|
7
7
|
|
8
8
|
import os
|
9
|
-
import
|
9
|
+
import importlib.metadata
|
10
10
|
import threading
|
11
11
|
import time
|
12
12
|
import psutil
|
@@ -90,11 +90,9 @@ def list_installed_packages(
|
|
90
90
|
)
|
91
91
|
) -> list:
|
92
92
|
"""Return a list of installed packages and versions."""
|
93
|
-
|
94
|
-
[
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
key=lambda x: next(iter(x)),
|
100
|
-
)
|
93
|
+
packages = {
|
94
|
+
dist.metadata["Name"]: dist.version
|
95
|
+
for dist in importlib.metadata.distributions()
|
96
|
+
if include is None or dist.metadata["Name"] in include
|
97
|
+
}
|
98
|
+
return dict(sorted(packages.items()))
|
@@ -17,6 +17,7 @@ Do not edit the class manually.
|
|
17
17
|
__version__ = "1.0.0"
|
18
18
|
|
19
19
|
# import apis into sdk package
|
20
|
+
from crypticorn.klines.client.api.admin_api import AdminApi
|
20
21
|
from crypticorn.klines.client.api.change_in_timeframe_api import ChangeInTimeframeApi
|
21
22
|
from crypticorn.klines.client.api.funding_rates_api import FundingRatesApi
|
22
23
|
from crypticorn.klines.client.api.ohlcv_data_api import OHLCVDataApi
|
@@ -36,10 +37,17 @@ from crypticorn.klines.client.exceptions import ApiAttributeError
|
|
36
37
|
from crypticorn.klines.client.exceptions import ApiException
|
37
38
|
|
38
39
|
# import models into sdk package
|
40
|
+
from crypticorn.klines.client.models.api_error_identifier import ApiErrorIdentifier
|
41
|
+
from crypticorn.klines.client.models.api_error_level import ApiErrorLevel
|
42
|
+
from crypticorn.klines.client.models.api_error_type import ApiErrorType
|
39
43
|
from crypticorn.klines.client.models.change_in_timeframe import ChangeInTimeframe
|
40
44
|
from crypticorn.klines.client.models.exception_detail import ExceptionDetail
|
41
45
|
from crypticorn.klines.client.models.funding_rate import FundingRate
|
42
|
-
from crypticorn.klines.client.models.
|
46
|
+
from crypticorn.klines.client.models.funding_rate_response import FundingRateResponse
|
47
|
+
from crypticorn.klines.client.models.internal_exchange import InternalExchange
|
48
|
+
from crypticorn.klines.client.models.log_level import LogLevel
|
49
|
+
from crypticorn.klines.client.models.market_type import MarketType
|
50
|
+
from crypticorn.klines.client.models.ohlcv import OHLCV
|
43
51
|
from crypticorn.klines.client.models.resolution import Resolution
|
44
52
|
from crypticorn.klines.client.models.search_symbol import SearchSymbol
|
45
53
|
from crypticorn.klines.client.models.sort_direction import SortDirection
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# flake8: noqa
|
2
2
|
|
3
3
|
# import apis into api package
|
4
|
+
from crypticorn.klines.client.api.admin_api import AdminApi
|
4
5
|
from crypticorn.klines.client.api.change_in_timeframe_api import ChangeInTimeframeApi
|
5
6
|
from crypticorn.klines.client.api.funding_rates_api import FundingRatesApi
|
6
7
|
from crypticorn.klines.client.api.ohlcv_data_api import OHLCVDataApi
|