infra-analyticsFastAPIapp 0.1.1__tar.gz → 0.1.2__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.
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/PKG-INFO +7 -7
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/README.md +6 -6
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/pyproject.toml +1 -1
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/common/api_clients/__init__.py +0 -0
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/common/api_clients/base_client.py +0 -0
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/common/db/database.py +0 -0
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/routers/__init__.py +0 -0
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/routers/tree_routers.py +0 -0
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/services/__init__.py +0 -0
- {infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/services/test_service.py +0 -0
|
@@ -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,
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
```bash
|
|
17
17
|
pip install infra-analyticsFastAPIapp
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Пример использования
|
|
20
20
|
|
|
21
21
|
from services.test_service import TreeInfraService
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Создание экземпляра сервиса
|
|
24
24
|
service = TreeInfraService(api_client=None)
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Расчёт срока для дерева
|
|
27
27
|
result = service.calculate_infrastructure_score(
|
|
28
28
|
diameter=25.0, # диаметр ствола (см)
|
|
29
29
|
height=12.0, # высота дерева (м)
|
|
@@ -31,7 +31,7 @@ result = service.calculate_infrastructure_score(
|
|
|
31
31
|
)
|
|
32
32
|
print(result)
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Прогнозирование роста дерева
|
|
35
35
|
prediction = service.predict_tree_growth(
|
|
36
36
|
current_diameter=20.0, # текущий диаметр (см)
|
|
37
37
|
age=15, # возраст дерева (лет)
|
|
@@ -39,7 +39,7 @@ prediction = service.predict_tree_growth(
|
|
|
39
39
|
)
|
|
40
40
|
print(prediction)
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Оценка здоровья дерева
|
|
43
43
|
health = service.get_health_status(
|
|
44
44
|
diameter=18.0, # диаметр (см)
|
|
45
45
|
height=8.0, # высота (м)
|
|
@@ -47,7 +47,7 @@ health = service.get_health_status(
|
|
|
47
47
|
)
|
|
48
48
|
print(health)
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Результат выполнения
|
|
51
51
|
{
|
|
52
52
|
"diameter_cm": 25.0,
|
|
53
53
|
"height_m": 12.0,
|
{infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/common/api_clients/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{infra_analyticsfastapiapp-0.1.1 → infra_analyticsfastapiapp-0.1.2}/services/test_service.py
RENAMED
|
File without changes
|