money1 0.1__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.
- money1-0.1/LICENSE +1 -0
- money1-0.1/PKG-INFO +11 -0
- money1-0.1/README.md +1 -0
- money1-0.1/money1/__init__.py +62 -0
- money1-0.1/money1.egg-info/PKG-INFO +11 -0
- money1-0.1/money1.egg-info/SOURCES.txt +8 -0
- money1-0.1/money1.egg-info/dependency_links.txt +1 -0
- money1-0.1/money1.egg-info/top_level.txt +1 -0
- money1-0.1/setup.cfg +4 -0
- money1-0.1/setup.py +12 -0
money1-0.1/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
MIT License
|
money1-0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: money1
|
|
3
|
+
Version: 0.1
|
|
4
|
+
Summary: Simple finance utilities package
|
|
5
|
+
Author: o
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Dynamic: author
|
|
9
|
+
Dynamic: classifier
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
Dynamic: summary
|
money1-0.1/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
def topics():
|
|
2
|
+
return [
|
|
3
|
+
"sip",
|
|
4
|
+
"emi",
|
|
5
|
+
"interest",
|
|
6
|
+
"tax",
|
|
7
|
+
"extra"
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def get_text(topic=None):
|
|
12
|
+
data = {
|
|
13
|
+
"sip": """# SIP Calculator
|
|
14
|
+
P = 1000 # monthly investment
|
|
15
|
+
r = 0.12 / 12
|
|
16
|
+
n = 12 * 5
|
|
17
|
+
|
|
18
|
+
future_value = P * (((1 + r)**n - 1) / r) * (1 + r)
|
|
19
|
+
print("Future Value:", future_value)
|
|
20
|
+
""",
|
|
21
|
+
|
|
22
|
+
"emi": """# EMI Calculator
|
|
23
|
+
P = 500000
|
|
24
|
+
r = 0.08 / 12
|
|
25
|
+
n = 60
|
|
26
|
+
|
|
27
|
+
emi = (P * r * (1 + r)**n) / ((1 + r)**n - 1)
|
|
28
|
+
print("EMI:", emi)
|
|
29
|
+
""",
|
|
30
|
+
|
|
31
|
+
"interest": """# Simple Interest
|
|
32
|
+
P = 10000
|
|
33
|
+
R = 5
|
|
34
|
+
T = 2
|
|
35
|
+
|
|
36
|
+
SI = (P * R * T) / 100
|
|
37
|
+
print("Simple Interest:", SI)
|
|
38
|
+
""",
|
|
39
|
+
|
|
40
|
+
"tax": """# Basic Tax Example
|
|
41
|
+
income = 500000
|
|
42
|
+
|
|
43
|
+
if income < 250000:
|
|
44
|
+
tax = 0
|
|
45
|
+
elif income < 500000:
|
|
46
|
+
tax = income * 0.05
|
|
47
|
+
else:
|
|
48
|
+
tax = income * 0.2
|
|
49
|
+
|
|
50
|
+
print("Tax:", tax)
|
|
51
|
+
""",
|
|
52
|
+
|
|
53
|
+
"extra": """# Extra Notes
|
|
54
|
+
You can add your custom financial calculations here.
|
|
55
|
+
"""
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if topic is None:
|
|
59
|
+
return "Use money1.topics() to see available topics"
|
|
60
|
+
|
|
61
|
+
topic = topic.lower()
|
|
62
|
+
return data.get(topic, f"No data for topic: {topic}")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: money1
|
|
3
|
+
Version: 0.1
|
|
4
|
+
Summary: Simple finance utilities package
|
|
5
|
+
Author: o
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Dynamic: author
|
|
9
|
+
Dynamic: classifier
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
Dynamic: summary
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
money1
|
money1-0.1/setup.cfg
ADDED
money1-0.1/setup.py
ADDED