prop-pred 0.1.0__py3-none-any.whl
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.
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: prop-pred
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Python package for residential property valuation
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
|
|
8
|
+
# Property Worth Predictor
|
|
9
|
+
|
|
10
|
+
## Project Description
|
|
11
|
+
Property Worth Predictor is a Python package designed to estimate the value of residential properties and compare the estimated value with the seller's asking price.
|
|
12
|
+
|
|
13
|
+
It helps users identify whether a property appears overpriced, undervalued or fairly priced based on the provided details.
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
- Calculates basic property value.
|
|
17
|
+
- Adjusts estimated value according to property condition.
|
|
18
|
+
- Compares estimated value with the seller's asking price.
|
|
19
|
+
- Classifies properties into three categories:
|
|
20
|
+
- OVERPRICED
|
|
21
|
+
- UNDERVALUED
|
|
22
|
+
- FAIRLY PRICED
|
|
23
|
+
- Generates a property valuation report.
|
|
24
|
+
- Handles invalid inputs.
|
|
25
|
+
|
|
26
|
+
## Package Structure
|
|
27
|
+
|
|
28
|
+
PropertyWorthPredictor/
|
|
29
|
+
- main.py
|
|
30
|
+
- property_pkg/
|
|
31
|
+
- __init__.py
|
|
32
|
+
- ActualTask.py
|
|
33
|
+
- .gitignore
|
|
34
|
+
|
|
35
|
+
## Technologies Used
|
|
36
|
+
- Python 3
|
|
37
|
+
- Visual Studio Code
|
|
38
|
+
- Git and GitHub
|
|
39
|
+
|
|
40
|
+
## How to Run
|
|
41
|
+
|
|
42
|
+
1. Install Python.
|
|
43
|
+
2. Clone or download this repository.
|
|
44
|
+
3. Open the project folder in VS Code.
|
|
45
|
+
4. Run the following command:
|
|
46
|
+
|
|
47
|
+
py main.py
|
|
48
|
+
|
|
49
|
+
5. Enter the requested property details.
|
|
50
|
+
|
|
51
|
+
## Disclaimer
|
|
52
|
+
This project uses user-provided locality rates and predefined condition adjustments. It provides an academic estimation and should not be treated as a professional property valuation.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
property_pkg/ActualTask.py,sha256=pd7OFguWDlAIGgUtAuo1vJUTsMLZm8pJMvm2t-ic-Ik,1744
|
|
2
|
+
property_pkg/__init__.py,sha256=bex3V5oEhgkKiVXaq5lalDNewM94QSv8lG5xbJEPGoo,99
|
|
3
|
+
prop_pred-0.1.0.dist-info/METADATA,sha256=a84Y-AKV3bka_FH-Pj07OTjaaiaJ1NX-4PqQJL_1lSQ,1434
|
|
4
|
+
prop_pred-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
5
|
+
prop_pred-0.1.0.dist-info/top_level.txt,sha256=_fy6qqVuULDrjeGVHDx2pQTFwXio5CpkYV5dMFVBytg,13
|
|
6
|
+
prop_pred-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
property_pkg
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
def calculate_base_value(area, rate):
|
|
2
|
+
if area <= 0:
|
|
3
|
+
raise ValueError("Property area must be positive")
|
|
4
|
+
|
|
5
|
+
if rate <= 0:
|
|
6
|
+
raise ValueError("Property rate must be positive")
|
|
7
|
+
|
|
8
|
+
return area * rate
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def adjust_property_value(base_value, condition):
|
|
12
|
+
adjustments = {
|
|
13
|
+
"new": 0.05,
|
|
14
|
+
"good": 0,
|
|
15
|
+
"needs renovation": -0.10
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
condition = condition.lower()
|
|
19
|
+
|
|
20
|
+
if condition not in adjustments:
|
|
21
|
+
raise ValueError("Invalid property condition")
|
|
22
|
+
|
|
23
|
+
return base_value * (1 + adjustments[condition])
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def compare_price(estimated_value, asking_price):
|
|
27
|
+
if estimated_value <= 0 or asking_price <= 0:
|
|
28
|
+
raise ValueError("Prices must be positive")
|
|
29
|
+
|
|
30
|
+
difference = ((asking_price - estimated_value) / estimated_value) * 100
|
|
31
|
+
|
|
32
|
+
if difference > 10:
|
|
33
|
+
status = "OVERPRICED"
|
|
34
|
+
elif difference < -10:
|
|
35
|
+
status = "UNDERVALUED"
|
|
36
|
+
else:
|
|
37
|
+
status = "FAIRLY PRICED"
|
|
38
|
+
|
|
39
|
+
return difference, status
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def generate_report(area, rate, condition, estimated_value, asking_price, difference, status):
|
|
43
|
+
|
|
44
|
+
print("\n========== PROPERTY VALUATION REPORT ==========")
|
|
45
|
+
print(" PROPERTY WORTH PREDICTOR")
|
|
46
|
+
|
|
47
|
+
print("Property Area:", area, "sq.ft.")
|
|
48
|
+
print("Locality Rate: Rs.", rate, "per sq.ft.")
|
|
49
|
+
print("Property Condition:", condition)
|
|
50
|
+
|
|
51
|
+
print("-----------------------------------------------")
|
|
52
|
+
|
|
53
|
+
print("Estimated Property Value: Rs. {:,.0f}".format(estimated_value))
|
|
54
|
+
print("Seller Asking Price: Rs. {:,.0f}".format(asking_price))
|
|
55
|
+
print("Price Difference: {:.2f}%".format(difference))
|
|
56
|
+
|
|
57
|
+
print("-----------------------------------------------")
|
|
58
|
+
|
|
59
|
+
print("FINAL ASSESSMENT:", status)
|
|
60
|
+
|
|
61
|
+
print("================================================")
|
property_pkg/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .ActualTask import calculate_base_value, adjust_property_value, compare_price, generate_report
|