tea-bond 0.3.0__cp310-abi3-macosx_11_0_arm64.whl → 0.3.1__cp310-abi3-macosx_11_0_arm64.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.
Potentially problematic release.
This version of tea-bond might be problematic. Click here for more details.
pybond/bond.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
import os
|
|
2
4
|
from datetime import date
|
|
3
5
|
from importlib.util import find_spec
|
|
@@ -5,6 +7,7 @@ from pathlib import Path
|
|
|
5
7
|
|
|
6
8
|
from .pybond import Bond as _BondRS
|
|
7
9
|
from .pybond import Future, download_bond
|
|
10
|
+
|
|
8
11
|
# from .ffi.utils import set_bond_data_path
|
|
9
12
|
|
|
10
13
|
WIND_AVAILABLE = find_spec("WindPy") is not None
|
|
@@ -50,7 +53,7 @@ class Bond(_BondRS):
|
|
|
50
53
|
return super().__new__(cls, code, path)
|
|
51
54
|
|
|
52
55
|
@classmethod
|
|
53
|
-
def from_json(cls, data: str | dict) ->
|
|
56
|
+
def from_json(cls, data: str | dict) -> Bond:
|
|
54
57
|
if isinstance(data, str):
|
|
55
58
|
import json
|
|
56
59
|
|
pybond/pybond.abi3.so
CHANGED
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
pybond/__init__.py,sha256=7x1hBQtlQRhvgxfe6Z0wtQ5tWpTfUPMnaKyjddRyk9Y,430
|
|
2
|
-
pybond/bond.py,sha256=
|
|
2
|
+
pybond/bond.py,sha256=_bpG2MZkFobGS8kkem3z7eNvCR7GqWJHMH4WJCfB5EQ,6568
|
|
3
3
|
pybond/download.py,sha256=ehl_LfcfjCB5dtVvqD0P9PJzK1UYlqhzpDcBq5BycDI,4222
|
|
4
4
|
pybond/ffi/__init__.py,sha256=x4FSqdM-SZPir9DL_XSMjoO9c4CWsyE5XfQr4GraGsg,94
|
|
5
5
|
pybond/ffi/bond.py,sha256=8SFjwBtf-t0uEEgdgdP2TCHkTr-pJCvVsJ7qIKsdh6c,1586
|
|
@@ -18,8 +18,8 @@ pybond/nb/nb_time.py,sha256=LaqXfcNvmYD_lZ2u108MwrxCXoVCBX3cr3oOnPp3c1g,8649
|
|
|
18
18
|
pybond/pl.py,sha256=CakQvQPjvWu8XykDfkBznFmFkIB8m-lVllF-8_BrUsw,7860
|
|
19
19
|
pybond/pnl.py,sha256=P3KXc-gz6_TA2QxDQR9NHJIJPCvLOGT_v4qN4gzdcRY,1568
|
|
20
20
|
pybond/polars_utils.py,sha256=A8D5T0x08oMCndWiQ5DPhLsuWp8s4OPgqvAnK36d8yY,2567
|
|
21
|
-
pybond/pybond.abi3.so,sha256=
|
|
21
|
+
pybond/pybond.abi3.so,sha256=hWQdqKMPT9KZU6fPD8z7dLy7b0q5J6HBJi2O0hrikNU,23186096
|
|
22
22
|
pybond/pybond.pyi,sha256=xME119HJzVNqNCJ9FapVaQg1amxbNHlbd-qfFyiuhL4,11230
|
|
23
|
-
tea_bond-0.3.
|
|
24
|
-
tea_bond-0.3.
|
|
25
|
-
tea_bond-0.3.
|
|
23
|
+
tea_bond-0.3.1.dist-info/METADATA,sha256=9zA8uD2lRgPAeN66HKlZYrvs1CHs2ZyM6IeJRhWveC4,258
|
|
24
|
+
tea_bond-0.3.1.dist-info/WHEEL,sha256=Mdosfxua6Dx1zYgObRH97e3wyiELqBbLtoRJj4RUSQE,103
|
|
25
|
+
tea_bond-0.3.1.dist-info/RECORD,,
|