infra-analyticsFastAPIapp 0.1.1__py3-none-any.whl → 0.1.2__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.
- {infra_analyticsfastapiapp-0.1.1.dist-info → infra_analyticsfastapiapp-0.1.2.dist-info}/METADATA +7 -7
- {infra_analyticsfastapiapp-0.1.1.dist-info → infra_analyticsfastapiapp-0.1.2.dist-info}/RECORD +3 -3
- {infra_analyticsfastapiapp-0.1.1.dist-info → infra_analyticsfastapiapp-0.1.2.dist-info}/WHEEL +0 -0
{infra_analyticsfastapiapp-0.1.1.dist-info → infra_analyticsfastapiapp-0.1.2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: infra-analyticsFastAPIapp
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Library for green infrastructure analysis
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: ViolettaZim
|
|
@@ -33,14 +33,14 @@ Description-Content-Type: text/markdown
|
|
|
33
33
|
```bash
|
|
34
34
|
pip install infra-analyticsFastAPIapp
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Пример использования
|
|
37
37
|
|
|
38
38
|
from services.test_service import TreeInfraService
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Создание экземпляра сервиса
|
|
41
41
|
service = TreeInfraService(api_client=None)
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Расчёт срока для дерева
|
|
44
44
|
result = service.calculate_infrastructure_score(
|
|
45
45
|
diameter=25.0, # диаметр ствола (см)
|
|
46
46
|
height=12.0, # высота дерева (м)
|
|
@@ -48,7 +48,7 @@ result = service.calculate_infrastructure_score(
|
|
|
48
48
|
)
|
|
49
49
|
print(result)
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Прогнозирование роста дерева
|
|
52
52
|
prediction = service.predict_tree_growth(
|
|
53
53
|
current_diameter=20.0, # текущий диаметр (см)
|
|
54
54
|
age=15, # возраст дерева (лет)
|
|
@@ -56,7 +56,7 @@ prediction = service.predict_tree_growth(
|
|
|
56
56
|
)
|
|
57
57
|
print(prediction)
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Оценка здоровья дерева
|
|
60
60
|
health = service.get_health_status(
|
|
61
61
|
diameter=18.0, # диаметр (см)
|
|
62
62
|
height=8.0, # высота (м)
|
|
@@ -64,7 +64,7 @@ health = service.get_health_status(
|
|
|
64
64
|
)
|
|
65
65
|
print(health)
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
Результат выполнения
|
|
68
68
|
{
|
|
69
69
|
"diameter_cm": 25.0,
|
|
70
70
|
"height_m": 12.0,
|
{infra_analyticsfastapiapp-0.1.1.dist-info → infra_analyticsfastapiapp-0.1.2.dist-info}/RECORD
RENAMED
|
@@ -5,6 +5,6 @@ routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
5
5
|
routers/tree_routers.py,sha256=MA_sVr7gglIk6lEbuds-HZtUa3Rhunsr82HXUlsefUk,3576
|
|
6
6
|
services/__init__.py,sha256=CmcGgitEBGQhzyK0dy4j1lspC13JMYEUmqM4Obadbu0,42
|
|
7
7
|
services/test_service.py,sha256=EP7NqdUfiptB4zY3iiL3nzwsj9q-PqWxnhyO1s7GcjY,2832
|
|
8
|
-
infra_analyticsfastapiapp-0.1.
|
|
9
|
-
infra_analyticsfastapiapp-0.1.
|
|
10
|
-
infra_analyticsfastapiapp-0.1.
|
|
8
|
+
infra_analyticsfastapiapp-0.1.2.dist-info/METADATA,sha256=S85XL6MAvx5VP37KbpRpQXxxkdd6Ux7RdgJuaFV4r9s,2777
|
|
9
|
+
infra_analyticsfastapiapp-0.1.2.dist-info/WHEEL,sha256=EGEvSphFYqXKs23-kQBeyNoJP1nrT8ZJKQoi5p5DYL8,88
|
|
10
|
+
infra_analyticsfastapiapp-0.1.2.dist-info/RECORD,,
|
{infra_analyticsfastapiapp-0.1.1.dist-info → infra_analyticsfastapiapp-0.1.2.dist-info}/WHEEL
RENAMED
|
File without changes
|