sromaster 0.1.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.
- sromaster-0.1.0/PKG-INFO +157 -0
- sromaster-0.1.0/README.md +136 -0
- sromaster-0.1.0/pyproject.toml +97 -0
- sromaster-0.1.0/setup.cfg +7 -0
- sromaster-0.1.0/setup.py +52 -0
- sromaster-0.1.0/sromaster/__init__.py +83 -0
- sromaster-0.1.0/sromaster/api/__init__.py +6 -0
- sromaster-0.1.0/sromaster/api/parser_api.py +585 -0
- sromaster-0.1.0/sromaster/api/users_api.py +279 -0
- sromaster-0.1.0/sromaster/api_client.py +804 -0
- sromaster-0.1.0/sromaster/api_response.py +21 -0
- sromaster-0.1.0/sromaster/configuration.py +578 -0
- sromaster-0.1.0/sromaster/exceptions.py +216 -0
- sromaster-0.1.0/sromaster/models/__init__.py +33 -0
- sromaster-0.1.0/sromaster/models/accordance_status.py +37 -0
- sromaster-0.1.0/sromaster/models/check_disciplinary_action.py +37 -0
- sromaster-0.1.0/sromaster/models/check_result.py +37 -0
- sromaster-0.1.0/sromaster/models/check_state.py +37 -0
- sromaster-0.1.0/sromaster/models/check_upsert_request.py +119 -0
- sromaster-0.1.0/sromaster/models/http_validation_error.py +95 -0
- sromaster-0.1.0/sromaster/models/insurance_upsert_request.py +130 -0
- sromaster-0.1.0/sromaster/models/legal_form.py +37 -0
- sromaster-0.1.0/sromaster/models/member_status.py +37 -0
- sromaster-0.1.0/sromaster/models/organization_schema.py +133 -0
- sromaster-0.1.0/sromaster/models/registry.py +37 -0
- sromaster-0.1.0/sromaster/models/response_data_user_response.py +96 -0
- sromaster-0.1.0/sromaster/models/sro_member_upsert_request.py +236 -0
- sromaster-0.1.0/sromaster/models/sro_upsert_request.py +111 -0
- sromaster-0.1.0/sromaster/models/user_response.py +91 -0
- sromaster-0.1.0/sromaster/models/validation_error.py +99 -0
- sromaster-0.1.0/sromaster/models/validation_error_loc_inner.py +138 -0
- sromaster-0.1.0/sromaster/py.typed +0 -0
- sromaster-0.1.0/sromaster/rest.py +213 -0
- sromaster-0.1.0/sromaster.egg-info/PKG-INFO +157 -0
- sromaster-0.1.0/sromaster.egg-info/SOURCES.txt +56 -0
- sromaster-0.1.0/sromaster.egg-info/dependency_links.txt +1 -0
- sromaster-0.1.0/sromaster.egg-info/requires.txt +6 -0
- sromaster-0.1.0/sromaster.egg-info/top_level.txt +1 -0
- sromaster-0.1.0/test/test_accordance_status.py +33 -0
- sromaster-0.1.0/test/test_check_disciplinary_action.py +33 -0
- sromaster-0.1.0/test/test_check_result.py +33 -0
- sromaster-0.1.0/test/test_check_state.py +33 -0
- sromaster-0.1.0/test/test_check_upsert_request.py +56 -0
- sromaster-0.1.0/test/test_http_validation_error.py +58 -0
- sromaster-0.1.0/test/test_insurance_upsert_request.py +58 -0
- sromaster-0.1.0/test/test_legal_form.py +33 -0
- sromaster-0.1.0/test/test_member_status.py +33 -0
- sromaster-0.1.0/test/test_organization_schema.py +60 -0
- sromaster-0.1.0/test/test_parser_api.py +45 -0
- sromaster-0.1.0/test/test_registry.py +33 -0
- sromaster-0.1.0/test/test_response_data_user_response.py +58 -0
- sromaster-0.1.0/test/test_sro_member_upsert_request.py +107 -0
- sromaster-0.1.0/test/test_sro_upsert_request.py +69 -0
- sromaster-0.1.0/test/test_user_response.py +56 -0
- sromaster-0.1.0/test/test_users_api.py +38 -0
- sromaster-0.1.0/test/test_validation_error.py +60 -0
- sromaster-0.1.0/test/test_validation_error_loc_inner.py +50 -0
sromaster-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sromaster
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: SRO Master API
|
|
5
|
+
Home-page: https://nexium.me
|
|
6
|
+
Author: Nexium
|
|
7
|
+
Author-email: Nexium <services@nexium.me>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
|
|
10
|
+
Keywords: OpenAPI,OpenAPI-Generator,SRO Master API
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
14
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
15
|
+
Requires-Dist: aiohttp>=3.8.4
|
|
16
|
+
Requires-Dist: aiohttp-retry>=2.8.3
|
|
17
|
+
Requires-Dist: pydantic>=2
|
|
18
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
19
|
+
Dynamic: author
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
|
|
22
|
+
# sromaster
|
|
23
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
24
|
+
|
|
25
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
26
|
+
|
|
27
|
+
- API version: 1.0.0
|
|
28
|
+
- Package version: 0.1.0
|
|
29
|
+
- Generator version: 7.14.0
|
|
30
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
31
|
+
|
|
32
|
+
## Requirements.
|
|
33
|
+
|
|
34
|
+
Python 3.9+
|
|
35
|
+
|
|
36
|
+
## Installation & Usage
|
|
37
|
+
### pip install
|
|
38
|
+
|
|
39
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
43
|
+
```
|
|
44
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
45
|
+
|
|
46
|
+
Then import the package:
|
|
47
|
+
```python
|
|
48
|
+
import sromaster
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Setuptools
|
|
52
|
+
|
|
53
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
python setup.py install --user
|
|
57
|
+
```
|
|
58
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
59
|
+
|
|
60
|
+
Then import the package:
|
|
61
|
+
```python
|
|
62
|
+
import sromaster
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Tests
|
|
66
|
+
|
|
67
|
+
Execute `pytest` to run the tests.
|
|
68
|
+
|
|
69
|
+
## Getting Started
|
|
70
|
+
|
|
71
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
|
|
75
|
+
import sromaster
|
|
76
|
+
from sromaster.rest import ApiException
|
|
77
|
+
from pprint import pprint
|
|
78
|
+
|
|
79
|
+
# Defining the host is optional and defaults to http://localhost
|
|
80
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
81
|
+
configuration = sromaster.Configuration(
|
|
82
|
+
host = "http://localhost"
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
# The client must configure the authentication and authorization parameters
|
|
86
|
+
# in accordance with the API server security policy.
|
|
87
|
+
# Examples for each auth method are provided below, use the example that
|
|
88
|
+
# satisfies your auth use case.
|
|
89
|
+
|
|
90
|
+
# Configure Bearer authorization (JWT): BearerAuth
|
|
91
|
+
configuration = sromaster.Configuration(
|
|
92
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# Enter a context with an instance of the API client
|
|
97
|
+
async with sromaster.ApiClient(configuration) as api_client:
|
|
98
|
+
# Create an instance of the API class
|
|
99
|
+
api_instance = sromaster.ParserApi(api_client)
|
|
100
|
+
sro_member_upsert_request = sromaster.SROMemberUpsertRequest() # SROMemberUpsertRequest |
|
|
101
|
+
|
|
102
|
+
try:
|
|
103
|
+
# Upsert Sro Member
|
|
104
|
+
await api_instance.upsert_sro_member_parser_sro_member_post(sro_member_upsert_request)
|
|
105
|
+
except ApiException as e:
|
|
106
|
+
print("Exception when calling ParserApi->upsert_sro_member_parser_sro_member_post: %s\n" % e)
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Documentation for API Endpoints
|
|
111
|
+
|
|
112
|
+
All URIs are relative to *http://localhost*
|
|
113
|
+
|
|
114
|
+
Class | Method | HTTP request | Description
|
|
115
|
+
------------ | ------------- | ------------- | -------------
|
|
116
|
+
*ParserApi* | [**upsert_sro_member_parser_sro_member_post**](docs/ParserApi.md#upsert_sro_member_parser_sro_member_post) | **POST** /parser/sro-member | Upsert Sro Member
|
|
117
|
+
*ParserApi* | [**upsert_sro_parser_sro_post**](docs/ParserApi.md#upsert_sro_parser_sro_post) | **POST** /parser/sro | Upsert Sro
|
|
118
|
+
*UsersApi* | [**get_me_users_me_get**](docs/UsersApi.md#get_me_users_me_get) | **GET** /users/me | Get Me
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## Documentation For Models
|
|
122
|
+
|
|
123
|
+
- [AccordanceStatus](docs/AccordanceStatus.md)
|
|
124
|
+
- [CheckDisciplinaryAction](docs/CheckDisciplinaryAction.md)
|
|
125
|
+
- [CheckResult](docs/CheckResult.md)
|
|
126
|
+
- [CheckState](docs/CheckState.md)
|
|
127
|
+
- [CheckUpsertRequest](docs/CheckUpsertRequest.md)
|
|
128
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
129
|
+
- [InsuranceUpsertRequest](docs/InsuranceUpsertRequest.md)
|
|
130
|
+
- [LegalForm](docs/LegalForm.md)
|
|
131
|
+
- [MemberStatus](docs/MemberStatus.md)
|
|
132
|
+
- [OrganizationSchema](docs/OrganizationSchema.md)
|
|
133
|
+
- [Registry](docs/Registry.md)
|
|
134
|
+
- [ResponseDataUserResponse](docs/ResponseDataUserResponse.md)
|
|
135
|
+
- [SROMemberUpsertRequest](docs/SROMemberUpsertRequest.md)
|
|
136
|
+
- [SROUpsertRequest](docs/SROUpsertRequest.md)
|
|
137
|
+
- [UserResponse](docs/UserResponse.md)
|
|
138
|
+
- [ValidationError](docs/ValidationError.md)
|
|
139
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<a id="documentation-for-authorization"></a>
|
|
143
|
+
## Documentation For Authorization
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
Authentication schemes defined for the API:
|
|
147
|
+
<a id="BearerAuth"></a>
|
|
148
|
+
### BearerAuth
|
|
149
|
+
|
|
150
|
+
- **Type**: Bearer authentication (JWT)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## Author
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# sromaster
|
|
2
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 1.0.0
|
|
7
|
+
- Package version: 0.1.0
|
|
8
|
+
- Generator version: 7.14.0
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 3.9+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
### pip install
|
|
17
|
+
|
|
18
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
22
|
+
```
|
|
23
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
24
|
+
|
|
25
|
+
Then import the package:
|
|
26
|
+
```python
|
|
27
|
+
import sromaster
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Setuptools
|
|
31
|
+
|
|
32
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python setup.py install --user
|
|
36
|
+
```
|
|
37
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
38
|
+
|
|
39
|
+
Then import the package:
|
|
40
|
+
```python
|
|
41
|
+
import sromaster
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Tests
|
|
45
|
+
|
|
46
|
+
Execute `pytest` to run the tests.
|
|
47
|
+
|
|
48
|
+
## Getting Started
|
|
49
|
+
|
|
50
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
|
|
54
|
+
import sromaster
|
|
55
|
+
from sromaster.rest import ApiException
|
|
56
|
+
from pprint import pprint
|
|
57
|
+
|
|
58
|
+
# Defining the host is optional and defaults to http://localhost
|
|
59
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
60
|
+
configuration = sromaster.Configuration(
|
|
61
|
+
host = "http://localhost"
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# The client must configure the authentication and authorization parameters
|
|
65
|
+
# in accordance with the API server security policy.
|
|
66
|
+
# Examples for each auth method are provided below, use the example that
|
|
67
|
+
# satisfies your auth use case.
|
|
68
|
+
|
|
69
|
+
# Configure Bearer authorization (JWT): BearerAuth
|
|
70
|
+
configuration = sromaster.Configuration(
|
|
71
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# Enter a context with an instance of the API client
|
|
76
|
+
async with sromaster.ApiClient(configuration) as api_client:
|
|
77
|
+
# Create an instance of the API class
|
|
78
|
+
api_instance = sromaster.ParserApi(api_client)
|
|
79
|
+
sro_member_upsert_request = sromaster.SROMemberUpsertRequest() # SROMemberUpsertRequest |
|
|
80
|
+
|
|
81
|
+
try:
|
|
82
|
+
# Upsert Sro Member
|
|
83
|
+
await api_instance.upsert_sro_member_parser_sro_member_post(sro_member_upsert_request)
|
|
84
|
+
except ApiException as e:
|
|
85
|
+
print("Exception when calling ParserApi->upsert_sro_member_parser_sro_member_post: %s\n" % e)
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Documentation for API Endpoints
|
|
90
|
+
|
|
91
|
+
All URIs are relative to *http://localhost*
|
|
92
|
+
|
|
93
|
+
Class | Method | HTTP request | Description
|
|
94
|
+
------------ | ------------- | ------------- | -------------
|
|
95
|
+
*ParserApi* | [**upsert_sro_member_parser_sro_member_post**](docs/ParserApi.md#upsert_sro_member_parser_sro_member_post) | **POST** /parser/sro-member | Upsert Sro Member
|
|
96
|
+
*ParserApi* | [**upsert_sro_parser_sro_post**](docs/ParserApi.md#upsert_sro_parser_sro_post) | **POST** /parser/sro | Upsert Sro
|
|
97
|
+
*UsersApi* | [**get_me_users_me_get**](docs/UsersApi.md#get_me_users_me_get) | **GET** /users/me | Get Me
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## Documentation For Models
|
|
101
|
+
|
|
102
|
+
- [AccordanceStatus](docs/AccordanceStatus.md)
|
|
103
|
+
- [CheckDisciplinaryAction](docs/CheckDisciplinaryAction.md)
|
|
104
|
+
- [CheckResult](docs/CheckResult.md)
|
|
105
|
+
- [CheckState](docs/CheckState.md)
|
|
106
|
+
- [CheckUpsertRequest](docs/CheckUpsertRequest.md)
|
|
107
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
108
|
+
- [InsuranceUpsertRequest](docs/InsuranceUpsertRequest.md)
|
|
109
|
+
- [LegalForm](docs/LegalForm.md)
|
|
110
|
+
- [MemberStatus](docs/MemberStatus.md)
|
|
111
|
+
- [OrganizationSchema](docs/OrganizationSchema.md)
|
|
112
|
+
- [Registry](docs/Registry.md)
|
|
113
|
+
- [ResponseDataUserResponse](docs/ResponseDataUserResponse.md)
|
|
114
|
+
- [SROMemberUpsertRequest](docs/SROMemberUpsertRequest.md)
|
|
115
|
+
- [SROUpsertRequest](docs/SROUpsertRequest.md)
|
|
116
|
+
- [UserResponse](docs/UserResponse.md)
|
|
117
|
+
- [ValidationError](docs/ValidationError.md)
|
|
118
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<a id="documentation-for-authorization"></a>
|
|
122
|
+
## Documentation For Authorization
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
Authentication schemes defined for the API:
|
|
126
|
+
<a id="BearerAuth"></a>
|
|
127
|
+
### BearerAuth
|
|
128
|
+
|
|
129
|
+
- **Type**: Bearer authentication (JWT)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## Author
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "sromaster"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "SRO Master API"
|
|
5
|
+
authors = [
|
|
6
|
+
{name = "Nexium",email = "services@nexium.me"},
|
|
7
|
+
]
|
|
8
|
+
license = "MIT"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
keywords = ["OpenAPI", "OpenAPI-Generator", "SRO Master API"]
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
|
|
13
|
+
dependencies = [
|
|
14
|
+
"urllib3 (>=2.1.0,<3.0.0)",
|
|
15
|
+
"python-dateutil (>=2.8.2)",
|
|
16
|
+
"aiohttp (>=3.8.4)",
|
|
17
|
+
"aiohttp-retry (>=2.8.3)",
|
|
18
|
+
"pydantic (>=2)",
|
|
19
|
+
"typing-extensions (>=4.7.1)"
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[project.urls]
|
|
23
|
+
Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
24
|
+
|
|
25
|
+
[tool.poetry]
|
|
26
|
+
requires-poetry = ">=2.0"
|
|
27
|
+
|
|
28
|
+
[tool.poetry.group.dev.dependencies]
|
|
29
|
+
pytest = ">= 7.2.1"
|
|
30
|
+
pytest-cov = ">= 2.8.1"
|
|
31
|
+
tox = ">= 3.9.0"
|
|
32
|
+
flake8 = ">= 4.0.0"
|
|
33
|
+
types-python-dateutil = ">= 2.8.19.14"
|
|
34
|
+
mypy = ">= 1.5"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
[build-system]
|
|
38
|
+
requires = ["setuptools"]
|
|
39
|
+
build-backend = "setuptools.build_meta"
|
|
40
|
+
|
|
41
|
+
[tool.pylint.'MESSAGES CONTROL']
|
|
42
|
+
extension-pkg-whitelist = "pydantic"
|
|
43
|
+
|
|
44
|
+
[tool.mypy]
|
|
45
|
+
files = [
|
|
46
|
+
"sromaster",
|
|
47
|
+
#"test", # auto-generated tests
|
|
48
|
+
"tests", # hand-written tests
|
|
49
|
+
]
|
|
50
|
+
# TODO: enable "strict" once all these individual checks are passing
|
|
51
|
+
# strict = true
|
|
52
|
+
|
|
53
|
+
# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
|
|
54
|
+
warn_unused_configs = true
|
|
55
|
+
warn_redundant_casts = true
|
|
56
|
+
warn_unused_ignores = true
|
|
57
|
+
|
|
58
|
+
## Getting these passing should be easy
|
|
59
|
+
strict_equality = true
|
|
60
|
+
extra_checks = true
|
|
61
|
+
|
|
62
|
+
## Strongly recommend enabling this one as soon as you can
|
|
63
|
+
check_untyped_defs = true
|
|
64
|
+
|
|
65
|
+
## These shouldn't be too much additional work, but may be tricky to
|
|
66
|
+
## get passing if you use a lot of untyped libraries
|
|
67
|
+
disallow_subclassing_any = true
|
|
68
|
+
disallow_untyped_decorators = true
|
|
69
|
+
disallow_any_generics = true
|
|
70
|
+
|
|
71
|
+
### These next few are various gradations of forcing use of type annotations
|
|
72
|
+
#disallow_untyped_calls = true
|
|
73
|
+
#disallow_incomplete_defs = true
|
|
74
|
+
#disallow_untyped_defs = true
|
|
75
|
+
#
|
|
76
|
+
### This one isn't too hard to get passing, but return on investment is lower
|
|
77
|
+
#no_implicit_reexport = true
|
|
78
|
+
#
|
|
79
|
+
### This one can be tricky to get passing if you use a lot of untyped libraries
|
|
80
|
+
#warn_return_any = true
|
|
81
|
+
|
|
82
|
+
[[tool.mypy.overrides]]
|
|
83
|
+
module = [
|
|
84
|
+
"sromaster.configuration",
|
|
85
|
+
]
|
|
86
|
+
warn_unused_ignores = true
|
|
87
|
+
strict_equality = true
|
|
88
|
+
extra_checks = true
|
|
89
|
+
check_untyped_defs = true
|
|
90
|
+
disallow_subclassing_any = true
|
|
91
|
+
disallow_untyped_decorators = true
|
|
92
|
+
disallow_any_generics = true
|
|
93
|
+
disallow_untyped_calls = true
|
|
94
|
+
disallow_incomplete_defs = true
|
|
95
|
+
disallow_untyped_defs = true
|
|
96
|
+
no_implicit_reexport = true
|
|
97
|
+
warn_return_any = true
|
sromaster-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SRO Master API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from setuptools import setup, find_packages # noqa: H301
|
|
16
|
+
|
|
17
|
+
# To install the library, run the following
|
|
18
|
+
#
|
|
19
|
+
# python setup.py install
|
|
20
|
+
#
|
|
21
|
+
# prerequisite: setuptools
|
|
22
|
+
# http://pypi.python.org/pypi/setuptools
|
|
23
|
+
NAME = "sromaster"
|
|
24
|
+
VERSION = "0.1.0"
|
|
25
|
+
PYTHON_REQUIRES = ">= 3.9"
|
|
26
|
+
REQUIRES = [
|
|
27
|
+
"urllib3 >= 2.1.0, < 3.0.0",
|
|
28
|
+
"python-dateutil >= 2.8.2",
|
|
29
|
+
"aiohttp >= 3.8.4",
|
|
30
|
+
"aiohttp-retry >= 2.8.3",
|
|
31
|
+
"pydantic >= 2",
|
|
32
|
+
"typing-extensions >= 4.7.1",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
setup(
|
|
36
|
+
name=NAME,
|
|
37
|
+
version=VERSION,
|
|
38
|
+
description="SRO Master API",
|
|
39
|
+
author="Nexium",
|
|
40
|
+
author_email="services@nexium.me",
|
|
41
|
+
url="https://nexium.me",
|
|
42
|
+
keywords=["OpenAPI", "OpenAPI-Generator", "SRO Master API"],
|
|
43
|
+
install_requires=REQUIRES,
|
|
44
|
+
packages=find_packages(exclude=["test", "tests"]),
|
|
45
|
+
include_package_data=True,
|
|
46
|
+
long_description_content_type='text/markdown',
|
|
47
|
+
long_description="""\
|
|
48
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
49
|
+
""", # noqa: E501
|
|
50
|
+
package_data={"sromaster": ["py.typed"]},
|
|
51
|
+
license="MIT",
|
|
52
|
+
)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
SRO Master API
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "0.1.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"ParserApi",
|
|
22
|
+
"UsersApi",
|
|
23
|
+
"ApiResponse",
|
|
24
|
+
"ApiClient",
|
|
25
|
+
"Configuration",
|
|
26
|
+
"OpenApiException",
|
|
27
|
+
"ApiTypeError",
|
|
28
|
+
"ApiValueError",
|
|
29
|
+
"ApiKeyError",
|
|
30
|
+
"ApiAttributeError",
|
|
31
|
+
"ApiException",
|
|
32
|
+
"AccordanceStatus",
|
|
33
|
+
"CheckDisciplinaryAction",
|
|
34
|
+
"CheckResult",
|
|
35
|
+
"CheckState",
|
|
36
|
+
"CheckUpsertRequest",
|
|
37
|
+
"HTTPValidationError",
|
|
38
|
+
"InsuranceUpsertRequest",
|
|
39
|
+
"LegalForm",
|
|
40
|
+
"MemberStatus",
|
|
41
|
+
"OrganizationSchema",
|
|
42
|
+
"Registry",
|
|
43
|
+
"ResponseDataUserResponse",
|
|
44
|
+
"SROMemberUpsertRequest",
|
|
45
|
+
"SROUpsertRequest",
|
|
46
|
+
"UserResponse",
|
|
47
|
+
"ValidationError",
|
|
48
|
+
"ValidationErrorLocInner",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
# import apis into sdk package
|
|
52
|
+
from sromaster.api.parser_api import ParserApi as ParserApi
|
|
53
|
+
from sromaster.api.users_api import UsersApi as UsersApi
|
|
54
|
+
|
|
55
|
+
# import ApiClient
|
|
56
|
+
from sromaster.api_response import ApiResponse as ApiResponse
|
|
57
|
+
from sromaster.api_client import ApiClient as ApiClient
|
|
58
|
+
from sromaster.configuration import Configuration as Configuration
|
|
59
|
+
from sromaster.exceptions import OpenApiException as OpenApiException
|
|
60
|
+
from sromaster.exceptions import ApiTypeError as ApiTypeError
|
|
61
|
+
from sromaster.exceptions import ApiValueError as ApiValueError
|
|
62
|
+
from sromaster.exceptions import ApiKeyError as ApiKeyError
|
|
63
|
+
from sromaster.exceptions import ApiAttributeError as ApiAttributeError
|
|
64
|
+
from sromaster.exceptions import ApiException as ApiException
|
|
65
|
+
|
|
66
|
+
# import models into sdk package
|
|
67
|
+
from sromaster.models.accordance_status import AccordanceStatus as AccordanceStatus
|
|
68
|
+
from sromaster.models.check_disciplinary_action import CheckDisciplinaryAction as CheckDisciplinaryAction
|
|
69
|
+
from sromaster.models.check_result import CheckResult as CheckResult
|
|
70
|
+
from sromaster.models.check_state import CheckState as CheckState
|
|
71
|
+
from sromaster.models.check_upsert_request import CheckUpsertRequest as CheckUpsertRequest
|
|
72
|
+
from sromaster.models.http_validation_error import HTTPValidationError as HTTPValidationError
|
|
73
|
+
from sromaster.models.insurance_upsert_request import InsuranceUpsertRequest as InsuranceUpsertRequest
|
|
74
|
+
from sromaster.models.legal_form import LegalForm as LegalForm
|
|
75
|
+
from sromaster.models.member_status import MemberStatus as MemberStatus
|
|
76
|
+
from sromaster.models.organization_schema import OrganizationSchema as OrganizationSchema
|
|
77
|
+
from sromaster.models.registry import Registry as Registry
|
|
78
|
+
from sromaster.models.response_data_user_response import ResponseDataUserResponse as ResponseDataUserResponse
|
|
79
|
+
from sromaster.models.sro_member_upsert_request import SROMemberUpsertRequest as SROMemberUpsertRequest
|
|
80
|
+
from sromaster.models.sro_upsert_request import SROUpsertRequest as SROUpsertRequest
|
|
81
|
+
from sromaster.models.user_response import UserResponse as UserResponse
|
|
82
|
+
from sromaster.models.validation_error import ValidationError as ValidationError
|
|
83
|
+
from sromaster.models.validation_error_loc_inner import ValidationErrorLocInner as ValidationErrorLocInner
|