kf-sdk 1.0.0__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.
- kf_sdk-1.0.0/LICENSE.md +29 -0
- kf_sdk-1.0.0/PKG-INFO +211 -0
- kf_sdk-1.0.0/README.md +165 -0
- kf_sdk-1.0.0/kf_sdk/__init__.py +38 -0
- kf_sdk-1.0.0/kf_sdk/api/__init__.py +5 -0
- kf_sdk-1.0.0/kf_sdk/api/dataset_management_api.py +938 -0
- kf_sdk-1.0.0/kf_sdk/api/session_management_api.py +553 -0
- kf_sdk-1.0.0/kf_sdk/api_client.py +791 -0
- kf_sdk-1.0.0/kf_sdk/api_response.py +21 -0
- kf_sdk-1.0.0/kf_sdk/configuration.py +568 -0
- kf_sdk-1.0.0/kf_sdk/exceptions.py +193 -0
- kf_sdk-1.0.0/kf_sdk/models/__init__.py +26 -0
- kf_sdk-1.0.0/kf_sdk/models/configuration_details.py +104 -0
- kf_sdk-1.0.0/kf_sdk/models/dataset_details.py +123 -0
- kf_sdk-1.0.0/kf_sdk/models/dataset_version.py +112 -0
- kf_sdk-1.0.0/kf_sdk/models/http_validation_error.py +95 -0
- kf_sdk-1.0.0/kf_sdk/models/location_inner.py +138 -0
- kf_sdk-1.0.0/kf_sdk/models/new_configuration.py +95 -0
- kf_sdk-1.0.0/kf_sdk/models/new_session.py +109 -0
- kf_sdk-1.0.0/kf_sdk/models/organization_details.py +89 -0
- kf_sdk-1.0.0/kf_sdk/models/session_management_api.py +1106 -0
- kf_sdk-1.0.0/kf_sdk/models/user_details.py +150 -0
- kf_sdk-1.0.0/kf_sdk/models/user_type_details.py +89 -0
- kf_sdk-1.0.0/kf_sdk/models/validation_error.py +99 -0
- kf_sdk-1.0.0/kf_sdk/py.typed +0 -0
- kf_sdk-1.0.0/kf_sdk/rest.py +251 -0
- kf_sdk-1.0.0/kf_sdk.egg-info/PKG-INFO +211 -0
- kf_sdk-1.0.0/kf_sdk.egg-info/SOURCES.txt +32 -0
- kf_sdk-1.0.0/kf_sdk.egg-info/dependency_links.txt +1 -0
- kf_sdk-1.0.0/kf_sdk.egg-info/top_level.txt +1 -0
- kf_sdk-1.0.0/pyproject.toml +111 -0
- kf_sdk-1.0.0/setup.cfg +7 -0
- kf_sdk-1.0.0/setup.py +46 -0
kf_sdk-1.0.0/LICENSE.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, Novosibirsk State University, Ai-Center
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
kf_sdk-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: kf_sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: FastAPI
|
|
5
|
+
Home-page: https://github.com/nsu-ai/kappa
|
|
6
|
+
Author: Kappa group from A.I. Center of NSU
|
|
7
|
+
Author-email: "Kappa Group from A.I. center of NSU" <ai@nsu.ru>
|
|
8
|
+
License: BSD 3-Clause License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2024, Novosibirsk State University, Ai-Center
|
|
11
|
+
All rights reserved.
|
|
12
|
+
|
|
13
|
+
Redistribution and use in source and binary forms, with or without
|
|
14
|
+
modification, are permitted provided that the following conditions are met:
|
|
15
|
+
|
|
16
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
17
|
+
list of conditions and the following disclaimer.
|
|
18
|
+
|
|
19
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
20
|
+
this list of conditions and the following disclaimer in the documentation
|
|
21
|
+
and/or other materials provided with the distribution.
|
|
22
|
+
|
|
23
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
24
|
+
contributors may be used to endorse or promote products derived from
|
|
25
|
+
this software without specific prior written permission.
|
|
26
|
+
|
|
27
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
28
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
29
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
30
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
31
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
32
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
33
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
34
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
35
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
36
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37
|
+
|
|
38
|
+
Project-URL: Homepage, https://github.com/nsu-ai/kappa
|
|
39
|
+
Project-URL: Issues, https://github.com/nsu-ai/kappa/issues
|
|
40
|
+
Project-URL: Repository, https://github.com/nsu-ai/kappa.git
|
|
41
|
+
Keywords: Kappa,Datasets Management,FastAPI
|
|
42
|
+
Classifier: Programming Language :: Python :: 3
|
|
43
|
+
Classifier: Operating System :: OS Independent
|
|
44
|
+
Description-Content-Type: text/markdown
|
|
45
|
+
License-File: LICENSE.md
|
|
46
|
+
|
|
47
|
+
# kf_sdk
|
|
48
|
+
|
|
49
|
+
Kappa Framwork Python SDK for Kappa v.1.0.0
|
|
50
|
+
|
|
51
|
+
- API version: 0.1.0
|
|
52
|
+
- Package version: 1.0.0
|
|
53
|
+
|
|
54
|
+
## Requirements.
|
|
55
|
+
|
|
56
|
+
Python 3.8+
|
|
57
|
+
|
|
58
|
+
## Installation & Usage
|
|
59
|
+
### pip install
|
|
60
|
+
|
|
61
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
pip install kf_sdk
|
|
65
|
+
```
|
|
66
|
+
(you may need to run `pip` with root permission: `sudo pip install kf_sdk`)
|
|
67
|
+
|
|
68
|
+
Then import the package:
|
|
69
|
+
```python
|
|
70
|
+
import kf_sdk
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Setuptools
|
|
74
|
+
|
|
75
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
python setup.py install --user
|
|
79
|
+
```
|
|
80
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
81
|
+
|
|
82
|
+
Then import the package:
|
|
83
|
+
```python
|
|
84
|
+
import kf_sdk
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Tests
|
|
88
|
+
|
|
89
|
+
Execute `pytest` to run the tests.
|
|
90
|
+
|
|
91
|
+
## Getting Started
|
|
92
|
+
|
|
93
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
|
|
97
|
+
import kf_sdk
|
|
98
|
+
from kf_sdk.rest import ApiException
|
|
99
|
+
from pprint import pprint
|
|
100
|
+
|
|
101
|
+
# Defining the host is optional and defaults to http://localhost
|
|
102
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
103
|
+
configuration = kf_sdk.Configuration(
|
|
104
|
+
host = "http://localhost"
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# Enter a context with an instance of the API client
|
|
110
|
+
with kf_sdk.ApiClient(configuration) as api_client:
|
|
111
|
+
# Create an instance of the API class
|
|
112
|
+
api_instance = kf_sdk.DashboardDataApi(api_client)
|
|
113
|
+
user_id = 56 # int |
|
|
114
|
+
user_type_id = 56 # int |
|
|
115
|
+
|
|
116
|
+
try:
|
|
117
|
+
# Get Dashboard Data
|
|
118
|
+
api_response = api_instance.get_dashboard_data_dashboard_user_id_user_type_id_get(user_id, user_type_id)
|
|
119
|
+
print("The response of DashboardDataApi->get_dashboard_data_dashboard_user_id_user_type_id_get:\n")
|
|
120
|
+
pprint(api_response)
|
|
121
|
+
except ApiException as e:
|
|
122
|
+
print("Exception when calling DashboardDataApi->get_dashboard_data_dashboard_user_id_user_type_id_get: %s\n" % e)
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Documentation for API Endpoints
|
|
127
|
+
|
|
128
|
+
All URIs are relative to *http://localhost*
|
|
129
|
+
|
|
130
|
+
Class | Method | HTTP request | Description
|
|
131
|
+
------------ | ------------- | ------------- | -------------
|
|
132
|
+
*DashboardDataApi* | [**get_dashboard_data_dashboard_user_id_user_type_id_get**](docs/DashboardDataApi.md#get_dashboard_data_dashboard_user_id_user_type_id_get) | **GET** /dashboard/{user_id}/{user_type_id} | Get Dashboard Data
|
|
133
|
+
*DatasetManagementApi* | [**delete_dataset_entities_datasets_dataset_entities_user_id_user_type_id_delete**](docs/DatasetManagementApi.md#delete_dataset_entities_datasets_dataset_entities_user_id_user_type_id_delete) | **DELETE** /datasets/datasetEntities/{user_id}/{user_type_id} | Delete Dataset Entities
|
|
134
|
+
*DatasetManagementApi* | [**delete_entity_files_datasets_dataset_entities_files_user_id_user_type_id_delete**](docs/DatasetManagementApi.md#delete_entity_files_datasets_dataset_entities_files_user_id_user_type_id_delete) | **DELETE** /datasets/datasetEntities/files/{user_id}/{user_type_id} | Delete Entity Files
|
|
135
|
+
*DatasetManagementApi* | [**get_dataset_entities_datasets_dataset_entities_user_id_user_type_id_dataset_id_get**](docs/DatasetManagementApi.md#get_dataset_entities_datasets_dataset_entities_user_id_user_type_id_dataset_id_get) | **GET** /datasets/datasetEntities/{user_id}/{user_type_id}/{dataset_id} | Get Dataset Entities
|
|
136
|
+
*DatasetManagementApi* | [**get_dataset_item_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_get**](docs/DatasetManagementApi.md#get_dataset_item_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_get) | **GET** /datasets/datasetEntities/{user_id}/{user_type_id}/{dataset_id}/{dataset_entity_id} | Get Dataset Item
|
|
137
|
+
*DatasetManagementApi* | [**get_entity_file_datasets_dataset_entities_files_user_id_user_type_id_dataset_id_file_id_get**](docs/DatasetManagementApi.md#get_entity_file_datasets_dataset_entities_files_user_id_user_type_id_dataset_id_file_id_get) | **GET** /datasets/datasetEntities/files/{user_id}/{user_type_id}/{dataset_id}/{file_id} | Get Entity File
|
|
138
|
+
*DatasetManagementApi* | [**get_thumbnail_datasets_dataset_entities_thumbnail_user_id_user_type_id_dataset_id_file_id_get**](docs/DatasetManagementApi.md#get_thumbnail_datasets_dataset_entities_thumbnail_user_id_user_type_id_dataset_id_file_id_get) | **GET** /datasets/datasetEntities/thumbnail/{user_id}/{user_type_id}/{dataset_id}/{file_id} | Get Thumbnail
|
|
139
|
+
*DatasetManagementApi* | [**get_user_datasets_datasets_user_id_user_type_id_get**](docs/DatasetManagementApi.md#get_user_datasets_datasets_user_id_user_type_id_get) | **GET** /datasets/{user_id}/{user_type_id} | Get User Datasets
|
|
140
|
+
*DatasetManagementApi* | [**new_dataset_datasets_user_id_user_type_id_post**](docs/DatasetManagementApi.md#new_dataset_datasets_user_id_user_type_id_post) | **POST** /datasets/{user_id}/{user_type_id} | New Dataset
|
|
141
|
+
*DatasetManagementApi* | [**new_dataset_entity_datasets_dataset_entities_user_id_user_type_id_post**](docs/DatasetManagementApi.md#new_dataset_entity_datasets_dataset_entities_user_id_user_type_id_post) | **POST** /datasets/datasetEntities/{user_id}/{user_type_id} | New Dataset Entity
|
|
142
|
+
*DatasetManagementApi* | [**recover_dataset_entities_datasets_dataset_entities_recover_user_id_user_type_id_post**](docs/DatasetManagementApi.md#recover_dataset_entities_datasets_dataset_entities_recover_user_id_user_type_id_post) | **POST** /datasets/datasetEntities/recover/{user_id}/{user_type_id} | Recover Dataset Entities
|
|
143
|
+
*DatasetManagementApi* | [**update_dataset_entity_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_put**](docs/DatasetManagementApi.md#update_dataset_entity_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_put) | **PUT** /datasets/datasetEntities/{user_id}/{user_type_id}/{dataset_id}/{dataset_entity_id} | Update Dataset Entity
|
|
144
|
+
*LocationManagementApi* | [**delete_location_locations_user_id_user_type_id_location_id_delete**](docs/LocationManagementApi.md#delete_location_locations_user_id_user_type_id_location_id_delete) | **DELETE** /locations/{user_id}/{user_type_id}/{location_id} | Delete Location
|
|
145
|
+
*LocationManagementApi* | [**get_user_locations_locations_user_id_user_type_id_get**](docs/LocationManagementApi.md#get_user_locations_locations_user_id_user_type_id_get) | **GET** /locations/{user_id}/{user_type_id} | Get User Locations
|
|
146
|
+
*LocationManagementApi* | [**new_location_locations_user_id_user_type_id_post**](docs/LocationManagementApi.md#new_location_locations_user_id_user_type_id_post) | **POST** /locations/{user_id}/{user_type_id} | New Location
|
|
147
|
+
*LocationManagementApi* | [**recover_location_locations_user_id_user_type_id_location_id_put**](docs/LocationManagementApi.md#recover_location_locations_user_id_user_type_id_location_id_put) | **PUT** /locations/{user_id}/{user_type_id}/{location_id} | Recover Location
|
|
148
|
+
*LocationManagementApi* | [**update_location_locations_user_id_user_type_id_put**](docs/LocationManagementApi.md#update_location_locations_user_id_user_type_id_put) | **PUT** /locations/{user_id}/{user_type_id} | Update Location
|
|
149
|
+
*SessionManagementApi* | [**delete_session_session_logout_user_id_user_type_id_delete**](docs/SessionManagementApi.md#delete_session_session_logout_user_id_user_type_id_delete) | **DELETE** /session/logout/{user_id}/{user_type_id} | Delete Session
|
|
150
|
+
*SessionManagementApi* | [**new_session_session_login_post**](docs/SessionManagementApi.md#new_session_session_login_post) | **POST** /session/login | New Session
|
|
151
|
+
*UsersManagementApi* | [**forgot_password_users_forgot_password_post**](docs/UsersManagementApi.md#forgot_password_users_forgot_password_post) | **POST** /users/forgotPassword | Forgot Password
|
|
152
|
+
*UsersManagementApi* | [**get_profile_picture_users_profile_pic_user_id_user_type_id_get**](docs/UsersManagementApi.md#get_profile_picture_users_profile_pic_user_id_user_type_id_get) | **GET** /users/profilePic/{user_id}/{user_type_id} | Get Profile Picture
|
|
153
|
+
*UsersManagementApi* | [**get_user_locations_users_students_user_id_user_type_id_get**](docs/UsersManagementApi.md#get_user_locations_users_students_user_id_user_type_id_get) | **GET** /users/students/{user_id}/{user_type_id} | Get User Locations
|
|
154
|
+
*UsersManagementApi* | [**new_student_users_students_user_id_user_type_id_post**](docs/UsersManagementApi.md#new_student_users_students_user_id_user_type_id_post) | **POST** /users/students/{user_id}/{user_type_id} | New Student
|
|
155
|
+
*UsersManagementApi* | [**reset_password_users_reset_password_post**](docs/UsersManagementApi.md#reset_password_users_reset_password_post) | **POST** /users/resetPassword | Reset Password
|
|
156
|
+
*UsersManagementApi* | [**update_profile_picture_users_profile_pic_user_id_user_type_id_post**](docs/UsersManagementApi.md#update_profile_picture_users_profile_pic_user_id_user_type_id_post) | **POST** /users/profilePic/{user_id}/{user_type_id} | Update Profile Picture
|
|
157
|
+
*UsersManagementApi* | [**update_user_profile_users_user_id_user_type_id_put**](docs/UsersManagementApi.md#update_user_profile_users_user_id_user_type_id_put) | **PUT** /users/{user_id}/{user_type_id} | Update User Profile
|
|
158
|
+
*UsersManagementApi* | [**validate_user_sign_up_users_validate_user_id_user_type_id_post**](docs/UsersManagementApi.md#validate_user_sign_up_users_validate_user_id_user_type_id_post) | **POST** /users/validate/{user_id}/{user_type_id} | Validate User Sign Up
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## Documentation For Models
|
|
162
|
+
|
|
163
|
+
- [DatasetDetails](docs/DatasetDetails.md)
|
|
164
|
+
- [DatasetEntityDetails](docs/DatasetEntityDetails.md)
|
|
165
|
+
- [DeleteDatasetEntities](docs/DeleteDatasetEntities.md)
|
|
166
|
+
- [EntityFileDetails](docs/EntityFileDetails.md)
|
|
167
|
+
- [ForgotPassword](docs/ForgotPassword.md)
|
|
168
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
169
|
+
- [LocationDetails](docs/LocationDetails.md)
|
|
170
|
+
- [NewDataset](docs/NewDataset.md)
|
|
171
|
+
- [NewDatasetEntity](docs/NewDatasetEntity.md)
|
|
172
|
+
- [NewLocation](docs/NewLocation.md)
|
|
173
|
+
- [NewSession](docs/NewSession.md)
|
|
174
|
+
- [NewStudent](docs/NewStudent.md)
|
|
175
|
+
- [ResetPassword](docs/ResetPassword.md)
|
|
176
|
+
- [StudentDetails](docs/StudentDetails.md)
|
|
177
|
+
- [UpdateDatasetEntity](docs/UpdateDatasetEntity.md)
|
|
178
|
+
- [UpdateLocation](docs/UpdateLocation.md)
|
|
179
|
+
- [UpdateUser](docs/UpdateUser.md)
|
|
180
|
+
- [UserDetails](docs/UserDetails.md)
|
|
181
|
+
- [ValidationError](docs/ValidationError.md)
|
|
182
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
<a id="documentation-for-authorization"></a>
|
|
186
|
+
## Documentation For Authorization
|
|
187
|
+
|
|
188
|
+
Endpoints do not require authorization.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
## Authors
|
|
192
|
+
|
|
193
|
+
Kumar R.,
|
|
194
|
+
Pavlovskiy E.N.,
|
|
195
|
+
Ivankov P.,
|
|
196
|
+
Denisov S.,
|
|
197
|
+
Mishchenko A.,
|
|
198
|
+
Bolotov K.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
Исследование выполнено за счет финансовой поддержки (гранта) исследовательских центров,
|
|
202
|
+
предоставленной Автономной некоммерческой организацией «Аналитический центр при Правительстве
|
|
203
|
+
Российской Федерации», идентификатор соглашения о предоставлении субсидии 000000D730324P540002,
|
|
204
|
+
договор о предоставлении гранта с Новосибирским государственным университетом от 27.12.2023 № 70-2023-001318,
|
|
205
|
+
мероприятие № 23 «Выполнение работ в 2024 г. по ТЗ (проект Научные исследования в области ИИ (Фреймворк «КАППА»))»,
|
|
206
|
+
тематика Программы № 1 «Научные исследования в области ИИ для строительства и городской среды».
|
|
207
|
+
|
|
208
|
+
This work was supported by a grant for research centers, provided by the Analytical Center for
|
|
209
|
+
the Government of the Russian Federation in accordance with the subsidy agreement (agreement
|
|
210
|
+
identifier 000000D730324P540002) and the agreement with the Novosibirsk State University dated
|
|
211
|
+
December 27, 2023 No. 70-2023-001318.
|
kf_sdk-1.0.0/README.md
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# kf_sdk
|
|
2
|
+
|
|
3
|
+
Kappa Framwork Python SDK for Kappa v.1.0.0
|
|
4
|
+
|
|
5
|
+
- API version: 0.1.0
|
|
6
|
+
- Package version: 1.0.0
|
|
7
|
+
|
|
8
|
+
## Requirements.
|
|
9
|
+
|
|
10
|
+
Python 3.8+
|
|
11
|
+
|
|
12
|
+
## Installation & Usage
|
|
13
|
+
### pip install
|
|
14
|
+
|
|
15
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pip install kf_sdk
|
|
19
|
+
```
|
|
20
|
+
(you may need to run `pip` with root permission: `sudo pip install kf_sdk`)
|
|
21
|
+
|
|
22
|
+
Then import the package:
|
|
23
|
+
```python
|
|
24
|
+
import kf_sdk
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Setuptools
|
|
28
|
+
|
|
29
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
python setup.py install --user
|
|
33
|
+
```
|
|
34
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
35
|
+
|
|
36
|
+
Then import the package:
|
|
37
|
+
```python
|
|
38
|
+
import kf_sdk
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Tests
|
|
42
|
+
|
|
43
|
+
Execute `pytest` to run the tests.
|
|
44
|
+
|
|
45
|
+
## Getting Started
|
|
46
|
+
|
|
47
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
|
|
51
|
+
import kf_sdk
|
|
52
|
+
from kf_sdk.rest import ApiException
|
|
53
|
+
from pprint import pprint
|
|
54
|
+
|
|
55
|
+
# Defining the host is optional and defaults to http://localhost
|
|
56
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
57
|
+
configuration = kf_sdk.Configuration(
|
|
58
|
+
host = "http://localhost"
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# Enter a context with an instance of the API client
|
|
64
|
+
with kf_sdk.ApiClient(configuration) as api_client:
|
|
65
|
+
# Create an instance of the API class
|
|
66
|
+
api_instance = kf_sdk.DashboardDataApi(api_client)
|
|
67
|
+
user_id = 56 # int |
|
|
68
|
+
user_type_id = 56 # int |
|
|
69
|
+
|
|
70
|
+
try:
|
|
71
|
+
# Get Dashboard Data
|
|
72
|
+
api_response = api_instance.get_dashboard_data_dashboard_user_id_user_type_id_get(user_id, user_type_id)
|
|
73
|
+
print("The response of DashboardDataApi->get_dashboard_data_dashboard_user_id_user_type_id_get:\n")
|
|
74
|
+
pprint(api_response)
|
|
75
|
+
except ApiException as e:
|
|
76
|
+
print("Exception when calling DashboardDataApi->get_dashboard_data_dashboard_user_id_user_type_id_get: %s\n" % e)
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Documentation for API Endpoints
|
|
81
|
+
|
|
82
|
+
All URIs are relative to *http://localhost*
|
|
83
|
+
|
|
84
|
+
Class | Method | HTTP request | Description
|
|
85
|
+
------------ | ------------- | ------------- | -------------
|
|
86
|
+
*DashboardDataApi* | [**get_dashboard_data_dashboard_user_id_user_type_id_get**](docs/DashboardDataApi.md#get_dashboard_data_dashboard_user_id_user_type_id_get) | **GET** /dashboard/{user_id}/{user_type_id} | Get Dashboard Data
|
|
87
|
+
*DatasetManagementApi* | [**delete_dataset_entities_datasets_dataset_entities_user_id_user_type_id_delete**](docs/DatasetManagementApi.md#delete_dataset_entities_datasets_dataset_entities_user_id_user_type_id_delete) | **DELETE** /datasets/datasetEntities/{user_id}/{user_type_id} | Delete Dataset Entities
|
|
88
|
+
*DatasetManagementApi* | [**delete_entity_files_datasets_dataset_entities_files_user_id_user_type_id_delete**](docs/DatasetManagementApi.md#delete_entity_files_datasets_dataset_entities_files_user_id_user_type_id_delete) | **DELETE** /datasets/datasetEntities/files/{user_id}/{user_type_id} | Delete Entity Files
|
|
89
|
+
*DatasetManagementApi* | [**get_dataset_entities_datasets_dataset_entities_user_id_user_type_id_dataset_id_get**](docs/DatasetManagementApi.md#get_dataset_entities_datasets_dataset_entities_user_id_user_type_id_dataset_id_get) | **GET** /datasets/datasetEntities/{user_id}/{user_type_id}/{dataset_id} | Get Dataset Entities
|
|
90
|
+
*DatasetManagementApi* | [**get_dataset_item_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_get**](docs/DatasetManagementApi.md#get_dataset_item_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_get) | **GET** /datasets/datasetEntities/{user_id}/{user_type_id}/{dataset_id}/{dataset_entity_id} | Get Dataset Item
|
|
91
|
+
*DatasetManagementApi* | [**get_entity_file_datasets_dataset_entities_files_user_id_user_type_id_dataset_id_file_id_get**](docs/DatasetManagementApi.md#get_entity_file_datasets_dataset_entities_files_user_id_user_type_id_dataset_id_file_id_get) | **GET** /datasets/datasetEntities/files/{user_id}/{user_type_id}/{dataset_id}/{file_id} | Get Entity File
|
|
92
|
+
*DatasetManagementApi* | [**get_thumbnail_datasets_dataset_entities_thumbnail_user_id_user_type_id_dataset_id_file_id_get**](docs/DatasetManagementApi.md#get_thumbnail_datasets_dataset_entities_thumbnail_user_id_user_type_id_dataset_id_file_id_get) | **GET** /datasets/datasetEntities/thumbnail/{user_id}/{user_type_id}/{dataset_id}/{file_id} | Get Thumbnail
|
|
93
|
+
*DatasetManagementApi* | [**get_user_datasets_datasets_user_id_user_type_id_get**](docs/DatasetManagementApi.md#get_user_datasets_datasets_user_id_user_type_id_get) | **GET** /datasets/{user_id}/{user_type_id} | Get User Datasets
|
|
94
|
+
*DatasetManagementApi* | [**new_dataset_datasets_user_id_user_type_id_post**](docs/DatasetManagementApi.md#new_dataset_datasets_user_id_user_type_id_post) | **POST** /datasets/{user_id}/{user_type_id} | New Dataset
|
|
95
|
+
*DatasetManagementApi* | [**new_dataset_entity_datasets_dataset_entities_user_id_user_type_id_post**](docs/DatasetManagementApi.md#new_dataset_entity_datasets_dataset_entities_user_id_user_type_id_post) | **POST** /datasets/datasetEntities/{user_id}/{user_type_id} | New Dataset Entity
|
|
96
|
+
*DatasetManagementApi* | [**recover_dataset_entities_datasets_dataset_entities_recover_user_id_user_type_id_post**](docs/DatasetManagementApi.md#recover_dataset_entities_datasets_dataset_entities_recover_user_id_user_type_id_post) | **POST** /datasets/datasetEntities/recover/{user_id}/{user_type_id} | Recover Dataset Entities
|
|
97
|
+
*DatasetManagementApi* | [**update_dataset_entity_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_put**](docs/DatasetManagementApi.md#update_dataset_entity_datasets_dataset_entities_user_id_user_type_id_dataset_id_dataset_entity_id_put) | **PUT** /datasets/datasetEntities/{user_id}/{user_type_id}/{dataset_id}/{dataset_entity_id} | Update Dataset Entity
|
|
98
|
+
*LocationManagementApi* | [**delete_location_locations_user_id_user_type_id_location_id_delete**](docs/LocationManagementApi.md#delete_location_locations_user_id_user_type_id_location_id_delete) | **DELETE** /locations/{user_id}/{user_type_id}/{location_id} | Delete Location
|
|
99
|
+
*LocationManagementApi* | [**get_user_locations_locations_user_id_user_type_id_get**](docs/LocationManagementApi.md#get_user_locations_locations_user_id_user_type_id_get) | **GET** /locations/{user_id}/{user_type_id} | Get User Locations
|
|
100
|
+
*LocationManagementApi* | [**new_location_locations_user_id_user_type_id_post**](docs/LocationManagementApi.md#new_location_locations_user_id_user_type_id_post) | **POST** /locations/{user_id}/{user_type_id} | New Location
|
|
101
|
+
*LocationManagementApi* | [**recover_location_locations_user_id_user_type_id_location_id_put**](docs/LocationManagementApi.md#recover_location_locations_user_id_user_type_id_location_id_put) | **PUT** /locations/{user_id}/{user_type_id}/{location_id} | Recover Location
|
|
102
|
+
*LocationManagementApi* | [**update_location_locations_user_id_user_type_id_put**](docs/LocationManagementApi.md#update_location_locations_user_id_user_type_id_put) | **PUT** /locations/{user_id}/{user_type_id} | Update Location
|
|
103
|
+
*SessionManagementApi* | [**delete_session_session_logout_user_id_user_type_id_delete**](docs/SessionManagementApi.md#delete_session_session_logout_user_id_user_type_id_delete) | **DELETE** /session/logout/{user_id}/{user_type_id} | Delete Session
|
|
104
|
+
*SessionManagementApi* | [**new_session_session_login_post**](docs/SessionManagementApi.md#new_session_session_login_post) | **POST** /session/login | New Session
|
|
105
|
+
*UsersManagementApi* | [**forgot_password_users_forgot_password_post**](docs/UsersManagementApi.md#forgot_password_users_forgot_password_post) | **POST** /users/forgotPassword | Forgot Password
|
|
106
|
+
*UsersManagementApi* | [**get_profile_picture_users_profile_pic_user_id_user_type_id_get**](docs/UsersManagementApi.md#get_profile_picture_users_profile_pic_user_id_user_type_id_get) | **GET** /users/profilePic/{user_id}/{user_type_id} | Get Profile Picture
|
|
107
|
+
*UsersManagementApi* | [**get_user_locations_users_students_user_id_user_type_id_get**](docs/UsersManagementApi.md#get_user_locations_users_students_user_id_user_type_id_get) | **GET** /users/students/{user_id}/{user_type_id} | Get User Locations
|
|
108
|
+
*UsersManagementApi* | [**new_student_users_students_user_id_user_type_id_post**](docs/UsersManagementApi.md#new_student_users_students_user_id_user_type_id_post) | **POST** /users/students/{user_id}/{user_type_id} | New Student
|
|
109
|
+
*UsersManagementApi* | [**reset_password_users_reset_password_post**](docs/UsersManagementApi.md#reset_password_users_reset_password_post) | **POST** /users/resetPassword | Reset Password
|
|
110
|
+
*UsersManagementApi* | [**update_profile_picture_users_profile_pic_user_id_user_type_id_post**](docs/UsersManagementApi.md#update_profile_picture_users_profile_pic_user_id_user_type_id_post) | **POST** /users/profilePic/{user_id}/{user_type_id} | Update Profile Picture
|
|
111
|
+
*UsersManagementApi* | [**update_user_profile_users_user_id_user_type_id_put**](docs/UsersManagementApi.md#update_user_profile_users_user_id_user_type_id_put) | **PUT** /users/{user_id}/{user_type_id} | Update User Profile
|
|
112
|
+
*UsersManagementApi* | [**validate_user_sign_up_users_validate_user_id_user_type_id_post**](docs/UsersManagementApi.md#validate_user_sign_up_users_validate_user_id_user_type_id_post) | **POST** /users/validate/{user_id}/{user_type_id} | Validate User Sign Up
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
## Documentation For Models
|
|
116
|
+
|
|
117
|
+
- [DatasetDetails](docs/DatasetDetails.md)
|
|
118
|
+
- [DatasetEntityDetails](docs/DatasetEntityDetails.md)
|
|
119
|
+
- [DeleteDatasetEntities](docs/DeleteDatasetEntities.md)
|
|
120
|
+
- [EntityFileDetails](docs/EntityFileDetails.md)
|
|
121
|
+
- [ForgotPassword](docs/ForgotPassword.md)
|
|
122
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
123
|
+
- [LocationDetails](docs/LocationDetails.md)
|
|
124
|
+
- [NewDataset](docs/NewDataset.md)
|
|
125
|
+
- [NewDatasetEntity](docs/NewDatasetEntity.md)
|
|
126
|
+
- [NewLocation](docs/NewLocation.md)
|
|
127
|
+
- [NewSession](docs/NewSession.md)
|
|
128
|
+
- [NewStudent](docs/NewStudent.md)
|
|
129
|
+
- [ResetPassword](docs/ResetPassword.md)
|
|
130
|
+
- [StudentDetails](docs/StudentDetails.md)
|
|
131
|
+
- [UpdateDatasetEntity](docs/UpdateDatasetEntity.md)
|
|
132
|
+
- [UpdateLocation](docs/UpdateLocation.md)
|
|
133
|
+
- [UpdateUser](docs/UpdateUser.md)
|
|
134
|
+
- [UserDetails](docs/UserDetails.md)
|
|
135
|
+
- [ValidationError](docs/ValidationError.md)
|
|
136
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<a id="documentation-for-authorization"></a>
|
|
140
|
+
## Documentation For Authorization
|
|
141
|
+
|
|
142
|
+
Endpoints do not require authorization.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## Authors
|
|
146
|
+
|
|
147
|
+
Kumar R.,
|
|
148
|
+
Pavlovskiy E.N.,
|
|
149
|
+
Ivankov P.,
|
|
150
|
+
Denisov S.,
|
|
151
|
+
Mishchenko A.,
|
|
152
|
+
Bolotov K.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
Исследование выполнено за счет финансовой поддержки (гранта) исследовательских центров,
|
|
156
|
+
предоставленной Автономной некоммерческой организацией «Аналитический центр при Правительстве
|
|
157
|
+
Российской Федерации», идентификатор соглашения о предоставлении субсидии 000000D730324P540002,
|
|
158
|
+
договор о предоставлении гранта с Новосибирским государственным университетом от 27.12.2023 № 70-2023-001318,
|
|
159
|
+
мероприятие № 23 «Выполнение работ в 2024 г. по ТЗ (проект Научные исследования в области ИИ (Фреймворк «КАППА»))»,
|
|
160
|
+
тематика Программы № 1 «Научные исследования в области ИИ для строительства и городской среды».
|
|
161
|
+
|
|
162
|
+
This work was supported by a grant for research centers, provided by the Analytical Center for
|
|
163
|
+
the Government of the Russian Federation in accordance with the subsidy agreement (agreement
|
|
164
|
+
identifier 000000D730324P540002) and the agreement with the Novosibirsk State University dated
|
|
165
|
+
December 27, 2023 No. 70-2023-001318.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Kappa-framework user microservices
|
|
7
|
+
|
|
8
|
+
""" # noqa: E501
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
__version__ = "1.0.0"
|
|
12
|
+
|
|
13
|
+
# import apis into sdk package
|
|
14
|
+
from kf_sdk.api.session_management_api import SessionManagementApi
|
|
15
|
+
from kf_sdk.api.dataset_management_api import DatasetManagementApi
|
|
16
|
+
|
|
17
|
+
# import ApiClient
|
|
18
|
+
from kf_sdk.api_response import ApiResponse
|
|
19
|
+
from kf_sdk.api_client import ApiClient
|
|
20
|
+
from kf_sdk.configuration import Configuration
|
|
21
|
+
from kf_sdk.exceptions import OpenApiException
|
|
22
|
+
from kf_sdk.exceptions import ApiTypeError
|
|
23
|
+
from kf_sdk.exceptions import ApiValueError
|
|
24
|
+
from kf_sdk.exceptions import ApiKeyError
|
|
25
|
+
from kf_sdk.exceptions import ApiAttributeError
|
|
26
|
+
from kf_sdk.exceptions import ApiException
|
|
27
|
+
|
|
28
|
+
# import models into sdk package
|
|
29
|
+
from kf_sdk.models.configuration_details import ConfigurationDetails
|
|
30
|
+
from kf_sdk.models.http_validation_error import HTTPValidationError
|
|
31
|
+
from kf_sdk.models.new_configuration import NewConfiguration
|
|
32
|
+
from kf_sdk.models.new_session import NewSession
|
|
33
|
+
from kf_sdk.models.organization_details import OrganizationDetails
|
|
34
|
+
from kf_sdk.models.user_details import UserDetails
|
|
35
|
+
from kf_sdk.models.user_type_details import UserTypeDetails
|
|
36
|
+
from kf_sdk.models.validation_error import ValidationError
|
|
37
|
+
from kf_sdk.models.dataset_details import DatasetDetails
|
|
38
|
+
from kf_sdk.models.dataset_version import DatasetVersion
|