ginipick commited on
Commit
5c3d614
Β·
verified Β·
1 Parent(s): e5b083d

Delete my_functions.py

Browse files
Files changed (1) hide show
  1. my_functions.py +0 -45
my_functions.py DELETED
@@ -1,45 +0,0 @@
1
- import yfinance as yf
2
-
3
- product_catalog = {
4
- "807ZPKBL9V": "SuperWidget",
5
- "1234567890": "MegaGadget"
6
- }
7
-
8
- def get_product_name_by_PID(PID: str) -> str:
9
- """
10
- Finds the name of a product by its Product ID
11
- """
12
- return product_catalog.get(PID, "Unknown product")
13
-
14
- def get_stock_price(ticker: str) -> float:
15
- """
16
- Retrieves the latest stock price for a given ticker using yfinance.
17
- """
18
- stock = yf.Ticker(ticker)
19
- data = stock.history(period="1d")
20
- if not data.empty:
21
- return data['Close'].iloc[-1]
22
- return float('nan')
23
-
24
- # ----------------------------------------------------
25
- # μƒˆλ‘­κ²Œ μΆ”κ°€λœ MCO μ•„ν‚€ν…μ²˜ λΆ„μ„μš© ν•¨μˆ˜ (μ˜ˆμ‹œ)
26
- # ----------------------------------------------------
27
- def analyze_mco_architecture(framework_version: str, detail_level: int = 3) -> str:
28
- """
29
- MCO μ•„ν‚€ν…μ²˜(ν•¨μˆ˜ JSON + Python λͺ¨λ“ˆ) ꡬ쑰λ₯Ό 뢄석 및 μš”μ•½ν•΄μ£ΌλŠ” ν•¨μˆ˜.
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:
36
- detail_level = 5
37
-
38
- analysis = (
39
- f"MCO μ•„ν‚€ν…μ²˜(버전 {framework_version}) 뢄석 κ²°κ³Ό:\n"
40
- f" - functions.json에 μ •μ˜λœ ν•¨μˆ˜ λͺ©λ‘ 확인\n"
41
- f" - Python λͺ¨λ“ˆ({__file__})μ—μ„œ ν•¨μˆ˜ κ΅¬ν˜„ 정상 μ—°κ²° 확인\n"
42
- f" - detail_level={detail_level} κΈ°μ€€μœΌλ‘œ μš”μ•½ 리포트\n"
43
- f"β€» μ‹€μ œλ‘œλŠ” ν•„μš”μ— 따라 더 λ³΅μž‘ν•œ 둜직/파일 뢄석 λ“± μˆ˜ν–‰ κ°€λŠ₯."
44
- )
45
- return analysis