hossam 0.4.13__tar.gz → 0.4.14__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hossam
3
- Version: 0.4.13
3
+ Version: 0.4.14
4
4
  Summary: Hossam Data Helper
5
5
  Author-email: Lee Kwang-Ho <leekh4232@gmail.com>
6
6
  License-Expression: MIT
@@ -10,6 +10,7 @@ from . import hs_stats
10
10
  from . import hs_timeserise
11
11
  from . import hs_util
12
12
  from . import hs_cluster
13
+ from . import hs_study
13
14
  from .hs_util import load_info
14
15
  from .hs_util import _load_data_remote as load_data
15
16
  from .hs_plot import visualize_silhouette
@@ -17,6 +18,7 @@ from .hs_plot import visualize_silhouette
17
18
  # py-modules
18
19
  import sys
19
20
  import warnings
21
+ import pandas as pd
20
22
  from matplotlib import pyplot as plt
21
23
  from matplotlib import font_manager as fm
22
24
  from importlib.resources import files, as_file
@@ -29,7 +31,7 @@ except Exception:
29
31
 
30
32
  my_dpi = hs_plot.config.dpi
31
33
 
32
- __all__ = ["my_dpi", "load_data", "load_info", "hs_classroom", "hs_gis", "hs_plot", "hs_prep", "hs_stats", "hs_timeserise", "hs_util", "hs_cluster", "visualize_silhouette"]
34
+ __all__ = ["my_dpi", "load_data", "load_info", "hs_classroom", "hs_gis", "hs_plot", "hs_prep", "hs_stats", "hs_timeserise", "hs_util", "hs_cluster", "hs_study", "visualize_silhouette"]
33
35
 
34
36
 
35
37
  def check_pypi_latest(package_name: str):
@@ -80,10 +82,10 @@ def _init_korean_font():
80
82
  "pdf.fonttype": 42,
81
83
  "ps.fonttype": 42,
82
84
  })
83
- if sys.stdout.isatty():
84
- print(
85
- "\n✅ 시각화를 위한 한글 글꼴(NotoSansKR-Regular)이 자동 적용되었습니다."
86
- )
85
+
86
+ print(
87
+ "\n✅ 시각화를 위한 한글 글꼴(NotoSansKR-Regular)이 자동 적용되었습니다."
88
+ )
87
89
  return
88
90
  except Exception as e:
89
91
  warnings.warn(f"\n한글 폰트 초기화: 패키지 폰트 사용 실패 ({e}).")
@@ -91,17 +93,6 @@ def _init_korean_font():
91
93
 
92
94
  def _init():
93
95
 
94
- version_info = check_pypi_latest("hossam")
95
-
96
- if version_info["outdated"]:
97
- print(
98
- f"\n⚠️ 'hossam' 패키지의 최신 버전이 출시되었습니다! (설치된 버전: {version_info['installed']}, 최신 버전: {version_info['latest']})"
99
- )
100
- print(" 최신 버전으로 업데이트하려면 다음 명령어를 실행하세요:")
101
- print(" pip install --upgrade hossam\n")
102
-
103
- raise Warning("hossam 패키지가 최신 버전이 아닙니다.")
104
-
105
96
  # 안내 메시지 (블릿 리스트)
106
97
  messages = [
107
98
  "📦 아이티윌 이광호 강사가 제작한 라이브러리를 사용중입니다.",
@@ -115,7 +106,23 @@ def _init():
115
106
  for msg in messages:
116
107
  print(f"{msg}")
117
108
 
109
+ version_info = check_pypi_latest("hossam")
110
+
111
+ if version_info["outdated"]:
112
+ print(
113
+ f"\n⚠️ 'hossam' 패키지의 최신 버전이 출시되었습니다! (설치된 버전: {version_info['installed']}, 최신 버전: {version_info['latest']})"
114
+ )
115
+ print(" 최신 버전으로 업데이트하려면 다음 명령어를 실행하세요:")
116
+ print(" pip install --upgrade hossam\n")
117
+
118
+ raise Warning("hossam 패키지가 최신 버전이 아닙니다.")
119
+
118
120
  _init_korean_font()
119
121
 
122
+ # 컬럼 생략 금지
123
+ pd.set_option("display.max_columns", None)
124
+ # 행 최대 출력 수 100개로 수정
125
+ pd.set_option("display.max_rows", 100)
126
+
120
127
 
121
128
  _init()