nitrozenio 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.
- nitrozenio-1.0.0/PKG-INFO +165 -0
- nitrozenio-1.0.0/README.md +145 -0
- nitrozenio-1.0.0/nitrozenio/__init__.py +102 -0
- nitrozenio-1.0.0/nitrozenio/api/__init__.py +9 -0
- nitrozenio-1.0.0/nitrozenio/api/authentication_api.py +835 -0
- nitrozenio-1.0.0/nitrozenio/api/entries_api.py +1559 -0
- nitrozenio-1.0.0/nitrozenio/api/projects_api.py +1412 -0
- nitrozenio-1.0.0/nitrozenio/api/public_api.py +300 -0
- nitrozenio-1.0.0/nitrozenio/api/users_api.py +534 -0
- nitrozenio-1.0.0/nitrozenio/api_client.py +805 -0
- nitrozenio-1.0.0/nitrozenio/api_response.py +21 -0
- nitrozenio-1.0.0/nitrozenio/configuration.py +585 -0
- nitrozenio-1.0.0/nitrozenio/exceptions.py +218 -0
- nitrozenio-1.0.0/nitrozenio/models/__init__.py +39 -0
- nitrozenio-1.0.0/nitrozenio/models/entry.py +117 -0
- nitrozenio-1.0.0/nitrozenio/models/entry_input.py +109 -0
- nitrozenio-1.0.0/nitrozenio/models/error.py +87 -0
- nitrozenio-1.0.0/nitrozenio/models/new_token.py +94 -0
- nitrozenio-1.0.0/nitrozenio/models/pagination_meta.py +93 -0
- nitrozenio-1.0.0/nitrozenio/models/project.py +129 -0
- nitrozenio-1.0.0/nitrozenio/models/project_input.py +95 -0
- nitrozenio-1.0.0/nitrozenio/models/projects_get200_response.py +95 -0
- nitrozenio-1.0.0/nitrozenio/models/projects_post201_response.py +91 -0
- nitrozenio-1.0.0/nitrozenio/models/projects_project_entries_get200_response.py +101 -0
- nitrozenio-1.0.0/nitrozenio/models/projects_project_entries_post201_response.py +91 -0
- nitrozenio-1.0.0/nitrozenio/models/public_projects_slug_entries_get200_response.py +95 -0
- nitrozenio-1.0.0/nitrozenio/models/token_info.py +99 -0
- nitrozenio-1.0.0/nitrozenio/models/tokens_get200_response.py +95 -0
- nitrozenio-1.0.0/nitrozenio/models/tokens_post201_response.py +91 -0
- nitrozenio-1.0.0/nitrozenio/models/tokens_post_request.py +88 -0
- nitrozenio-1.0.0/nitrozenio/models/usage.py +97 -0
- nitrozenio-1.0.0/nitrozenio/models/usage_limits.py +89 -0
- nitrozenio-1.0.0/nitrozenio/models/user.py +105 -0
- nitrozenio-1.0.0/nitrozenio/models/user_get200_response.py +91 -0
- nitrozenio-1.0.0/nitrozenio/models/user_plan.py +113 -0
- nitrozenio-1.0.0/nitrozenio/models/user_usage_get200_response.py +91 -0
- nitrozenio-1.0.0/nitrozenio/models/validation_error.py +89 -0
- nitrozenio-1.0.0/nitrozenio/py.typed +0 -0
- nitrozenio-1.0.0/nitrozenio/rest.py +263 -0
- nitrozenio-1.0.0/nitrozenio.egg-info/PKG-INFO +165 -0
- nitrozenio-1.0.0/nitrozenio.egg-info/SOURCES.txt +74 -0
- nitrozenio-1.0.0/nitrozenio.egg-info/dependency_links.txt +1 -0
- nitrozenio-1.0.0/nitrozenio.egg-info/requires.txt +4 -0
- nitrozenio-1.0.0/nitrozenio.egg-info/top_level.txt +1 -0
- nitrozenio-1.0.0/pyproject.toml +99 -0
- nitrozenio-1.0.0/setup.cfg +7 -0
- nitrozenio-1.0.0/setup.py +44 -0
- nitrozenio-1.0.0/test/test_authentication_api.py +52 -0
- nitrozenio-1.0.0/test/test_entries_api.py +66 -0
- nitrozenio-1.0.0/test/test_entry.py +58 -0
- nitrozenio-1.0.0/test/test_entry_input.py +58 -0
- nitrozenio-1.0.0/test/test_error.py +51 -0
- nitrozenio-1.0.0/test/test_new_token.py +54 -0
- nitrozenio-1.0.0/test/test_pagination_meta.py +54 -0
- nitrozenio-1.0.0/test/test_project.py +59 -0
- nitrozenio-1.0.0/test/test_project_input.py +53 -0
- nitrozenio-1.0.0/test/test_projects_api.py +66 -0
- nitrozenio-1.0.0/test/test_projects_get200_response.py +62 -0
- nitrozenio-1.0.0/test/test_projects_post201_response.py +60 -0
- nitrozenio-1.0.0/test/test_projects_project_entries_get200_response.py +66 -0
- nitrozenio-1.0.0/test/test_projects_project_entries_post201_response.py +59 -0
- nitrozenio-1.0.0/test/test_public_api.py +38 -0
- nitrozenio-1.0.0/test/test_public_projects_slug_entries_get200_response.py +61 -0
- nitrozenio-1.0.0/test/test_token_info.py +54 -0
- nitrozenio-1.0.0/test/test_tokens_get200_response.py +57 -0
- nitrozenio-1.0.0/test/test_tokens_post201_response.py +55 -0
- nitrozenio-1.0.0/test/test_tokens_post_request.py +52 -0
- nitrozenio-1.0.0/test/test_usage.py +56 -0
- nitrozenio-1.0.0/test/test_usage_limits.py +52 -0
- nitrozenio-1.0.0/test/test_user.py +64 -0
- nitrozenio-1.0.0/test/test_user_get200_response.py +65 -0
- nitrozenio-1.0.0/test/test_user_plan.py +59 -0
- nitrozenio-1.0.0/test/test_user_usage_get200_response.py +57 -0
- nitrozenio-1.0.0/test/test_users_api.py +45 -0
- nitrozenio-1.0.0/test/test_validation_error.py +56 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nitrozenio
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Official Python SDK for the Nitrozen.io changelog API
|
|
5
|
+
Home-page: https://nitrozen.io
|
|
6
|
+
Author: Nitrozen.io
|
|
7
|
+
Author-email: "Nitrozen.io" <support@nitrozen.io>
|
|
8
|
+
Project-URL: Homepage, https://nitrozen.io
|
|
9
|
+
Project-URL: Repository, https://github.com/nitrozenio/nitrozen-python
|
|
10
|
+
Project-URL: Documentation, https://nitrozen.io/docs
|
|
11
|
+
Keywords: nitrozen,changelog,api,sdk
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
15
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
16
|
+
Requires-Dist: pydantic>=2
|
|
17
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
|
|
21
|
+
# Nitrozen Python SDK
|
|
22
|
+
|
|
23
|
+
Official Python client for the [Nitrozen.io](https://nitrozen.io) changelog API.
|
|
24
|
+
|
|
25
|
+
[](https://pypi.org/project/nitrozenio/)
|
|
26
|
+
[](https://pypi.org/project/nitrozenio/)
|
|
27
|
+
[](https://github.com/nitrozenio/nitrozen-python)
|
|
28
|
+
|
|
29
|
+
## Requirements
|
|
30
|
+
|
|
31
|
+
Python 3.9+
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
pip install nitrozenio
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
import nitrozenio
|
|
43
|
+
from nitrozenio.api.projects_api import ProjectsApi
|
|
44
|
+
from nitrozenio.api.entries_api import EntriesApi
|
|
45
|
+
|
|
46
|
+
# Configure with your API token
|
|
47
|
+
configuration = nitrozenio.Configuration(
|
|
48
|
+
host="https://nitrozen.io/api/v1",
|
|
49
|
+
access_token="YOUR_API_TOKEN",
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
with nitrozenio.ApiClient(configuration) as client:
|
|
53
|
+
# List your projects
|
|
54
|
+
projects_api = ProjectsApi(client)
|
|
55
|
+
response = projects_api.projects_get()
|
|
56
|
+
for project in response.data:
|
|
57
|
+
print(f"{project.id} {project.name} ({project.slug})")
|
|
58
|
+
|
|
59
|
+
# Create a changelog entry
|
|
60
|
+
entries_api = EntriesApi(client)
|
|
61
|
+
entry = entries_api.projects_project_entries_post(
|
|
62
|
+
project=response.data[0].id,
|
|
63
|
+
entry_input=nitrozenio.EntryInput(
|
|
64
|
+
title="New feature",
|
|
65
|
+
content="We shipped something great.",
|
|
66
|
+
category="new",
|
|
67
|
+
),
|
|
68
|
+
)
|
|
69
|
+
print(entry.data.title)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Authentication
|
|
73
|
+
|
|
74
|
+
Create an API token on the [API Tokens](https://nitrozen.io/api-tokens) page, then pass it via `access_token` in the configuration:
|
|
75
|
+
|
|
76
|
+
```python
|
|
77
|
+
configuration = nitrozenio.Configuration(
|
|
78
|
+
host="https://nitrozen.io/api/v1",
|
|
79
|
+
access_token="YOUR_API_TOKEN",
|
|
80
|
+
)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Error Handling
|
|
84
|
+
|
|
85
|
+
API errors raise `ApiException`, which carries the HTTP status code and response body:
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
from nitrozenio.exceptions import ApiException
|
|
89
|
+
|
|
90
|
+
try:
|
|
91
|
+
response = projects_api.projects_project_get(project=999)
|
|
92
|
+
except ApiException as e:
|
|
93
|
+
print(e.status) # e.g. 404
|
|
94
|
+
print(e.reason) # e.g. "Not Found"
|
|
95
|
+
print(e.body) # raw JSON error body
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Pagination
|
|
99
|
+
|
|
100
|
+
List endpoints accept `page` and `per_page` parameters and return a `meta` object:
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
response = entries_api.projects_project_entries_get(
|
|
104
|
+
project=project_id,
|
|
105
|
+
page=2,
|
|
106
|
+
per_page=20,
|
|
107
|
+
)
|
|
108
|
+
print(f"page {response.meta.current_page} of {response.meta.last_page} ({response.meta.total} total)")
|
|
109
|
+
for entry in response.data:
|
|
110
|
+
print(f"{entry.id} {entry.title}")
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## API Reference
|
|
114
|
+
|
|
115
|
+
All URIs are relative to `https://nitrozen.io/api/v1`.
|
|
116
|
+
|
|
117
|
+
### Authentication
|
|
118
|
+
|
|
119
|
+
| Method | HTTP | Description |
|
|
120
|
+
|--------|------|-------------|
|
|
121
|
+
| `AuthenticationApi.tokens_get()` | GET /tokens | List API tokens |
|
|
122
|
+
| `AuthenticationApi.tokens_post(body)` | POST /tokens | Create an API token |
|
|
123
|
+
| `AuthenticationApi.tokens_token_delete(id)` | DELETE /tokens/{token} | Revoke an API token |
|
|
124
|
+
|
|
125
|
+
### Projects
|
|
126
|
+
|
|
127
|
+
| Method | HTTP | Description |
|
|
128
|
+
|--------|------|-------------|
|
|
129
|
+
| `ProjectsApi.projects_get()` | GET /projects | List projects |
|
|
130
|
+
| `ProjectsApi.projects_post(body)` | POST /projects | Create a project |
|
|
131
|
+
| `ProjectsApi.projects_project_get(id)` | GET /projects/{project} | Get a project |
|
|
132
|
+
| `ProjectsApi.projects_project_put(id, body)` | PUT /projects/{project} | Update a project |
|
|
133
|
+
| `ProjectsApi.projects_project_delete(id)` | DELETE /projects/{project} | Delete a project |
|
|
134
|
+
|
|
135
|
+
### Entries
|
|
136
|
+
|
|
137
|
+
| Method | HTTP | Description |
|
|
138
|
+
|--------|------|-------------|
|
|
139
|
+
| `EntriesApi.projects_project_entries_get(id, page?, per_page?)` | GET /projects/{project}/entries | List entries |
|
|
140
|
+
| `EntriesApi.projects_project_entries_post(id, body)` | POST /projects/{project}/entries | Create an entry |
|
|
141
|
+
| `EntriesApi.projects_project_entries_entry_get(pid, eid)` | GET …/entries/{entry} | Get an entry |
|
|
142
|
+
| `EntriesApi.projects_project_entries_entry_put(pid, eid, body)` | PUT …/entries/{entry} | Update an entry |
|
|
143
|
+
| `EntriesApi.projects_project_entries_entry_delete(pid, eid)` | DELETE …/entries/{entry} | Delete an entry |
|
|
144
|
+
|
|
145
|
+
### Users
|
|
146
|
+
|
|
147
|
+
| Method | HTTP | Description |
|
|
148
|
+
|--------|------|-------------|
|
|
149
|
+
| `UsersApi.user_get()` | GET /user | Get current user |
|
|
150
|
+
| `UsersApi.user_usage_get()` | GET /user/usage | Get usage statistics |
|
|
151
|
+
|
|
152
|
+
### Public
|
|
153
|
+
|
|
154
|
+
| Method | HTTP | Description |
|
|
155
|
+
|--------|------|-------------|
|
|
156
|
+
| `PublicApi.public_projects_slug_entries_get(slug)` | GET /public/projects/{slug}/entries | List published entries (no auth) |
|
|
157
|
+
|
|
158
|
+
Valid values for the `category` field: `new`, `improvement`, `fix`, `announcement`
|
|
159
|
+
|
|
160
|
+
## Links
|
|
161
|
+
|
|
162
|
+
- [Documentation](https://nitrozen.io/docs)
|
|
163
|
+
- [API Reference](https://nitrozen.io/docs/api)
|
|
164
|
+
- [GitHub](https://github.com/nitrozenio/nitrozen-python)
|
|
165
|
+
- [PyPI](https://pypi.org/project/nitrozenio/)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Nitrozen Python SDK
|
|
2
|
+
|
|
3
|
+
Official Python client for the [Nitrozen.io](https://nitrozen.io) changelog API.
|
|
4
|
+
|
|
5
|
+
[](https://pypi.org/project/nitrozenio/)
|
|
6
|
+
[](https://pypi.org/project/nitrozenio/)
|
|
7
|
+
[](https://github.com/nitrozenio/nitrozen-python)
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
Python 3.9+
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pip install nitrozenio
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
import nitrozenio
|
|
23
|
+
from nitrozenio.api.projects_api import ProjectsApi
|
|
24
|
+
from nitrozenio.api.entries_api import EntriesApi
|
|
25
|
+
|
|
26
|
+
# Configure with your API token
|
|
27
|
+
configuration = nitrozenio.Configuration(
|
|
28
|
+
host="https://nitrozen.io/api/v1",
|
|
29
|
+
access_token="YOUR_API_TOKEN",
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
with nitrozenio.ApiClient(configuration) as client:
|
|
33
|
+
# List your projects
|
|
34
|
+
projects_api = ProjectsApi(client)
|
|
35
|
+
response = projects_api.projects_get()
|
|
36
|
+
for project in response.data:
|
|
37
|
+
print(f"{project.id} {project.name} ({project.slug})")
|
|
38
|
+
|
|
39
|
+
# Create a changelog entry
|
|
40
|
+
entries_api = EntriesApi(client)
|
|
41
|
+
entry = entries_api.projects_project_entries_post(
|
|
42
|
+
project=response.data[0].id,
|
|
43
|
+
entry_input=nitrozenio.EntryInput(
|
|
44
|
+
title="New feature",
|
|
45
|
+
content="We shipped something great.",
|
|
46
|
+
category="new",
|
|
47
|
+
),
|
|
48
|
+
)
|
|
49
|
+
print(entry.data.title)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Authentication
|
|
53
|
+
|
|
54
|
+
Create an API token on the [API Tokens](https://nitrozen.io/api-tokens) page, then pass it via `access_token` in the configuration:
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
configuration = nitrozenio.Configuration(
|
|
58
|
+
host="https://nitrozen.io/api/v1",
|
|
59
|
+
access_token="YOUR_API_TOKEN",
|
|
60
|
+
)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Error Handling
|
|
64
|
+
|
|
65
|
+
API errors raise `ApiException`, which carries the HTTP status code and response body:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from nitrozenio.exceptions import ApiException
|
|
69
|
+
|
|
70
|
+
try:
|
|
71
|
+
response = projects_api.projects_project_get(project=999)
|
|
72
|
+
except ApiException as e:
|
|
73
|
+
print(e.status) # e.g. 404
|
|
74
|
+
print(e.reason) # e.g. "Not Found"
|
|
75
|
+
print(e.body) # raw JSON error body
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Pagination
|
|
79
|
+
|
|
80
|
+
List endpoints accept `page` and `per_page` parameters and return a `meta` object:
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
response = entries_api.projects_project_entries_get(
|
|
84
|
+
project=project_id,
|
|
85
|
+
page=2,
|
|
86
|
+
per_page=20,
|
|
87
|
+
)
|
|
88
|
+
print(f"page {response.meta.current_page} of {response.meta.last_page} ({response.meta.total} total)")
|
|
89
|
+
for entry in response.data:
|
|
90
|
+
print(f"{entry.id} {entry.title}")
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## API Reference
|
|
94
|
+
|
|
95
|
+
All URIs are relative to `https://nitrozen.io/api/v1`.
|
|
96
|
+
|
|
97
|
+
### Authentication
|
|
98
|
+
|
|
99
|
+
| Method | HTTP | Description |
|
|
100
|
+
|--------|------|-------------|
|
|
101
|
+
| `AuthenticationApi.tokens_get()` | GET /tokens | List API tokens |
|
|
102
|
+
| `AuthenticationApi.tokens_post(body)` | POST /tokens | Create an API token |
|
|
103
|
+
| `AuthenticationApi.tokens_token_delete(id)` | DELETE /tokens/{token} | Revoke an API token |
|
|
104
|
+
|
|
105
|
+
### Projects
|
|
106
|
+
|
|
107
|
+
| Method | HTTP | Description |
|
|
108
|
+
|--------|------|-------------|
|
|
109
|
+
| `ProjectsApi.projects_get()` | GET /projects | List projects |
|
|
110
|
+
| `ProjectsApi.projects_post(body)` | POST /projects | Create a project |
|
|
111
|
+
| `ProjectsApi.projects_project_get(id)` | GET /projects/{project} | Get a project |
|
|
112
|
+
| `ProjectsApi.projects_project_put(id, body)` | PUT /projects/{project} | Update a project |
|
|
113
|
+
| `ProjectsApi.projects_project_delete(id)` | DELETE /projects/{project} | Delete a project |
|
|
114
|
+
|
|
115
|
+
### Entries
|
|
116
|
+
|
|
117
|
+
| Method | HTTP | Description |
|
|
118
|
+
|--------|------|-------------|
|
|
119
|
+
| `EntriesApi.projects_project_entries_get(id, page?, per_page?)` | GET /projects/{project}/entries | List entries |
|
|
120
|
+
| `EntriesApi.projects_project_entries_post(id, body)` | POST /projects/{project}/entries | Create an entry |
|
|
121
|
+
| `EntriesApi.projects_project_entries_entry_get(pid, eid)` | GET …/entries/{entry} | Get an entry |
|
|
122
|
+
| `EntriesApi.projects_project_entries_entry_put(pid, eid, body)` | PUT …/entries/{entry} | Update an entry |
|
|
123
|
+
| `EntriesApi.projects_project_entries_entry_delete(pid, eid)` | DELETE …/entries/{entry} | Delete an entry |
|
|
124
|
+
|
|
125
|
+
### Users
|
|
126
|
+
|
|
127
|
+
| Method | HTTP | Description |
|
|
128
|
+
|--------|------|-------------|
|
|
129
|
+
| `UsersApi.user_get()` | GET /user | Get current user |
|
|
130
|
+
| `UsersApi.user_usage_get()` | GET /user/usage | Get usage statistics |
|
|
131
|
+
|
|
132
|
+
### Public
|
|
133
|
+
|
|
134
|
+
| Method | HTTP | Description |
|
|
135
|
+
|--------|------|-------------|
|
|
136
|
+
| `PublicApi.public_projects_slug_entries_get(slug)` | GET /public/projects/{slug}/entries | List published entries (no auth) |
|
|
137
|
+
|
|
138
|
+
Valid values for the `category` field: `new`, `improvement`, `fix`, `announcement`
|
|
139
|
+
|
|
140
|
+
## Links
|
|
141
|
+
|
|
142
|
+
- [Documentation](https://nitrozen.io/docs)
|
|
143
|
+
- [API Reference](https://nitrozen.io/docs/api)
|
|
144
|
+
- [GitHub](https://github.com/nitrozenio/nitrozen-python)
|
|
145
|
+
- [PyPI](https://pypi.org/project/nitrozenio/)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Nitrozen API
|
|
7
|
+
|
|
8
|
+
The Nitrozen API allows you to programmatically manage your changelog projects and entries. ## Authentication All authenticated endpoints require a Bearer token. Create an API token from your [API Tokens](/api-tokens) page, then include it in the `Authorization` header: ``` Authorization: Bearer YOUR_TOKEN_HERE ``` ## Rate Limiting API rate limits are determined by your plan. Each plan specifies a `api_rate_limit` value (requests per minute). When the limit is exceeded, the API returns a `429 Too Many Requests` response. Unauthenticated requests are limited to 60 requests per minute per IP address. ## Pagination List endpoints that support pagination accept `page` and `per_page` query parameters. The response includes a `meta` object with pagination details.
|
|
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__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"AuthenticationApi",
|
|
22
|
+
"EntriesApi",
|
|
23
|
+
"ProjectsApi",
|
|
24
|
+
"PublicApi",
|
|
25
|
+
"UsersApi",
|
|
26
|
+
"ApiResponse",
|
|
27
|
+
"ApiClient",
|
|
28
|
+
"Configuration",
|
|
29
|
+
"OpenApiException",
|
|
30
|
+
"ApiTypeError",
|
|
31
|
+
"ApiValueError",
|
|
32
|
+
"ApiKeyError",
|
|
33
|
+
"ApiAttributeError",
|
|
34
|
+
"ApiException",
|
|
35
|
+
"Entry",
|
|
36
|
+
"EntryInput",
|
|
37
|
+
"Error",
|
|
38
|
+
"NewToken",
|
|
39
|
+
"PaginationMeta",
|
|
40
|
+
"Project",
|
|
41
|
+
"ProjectInput",
|
|
42
|
+
"ProjectsGet200Response",
|
|
43
|
+
"ProjectsPost201Response",
|
|
44
|
+
"ProjectsProjectEntriesGet200Response",
|
|
45
|
+
"ProjectsProjectEntriesPost201Response",
|
|
46
|
+
"PublicProjectsSlugEntriesGet200Response",
|
|
47
|
+
"TokenInfo",
|
|
48
|
+
"TokensGet200Response",
|
|
49
|
+
"TokensPost201Response",
|
|
50
|
+
"TokensPostRequest",
|
|
51
|
+
"Usage",
|
|
52
|
+
"UsageLimits",
|
|
53
|
+
"User",
|
|
54
|
+
"UserGet200Response",
|
|
55
|
+
"UserPlan",
|
|
56
|
+
"UserUsageGet200Response",
|
|
57
|
+
"ValidationError",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
# import apis into sdk package
|
|
61
|
+
from nitrozenio.api.authentication_api import AuthenticationApi as AuthenticationApi
|
|
62
|
+
from nitrozenio.api.entries_api import EntriesApi as EntriesApi
|
|
63
|
+
from nitrozenio.api.projects_api import ProjectsApi as ProjectsApi
|
|
64
|
+
from nitrozenio.api.public_api import PublicApi as PublicApi
|
|
65
|
+
from nitrozenio.api.users_api import UsersApi as UsersApi
|
|
66
|
+
|
|
67
|
+
# import ApiClient
|
|
68
|
+
from nitrozenio.api_response import ApiResponse as ApiResponse
|
|
69
|
+
from nitrozenio.api_client import ApiClient as ApiClient
|
|
70
|
+
from nitrozenio.configuration import Configuration as Configuration
|
|
71
|
+
from nitrozenio.exceptions import OpenApiException as OpenApiException
|
|
72
|
+
from nitrozenio.exceptions import ApiTypeError as ApiTypeError
|
|
73
|
+
from nitrozenio.exceptions import ApiValueError as ApiValueError
|
|
74
|
+
from nitrozenio.exceptions import ApiKeyError as ApiKeyError
|
|
75
|
+
from nitrozenio.exceptions import ApiAttributeError as ApiAttributeError
|
|
76
|
+
from nitrozenio.exceptions import ApiException as ApiException
|
|
77
|
+
|
|
78
|
+
# import models into sdk package
|
|
79
|
+
from nitrozenio.models.entry import Entry as Entry
|
|
80
|
+
from nitrozenio.models.entry_input import EntryInput as EntryInput
|
|
81
|
+
from nitrozenio.models.error import Error as Error
|
|
82
|
+
from nitrozenio.models.new_token import NewToken as NewToken
|
|
83
|
+
from nitrozenio.models.pagination_meta import PaginationMeta as PaginationMeta
|
|
84
|
+
from nitrozenio.models.project import Project as Project
|
|
85
|
+
from nitrozenio.models.project_input import ProjectInput as ProjectInput
|
|
86
|
+
from nitrozenio.models.projects_get200_response import ProjectsGet200Response as ProjectsGet200Response
|
|
87
|
+
from nitrozenio.models.projects_post201_response import ProjectsPost201Response as ProjectsPost201Response
|
|
88
|
+
from nitrozenio.models.projects_project_entries_get200_response import ProjectsProjectEntriesGet200Response as ProjectsProjectEntriesGet200Response
|
|
89
|
+
from nitrozenio.models.projects_project_entries_post201_response import ProjectsProjectEntriesPost201Response as ProjectsProjectEntriesPost201Response
|
|
90
|
+
from nitrozenio.models.public_projects_slug_entries_get200_response import PublicProjectsSlugEntriesGet200Response as PublicProjectsSlugEntriesGet200Response
|
|
91
|
+
from nitrozenio.models.token_info import TokenInfo as TokenInfo
|
|
92
|
+
from nitrozenio.models.tokens_get200_response import TokensGet200Response as TokensGet200Response
|
|
93
|
+
from nitrozenio.models.tokens_post201_response import TokensPost201Response as TokensPost201Response
|
|
94
|
+
from nitrozenio.models.tokens_post_request import TokensPostRequest as TokensPostRequest
|
|
95
|
+
from nitrozenio.models.usage import Usage as Usage
|
|
96
|
+
from nitrozenio.models.usage_limits import UsageLimits as UsageLimits
|
|
97
|
+
from nitrozenio.models.user import User as User
|
|
98
|
+
from nitrozenio.models.user_get200_response import UserGet200Response as UserGet200Response
|
|
99
|
+
from nitrozenio.models.user_plan import UserPlan as UserPlan
|
|
100
|
+
from nitrozenio.models.user_usage_get200_response import UserUsageGet200Response as UserUsageGet200Response
|
|
101
|
+
from nitrozenio.models.validation_error import ValidationError as ValidationError
|
|
102
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from nitrozenio.api.authentication_api import AuthenticationApi
|
|
5
|
+
from nitrozenio.api.entries_api import EntriesApi
|
|
6
|
+
from nitrozenio.api.projects_api import ProjectsApi
|
|
7
|
+
from nitrozenio.api.public_api import PublicApi
|
|
8
|
+
from nitrozenio.api.users_api import UsersApi
|
|
9
|
+
|