python-quanta 0.4.0__tar.gz → 0.4.2__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.
- {python_quanta-0.4.0 → python_quanta-0.4.2}/PKG-INFO +1 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/pyproject.toml +1 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/python_quanta.egg-info/PKG-INFO +1 -1
- python_quanta-0.4.2/src/quanta/config/__init__.py +1 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/joinquant/dt_table/__init__.py +1 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/joinquant/dt_table/main.py +2 -2
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/joinquant/id_table/__init__.py +1 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/joinquant/id_table/main.py +2 -2
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/joinquant/meta/main.py +3 -3
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/_extra_pandas/core.py +5 -4
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/_extra_pandas/main.py +12 -7
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/_main/__init__.py +1 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/_main/_base.py +1 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/stats/core.py +1 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/tools/core.py +1 -1
- python_quanta-0.4.0/src/quanta/config/__init__.py +0 -1
- {python_quanta-0.4.0 → python_quanta-0.4.2}/README.md +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/setup.cfg +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/python_quanta.egg-info/SOURCES.txt +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/python_quanta.egg-info/dependency_links.txt +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/python_quanta.egg-info/requires.txt +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/python_quanta.egg-info/top_level.txt +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/config/_internal.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/config/data.yaml +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/config/flow.yaml +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/config/libs.yaml +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/joinquant/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/data/joinquant/meta/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/duckui.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/_extra_pandas/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/_extra_pandas/old_main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_flow/_main/_connect.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/analysis/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/analysis/core.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/analysis/dev.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/analysis/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/db/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/db/dev.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/db/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/gen/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/gen/core.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/gen/dev.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/gen/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/rollings/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/rollings/base.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/rollings/core.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/rollings/dev.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/rollings/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/stats/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/stats/dev.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/stats/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/tools/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/tools/dev.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/_pandas/tools/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/_data_type_standard/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/_data_type_standard/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/_engines/DuckDB.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/_engines/MySQL.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/_engines/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/_engines/meta.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/main.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/utils/__init__.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/utils/_base.py +0 -0
- {python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/utils/_decorator.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-quanta
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A quantitative analysis project for financial data.
|
|
5
5
|
Author-email: Porco Rosso <porcorossobaojiel@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/porcorossobaojie/quanta.git
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# D:\codes\quanta\pyproject.toml
|
|
2
2
|
[project]
|
|
3
3
|
name = "python-quanta" # 你的项目名称,建议与你的顶级包名(例如 src/quanta)一致
|
|
4
|
-
version = "0.4.
|
|
4
|
+
version = "0.4.2" # 项目版本号
|
|
5
5
|
description = "A quantitative analysis project for financial data." # 项目的简短描述
|
|
6
6
|
readme = "README.md" # 指向你的 README 文件
|
|
7
7
|
requires-python = ">=3.9" # 项目所需的 Python 版本
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-quanta
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A quantitative analysis project for financial data.
|
|
5
5
|
Author-email: Porco Rosso <porcorossobaojiel@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/porcorossobaojie/quanta.git
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from quanta.config._internal import *
|
|
@@ -9,8 +9,8 @@ import jqdatasdk as jq
|
|
|
9
9
|
from typing import Any, Literal
|
|
10
10
|
import pandas as pd
|
|
11
11
|
|
|
12
|
-
from
|
|
13
|
-
from
|
|
12
|
+
from quanta.data.joinquant.meta.main import main as meta
|
|
13
|
+
from quanta.config import settings
|
|
14
14
|
config = settings('data')
|
|
15
15
|
|
|
16
16
|
class main(meta):
|
|
@@ -9,9 +9,9 @@ from typing import Any, Literal
|
|
|
9
9
|
|
|
10
10
|
import pandas as pd
|
|
11
11
|
|
|
12
|
-
from
|
|
12
|
+
from quanta.libs.data.joinquant.meta.main import main as meta
|
|
13
13
|
|
|
14
|
-
from
|
|
14
|
+
from quanta.config import settings
|
|
15
15
|
config = settings('data')
|
|
16
16
|
|
|
17
17
|
class main(meta):
|
|
@@ -10,9 +10,9 @@ import numpy as np
|
|
|
10
10
|
import pandas as pd
|
|
11
11
|
import jqdatasdk as jq
|
|
12
12
|
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
13
|
+
from quanta.libs.utils import merge_dicts
|
|
14
|
+
from quanta.config import settings, login_info
|
|
15
|
+
from quanta.libs.db.main import main as db
|
|
16
16
|
|
|
17
17
|
#jq.auth(**login_info('account').joinquant)
|
|
18
18
|
config = settings('data')
|
|
@@ -8,15 +8,16 @@ Created on Fri Feb 20 15:40:15 2026
|
|
|
8
8
|
import numpy as np
|
|
9
9
|
import pandas as pd
|
|
10
10
|
from functools import lru_cache
|
|
11
|
-
from
|
|
12
|
-
from
|
|
11
|
+
from quanta.libs._flow._main import __instance__
|
|
12
|
+
from quanta.config import settings
|
|
13
|
+
|
|
13
14
|
col_info = settings('data').public_keys.recommand_settings.key
|
|
14
15
|
portfolio_types = settings('data').public_keys.recommand_settings.portfolio_types
|
|
15
16
|
config = settings('flow')
|
|
16
17
|
|
|
17
18
|
@lru_cache(maxsize=8)
|
|
18
|
-
def listing(
|
|
19
|
-
ins = __instance__.get(portfolio_type).listing(
|
|
19
|
+
def listing(listing_limit=126, portfolio_type='astock'):
|
|
20
|
+
ins = __instance__.get(portfolio_type).listing(listing_limit)
|
|
20
21
|
return ins
|
|
21
22
|
|
|
22
23
|
@lru_cache(maxsize=8)
|
|
@@ -7,7 +7,7 @@ Created on Fri Feb 27 16:50:12 2026
|
|
|
7
7
|
|
|
8
8
|
from functools import lru_cache
|
|
9
9
|
import pandas as pd
|
|
10
|
-
from
|
|
10
|
+
from quanta.config import settings
|
|
11
11
|
config = settings('flow')
|
|
12
12
|
|
|
13
13
|
from .core import *
|
|
@@ -36,9 +36,9 @@ class flow_extra():
|
|
|
36
36
|
x = statusable(portfolio_type).reindex_like(self._obj).fillna(False)
|
|
37
37
|
return self._obj[x]
|
|
38
38
|
|
|
39
|
-
def filtered(self,
|
|
39
|
+
def filtered(self, listing_limit=126, drop_st=1, tradestatus=True, portfolio_type=None):
|
|
40
40
|
portfolio_type = self._obj.columns.name.split('_')[0] if portfolio_type is None else portfolio_type
|
|
41
|
-
x = filtered(
|
|
41
|
+
x = filtered(listing_limit, drop_st, tradestatus, portfolio_type).reindex_like(self._obj).fillna(False)
|
|
42
42
|
return self._obj[x]
|
|
43
43
|
|
|
44
44
|
def index_members(self, index_code, invert=False):
|
|
@@ -67,14 +67,19 @@ class flow_extra():
|
|
|
67
67
|
return info(self._obj, column, portfolio_type)
|
|
68
68
|
|
|
69
69
|
@lru_cache(maxsize=64)
|
|
70
|
-
def ic(self,
|
|
71
|
-
return ic(self._obj,
|
|
70
|
+
def ic(self, listing_limit=126, drop_st=1, tradestatus=True, portfolio_type=None):
|
|
71
|
+
return ic(self._obj, listing_limit, drop_st, tradestatus, portfolio_type)
|
|
72
72
|
|
|
73
73
|
@lru_cache(maxsize=64)
|
|
74
|
-
def ir(self,
|
|
75
|
-
x = self.ic(
|
|
74
|
+
def ir(self, listing_limit=126, drop_st=1, tradestatus=True, portfolio_type=None):
|
|
75
|
+
x = self.ic(listing_limit, drop_st, tradestatus, portfolio_type)
|
|
76
76
|
return ir(x)
|
|
77
77
|
|
|
78
|
+
@lru_cache(maxsize=8)
|
|
79
|
+
def port(self, listing_limit=126, drop_st=1, tradestatus=True, portfolio_type=None):
|
|
80
|
+
x = port(self._obj, listing_limit, drop_st, tradestatus, portfolio_type)
|
|
81
|
+
|
|
82
|
+
|
|
78
83
|
@lru_cache(maxsize=2)
|
|
79
84
|
def test(
|
|
80
85
|
self,
|
|
@@ -9,7 +9,7 @@ from functools import reduce
|
|
|
9
9
|
from functools import lru_cache
|
|
10
10
|
|
|
11
11
|
from ._connect import main as meta_table, trade_days, calendar_days
|
|
12
|
-
from
|
|
12
|
+
from quanta.config import settings
|
|
13
13
|
table_info = settings('data').public_keys.recommand_settings
|
|
14
14
|
config = settings('flow')
|
|
15
15
|
|
|
@@ -13,7 +13,7 @@ import pandas as pd
|
|
|
13
13
|
import statsmodels.api as sm
|
|
14
14
|
from typing import Optional, Union, Tuple, List, Dict, Any, Callable
|
|
15
15
|
|
|
16
|
-
from
|
|
16
|
+
from quanta.libs.utils import flatten_list
|
|
17
17
|
|
|
18
18
|
__all__ = ['standard', 'OLS', 'const', 'neutral']
|
|
19
19
|
|
|
@@ -10,7 +10,7 @@ import pandas as pd
|
|
|
10
10
|
from typing import Union, List, Any
|
|
11
11
|
from numpy.lib.stride_tricks import as_strided
|
|
12
12
|
|
|
13
|
-
from
|
|
13
|
+
from quanta.libs.utils import flatten_list
|
|
14
14
|
|
|
15
15
|
__all__ = ['fillna', 'shift', 'log', 'half_life', 'array_roll']
|
|
16
16
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from ._internal import *
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_quanta-0.4.0 → python_quanta-0.4.2}/src/quanta/libs/db/_data_type_standard/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|