openfree commited on
Commit
e43fe01
Β·
verified Β·
1 Parent(s): 1ba6c9c

Update my_functions.py

Browse files
Files changed (1) hide show
  1. my_functions.py +12 -0
my_functions.py CHANGED
@@ -1,5 +1,6 @@
1
  import yfinance as yf
2
 
 
3
  product_catalog = {
4
  "807ZPKBL9V": "SuperWidget",
5
  "1234567890": "MegaGadget"
@@ -30,6 +31,7 @@ def analyze_mco_architecture(framework_version: str, detail_level: int = 3) -> s
30
  framework_version: (예: 'v2.1')
31
  detail_level: 뢄석 상세도 (1~5)
32
  """
 
33
  if detail_level < 1:
34
  detail_level = 1
35
  elif detail_level > 5:
@@ -43,3 +45,13 @@ def analyze_mco_architecture(framework_version: str, detail_level: int = 3) -> s
43
  f"β€» μ‹€μ œλ‘œλŠ” ν•„μš”μ— 따라 더 λ³΅μž‘ν•œ 둜직/파일 뢄석 λ“± μˆ˜ν–‰ κ°€λŠ₯."
44
  )
45
  return analysis
 
 
 
 
 
 
 
 
 
 
 
1
  import yfinance as yf
2
 
3
+ # μ˜ˆμ‹œμš© μ œν’ˆ μΉ΄νƒˆλ‘œκ·Έ
4
  product_catalog = {
5
  "807ZPKBL9V": "SuperWidget",
6
  "1234567890": "MegaGadget"
 
31
  framework_version: (예: 'v2.1')
32
  detail_level: 뢄석 상세도 (1~5)
33
  """
34
+ # μž…λ ₯ λ²”μœ„ 보정
35
  if detail_level < 1:
36
  detail_level = 1
37
  elif detail_level > 5:
 
45
  f"β€» μ‹€μ œλ‘œλŠ” ν•„μš”μ— 따라 더 λ³΅μž‘ν•œ 둜직/파일 뢄석 λ“± μˆ˜ν–‰ κ°€λŠ₯."
46
  )
47
  return analysis
48
+
49
+ # ----------------------------------------------------
50
+ # μƒˆλ‘œ μΆ”κ°€λœ product_details ν•¨μˆ˜
51
+ # ----------------------------------------------------
52
+ def product_details(product_id: str) -> str:
53
+ """
54
+ Looks up product details by product_id (예: 이름, 가격, νŠΉμ§• λ“±)
55
+ """
56
+ # μ—¬κΈ°μ„œλŠ” κ°„λ‹¨νžˆ product_catalogλ₯Ό ν™œμš©ν•΄ μ΄λ¦„λ§Œ λ°˜ν™˜
57
+ return product_catalog.get(product_id, "Unknown product")