python-quanta 0.4.1__tar.gz → 0.4.3__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.1 → python_quanta-0.4.3}/PKG-INFO +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/pyproject.toml +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/python_quanta.egg-info/PKG-INFO +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/joinquant/__init__.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/joinquant/dt_table/main.py +2 -2
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/joinquant/id_table/__init__.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/joinquant/id_table/main.py +2 -2
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/joinquant/meta/main.py +3 -3
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/_extra_pandas/core.py +3 -2
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/_extra_pandas/main.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/_main/__init__.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/_main/_base.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/gen/core.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/gen/dev.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/stats/core.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/tools/core.py +1 -1
- python_quanta-0.4.3/src/quanta/libs/db/_data_type_standard/__init__.py +1 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/db/_data_type_standard/main.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/db/_engines/DuckDB.py +3 -4
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/db/_engines/MySQL.py +3 -3
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/db/_engines/meta.py +1 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/db/main.py +3 -3
- python_quanta-0.4.1/src/quanta/libs/db/_data_type_standard/__init__.py +0 -1
- {python_quanta-0.4.1 → python_quanta-0.4.3}/README.md +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/setup.cfg +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/python_quanta.egg-info/SOURCES.txt +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/python_quanta.egg-info/dependency_links.txt +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/python_quanta.egg-info/requires.txt +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/python_quanta.egg-info/top_level.txt +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/config/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/config/_internal.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/config/data.yaml +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/config/flow.yaml +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/config/libs.yaml +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/joinquant/dt_table/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/data/joinquant/meta/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/duckui.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/_extra_pandas/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/_extra_pandas/old_main.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_flow/_main/_connect.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/analysis/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/analysis/core.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/analysis/dev.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/analysis/main.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/db/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/db/dev.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/db/main.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/gen/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/gen/main.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/rollings/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/rollings/base.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/rollings/core.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/rollings/dev.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/rollings/main.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/stats/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/stats/dev.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/stats/main.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/tools/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/tools/dev.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/_pandas/tools/main.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/db/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/db/_engines/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/utils/__init__.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/src/quanta/libs/utils/_base.py +0 -0
- {python_quanta-0.4.1 → python_quanta-0.4.3}/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.3
|
|
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.3" # 项目版本号
|
|
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.3
|
|
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
|
|
@@ -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.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,8 +8,9 @@ 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')
|
|
@@ -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
|
|
|
@@ -3,7 +3,7 @@ import numpy as np
|
|
|
3
3
|
import pandas as pd
|
|
4
4
|
from typing import Optional, Dict, List, Union
|
|
5
5
|
|
|
6
|
-
from
|
|
6
|
+
from quanta.libs._pandas.tools.core import fillna as fillna_func
|
|
7
7
|
|
|
8
8
|
__all__ = ['group', 'weight', 'portfolio', 'cut', 'part_cut']
|
|
9
9
|
|
|
@@ -8,7 +8,7 @@ import numpy as np
|
|
|
8
8
|
import pandas as pd
|
|
9
9
|
from typing import Optional, Dict, List, Union
|
|
10
10
|
|
|
11
|
-
from
|
|
11
|
+
from quanta.libs._pandas.tools.core import fillna as fillna_func
|
|
12
12
|
|
|
13
13
|
def portfolio(df_obj: pd.DataFrame,
|
|
14
14
|
returns: pd.DataFrame,
|
|
@@ -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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .main import *
|
|
@@ -9,15 +9,14 @@ from typing import Literal
|
|
|
9
9
|
import pandas as pd
|
|
10
10
|
import duckdb
|
|
11
11
|
|
|
12
|
-
from
|
|
13
|
-
from
|
|
12
|
+
from quanta.config import settings
|
|
13
|
+
from .meta import main as meta
|
|
14
14
|
config = settings('libs').db.DuckDB
|
|
15
|
-
from
|
|
15
|
+
from quanta.libs.db._data_type_standard import data_trans
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class main(meta, type('', (), config.recommand_settings)):
|
|
20
|
-
|
|
21
20
|
@classmethod
|
|
22
21
|
def __engine__(cls, **kwargs) -> duckdb.DuckDBPyConnection:
|
|
23
22
|
"""
|
|
@@ -12,10 +12,10 @@ from sqlalchemy import Engine, create_engine
|
|
|
12
12
|
import pymysql
|
|
13
13
|
from numpy import isreal
|
|
14
14
|
|
|
15
|
-
from
|
|
16
|
-
from
|
|
15
|
+
from quanta.config import settings
|
|
16
|
+
from quanta.libs.db._engines.meta import main as meta
|
|
17
17
|
config = settings('libs').db.MySQL
|
|
18
|
-
from
|
|
18
|
+
from quata.libs.db._data_type_standard import data_trans
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -6,7 +6,7 @@ Created on Tue Feb 10 20:00:09 2026
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
from typing import Any, Callable, Dict, List, Optional, Type
|
|
9
|
-
from
|
|
9
|
+
from quanta.libs.utils import filter_class_attrs, merge_dicts, timing_decorator
|
|
10
10
|
|
|
11
11
|
class main():
|
|
12
12
|
@classmethod
|
|
@@ -5,9 +5,9 @@ Created on Thu Feb 12 14:59:31 2026
|
|
|
5
5
|
@author: Porco Rosso
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
8
|
+
from quanta.libs.db._engines.DuckDB import main as DuckDB
|
|
9
|
+
from quanta.libs.db._engines.MySQL import main as MySQL
|
|
10
|
+
from quanta.config import settings
|
|
11
11
|
config = settings('libs').db
|
|
12
12
|
ENGINES = {'DuckDB': DuckDB, 'MySQL': MySQL}
|
|
13
13
|
meta = ENGINES.get(config.recommand_settings)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from ....libs.db._data_type_standard.main 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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|