seolpyo-mplchart 0.0.2__tar.gz → 0.0.4__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.
Potentially problematic release.
This version of seolpyo-mplchart might be problematic. Click here for more details.
- {seolpyo_mplchart-0.0.2/seolpyo_mplchart.egg-info → seolpyo_mplchart-0.0.4}/PKG-INFO +13 -3
- seolpyo_mplchart-0.0.4/README.md +20 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/pyproject.toml +5 -5
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/cursor.py +3 -3
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/draw.py +1 -1
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/utils.py +2 -2
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4/seolpyo_mplchart.egg-info}/PKG-INFO +13 -3
- seolpyo_mplchart-0.0.4/seolpyo_mplchart.egg-info/requires.txt +2 -0
- seolpyo_mplchart-0.0.2/README.md +0 -10
- seolpyo_mplchart-0.0.2/seolpyo_mplchart.egg-info/requires.txt +0 -2
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/MANIFEST.in +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/__init__.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/base.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/data/apple.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/data/samsung.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/slider.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart/test.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart.egg-info/SOURCES.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart.egg-info/dependency_links.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart.egg-info/top_level.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Fast candlestick chart using Python.
|
|
5
5
|
Author-email: white-seolpyo <white-seolpyo@naver.com>
|
|
6
6
|
License: MIT License
|
|
@@ -22,8 +22,8 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
23
|
Requires-Python: >=3.11
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
|
-
Requires-Dist: matplotlib>=3.
|
|
26
|
-
Requires-Dist: pandas>=2.
|
|
25
|
+
Requires-Dist: matplotlib>=3.7.0
|
|
26
|
+
Requires-Dist: pandas>=2.0.0
|
|
27
27
|
|
|
28
28
|
# Donation
|
|
29
29
|
Bitcoin: 1MKCHW8smDZv5DFMiVkA5G3DeXcMn871ZX
|
|
@@ -35,3 +35,13 @@ Ethereum: 0x1c5fb8a5e0b1153cd4116c91736bd16fabf83520
|
|
|
35
35
|
[English](https://white.seolpyo.com/entry/148/)
|
|
36
36
|
|
|
37
37
|
[한글](https://white.seolpyo.com/entry/147/)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# Sample
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+

|
|
46
|
+
|
|
47
|
+

|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Donation
|
|
2
|
+
Bitcoin: 1MKCHW8smDZv5DFMiVkA5G3DeXcMn871ZX
|
|
3
|
+
|
|
4
|
+
Ethereum: 0x1c5fb8a5e0b1153cd4116c91736bd16fabf83520
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Document
|
|
8
|
+
[English](https://white.seolpyo.com/entry/148/)
|
|
9
|
+
|
|
10
|
+
[한글](https://white.seolpyo.com/entry/147/)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# Sample
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+

|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
[build-system]
|
|
2
2
|
requires = [
|
|
3
3
|
"setuptools >= 65.0",
|
|
4
|
-
"matplotlib >= 3.
|
|
5
|
-
"pandas >= 2.
|
|
4
|
+
"matplotlib >= 3.7.0",
|
|
5
|
+
"pandas >= 2.0.0",
|
|
6
6
|
]
|
|
7
7
|
build-backend = "setuptools.build_meta"
|
|
8
8
|
|
|
9
9
|
[project]
|
|
10
10
|
name = "seolpyo-mplchart"
|
|
11
|
-
version = "0.0.
|
|
11
|
+
version = "0.0.4"
|
|
12
12
|
dependencies = [
|
|
13
|
-
"matplotlib >= 3.
|
|
14
|
-
"pandas >= 2.
|
|
13
|
+
"matplotlib >= 3.7.0",
|
|
14
|
+
"pandas >= 2.0.0",
|
|
15
15
|
]
|
|
16
16
|
license = {text = "MIT License"}
|
|
17
17
|
description = "Fast candlestick chart using Python.\nIncludes navigator, slider, navigation, and text information display functions"
|
|
@@ -331,8 +331,8 @@ class InfoMixin(LineMixin):
|
|
|
331
331
|
else: c = float_to_str(cd[0])
|
|
332
332
|
|
|
333
333
|
comd = divmod(compare, 1)
|
|
334
|
-
if comd[1]: com = f'{float_to_str(comd[0])} {Fraction(comd[1])}'
|
|
335
|
-
else: com = float_to_str(comd[0])
|
|
334
|
+
if comd[1]: com = f'{float_to_str(comd[0], plus=True)} {Fraction(comd[1])}'
|
|
335
|
+
else: com = float_to_str(comd[0], plus=True)
|
|
336
336
|
|
|
337
337
|
o = o.__round__(self.digit_price)
|
|
338
338
|
od = divmod(o, 1)
|
|
@@ -361,7 +361,7 @@ class InfoMixin(LineMixin):
|
|
|
361
361
|
)
|
|
362
362
|
else:
|
|
363
363
|
o, h, l, c = (float_to_str(o, self.digit_price), float_to_str(h, self.digit_price), float_to_str(l, self.digit_price), float_to_str(c, self.digit_price))
|
|
364
|
-
com = float_to_str(compare, self.digit_price)
|
|
364
|
+
com = float_to_str(compare, self.digit_price, plus=True)
|
|
365
365
|
|
|
366
366
|
text = self.candleformat.format(
|
|
367
367
|
dt,
|
|
@@ -54,7 +54,7 @@ class DataMixin(Base):
|
|
|
54
54
|
if k in _set_key: raise Exception(f'you can not set "self.{i}" value in {_set_key}.\nself.{i}={k!r}')
|
|
55
55
|
if i != 'date':
|
|
56
56
|
dtype = df[k].dtype
|
|
57
|
-
if not isinstance(dtype, np.dtypes.Float64DType): raise TypeError(f'Data column type must be "float64".(excluding "date" column)\ndf[{k!r}].dtype={dtype!r}')
|
|
57
|
+
if not isinstance(dtype, (np.dtypes.Float64DType, np.dtypes.Int64DType, np.dtypes.Float32DType, np.dtypes.Int32DType)): raise TypeError(f'Data column type must be "float64" or "int64" or "float32" or "int32".(excluding "date" column)\ndf[{k!r}].dtype={dtype!r}')
|
|
58
58
|
|
|
59
59
|
for i in self.list_ma: df[f'ma{i}'] = df[self.close].rolling(i).mean()
|
|
60
60
|
|
|
@@ -5,9 +5,9 @@ def convert_num(num):
|
|
|
5
5
|
return int(num)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
def float_to_str(num: float, digit=0):
|
|
8
|
+
def float_to_str(num: float, digit=0, plus=False):
|
|
9
9
|
num.__round__(digit)
|
|
10
|
-
text = f'{num:,.{digit}f}'
|
|
10
|
+
text = f'{num:+,.{digit}f}' if plus else f'{num:,.{digit}f}'
|
|
11
11
|
return text
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Fast candlestick chart using Python.
|
|
5
5
|
Author-email: white-seolpyo <white-seolpyo@naver.com>
|
|
6
6
|
License: MIT License
|
|
@@ -22,8 +22,8 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
23
|
Requires-Python: >=3.11
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
|
-
Requires-Dist: matplotlib>=3.
|
|
26
|
-
Requires-Dist: pandas>=2.
|
|
25
|
+
Requires-Dist: matplotlib>=3.7.0
|
|
26
|
+
Requires-Dist: pandas>=2.0.0
|
|
27
27
|
|
|
28
28
|
# Donation
|
|
29
29
|
Bitcoin: 1MKCHW8smDZv5DFMiVkA5G3DeXcMn871ZX
|
|
@@ -35,3 +35,13 @@ Ethereum: 0x1c5fb8a5e0b1153cd4116c91736bd16fabf83520
|
|
|
35
35
|
[English](https://white.seolpyo.com/entry/148/)
|
|
36
36
|
|
|
37
37
|
[한글](https://white.seolpyo.com/entry/147/)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# Sample
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+

|
|
46
|
+
|
|
47
|
+

|
seolpyo_mplchart-0.0.2/README.md
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.4}/seolpyo_mplchart.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|