squarecloud-api 3.1.2__tar.gz → 3.1.4__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.
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/PKG-INFO +2 -2
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/pyproject.toml +4 -3
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/app.py +0 -14
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/cli/app.py +0 -2
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/cli/main.py +0 -1
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/client.py +1 -1
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/data.py +1 -10
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/LICENSE +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/README.md +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/__init__.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/cli/__init__.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/cli/files.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/errors.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/file.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/http/__init__.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/http/endpoints.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/http/http_client.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/listener.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/logs.py +0 -0
- {squarecloud_api-3.1.2 → squarecloud_api-3.1.4}/squarecloud/payloads.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "squarecloud-api"
|
|
3
|
-
version = "3.1.
|
|
4
|
-
description = "
|
|
3
|
+
version = "3.1.4"
|
|
4
|
+
description = "SquareCloud API wrapper"
|
|
5
5
|
authors = ["Robert Nogueira <robertlucasnogueira@gmail.com>"]
|
|
6
6
|
repository = "https://github.com/squarecloudofc/wrapper-api-py"
|
|
7
7
|
documentation = "https://docs.squarecloud.app/sdks/py"
|
|
@@ -17,11 +17,12 @@ rich = "^13.5.2"
|
|
|
17
17
|
python-dotenv = "^1.0.0"
|
|
18
18
|
|
|
19
19
|
[tool.poetry.group.dev.dependencies]
|
|
20
|
-
pytest = "^7.3
|
|
20
|
+
pytest = "^7.4.3"
|
|
21
21
|
pytest-cov = "^4.1.0"
|
|
22
22
|
blue = "^0.9.1"
|
|
23
23
|
isort = "^5.12.0"
|
|
24
24
|
taskipy = "^1.12.0"
|
|
25
|
+
python-dotenv = "^1.0.0"
|
|
25
26
|
pytest-asyncio = "^0.21.1"
|
|
26
27
|
pre-commit = "^3.3.3"
|
|
27
28
|
ruff = "^0.0.289"
|
|
@@ -148,7 +148,6 @@ class Application(AbstractApplication):
|
|
|
148
148
|
'_desc',
|
|
149
149
|
'_ram',
|
|
150
150
|
'_lang',
|
|
151
|
-
'_type',
|
|
152
151
|
'_cluster',
|
|
153
152
|
'_isWebsite',
|
|
154
153
|
'_avatar',
|
|
@@ -171,7 +170,6 @@ class Application(AbstractApplication):
|
|
|
171
170
|
'static',
|
|
172
171
|
'dynamic',
|
|
173
172
|
],
|
|
174
|
-
type: Literal['free', 'paid'],
|
|
175
173
|
cluster: Literal[
|
|
176
174
|
'florida-free-1',
|
|
177
175
|
'fl-haswell-4',
|
|
@@ -208,7 +206,6 @@ class Application(AbstractApplication):
|
|
|
208
206
|
'static',
|
|
209
207
|
'dynamic',
|
|
210
208
|
]: The programming language of the app.
|
|
211
|
-
:param type: Literal['free', 'paid]: The app type
|
|
212
209
|
:param cluster: Literal[
|
|
213
210
|
'florida-free-1',
|
|
214
211
|
'fl-haswell-4',
|
|
@@ -238,7 +235,6 @@ class Application(AbstractApplication):
|
|
|
238
235
|
'static',
|
|
239
236
|
'dynamic',
|
|
240
237
|
] = lang
|
|
241
|
-
self._type: Literal['free', 'paid'] = type
|
|
242
238
|
self._cluster: Literal[
|
|
243
239
|
'florida-free-1',
|
|
244
240
|
'fl-haswell-4',
|
|
@@ -354,16 +350,6 @@ class Application(AbstractApplication):
|
|
|
354
350
|
"""
|
|
355
351
|
return self._lang
|
|
356
352
|
|
|
357
|
-
@property
|
|
358
|
-
def type(self) -> Literal['free', 'paid']:
|
|
359
|
-
"""
|
|
360
|
-
The avatar function is a property that returns the application's type.
|
|
361
|
-
|
|
362
|
-
:return: The application's type
|
|
363
|
-
:rtype: Literal['free', 'paid']
|
|
364
|
-
"""
|
|
365
|
-
return self._type
|
|
366
|
-
|
|
367
353
|
@property
|
|
368
354
|
def cluster(
|
|
369
355
|
self,
|
|
@@ -64,7 +64,6 @@ async def app_group(ctx: Context, app_id: str, token: str):
|
|
|
64
64
|
table.add_row(
|
|
65
65
|
app.tag,
|
|
66
66
|
app.id,
|
|
67
|
-
app.type,
|
|
68
67
|
str(app.ram),
|
|
69
68
|
app.lang,
|
|
70
69
|
app.desc,
|
|
@@ -145,7 +144,6 @@ async def app_list(ctx: Context, token: str):
|
|
|
145
144
|
table.add_row(
|
|
146
145
|
app.tag,
|
|
147
146
|
app.id,
|
|
148
|
-
app.type,
|
|
149
147
|
str(app.ram),
|
|
150
148
|
app.lang,
|
|
151
149
|
app.desc,
|
|
@@ -79,7 +79,6 @@ class AppData:
|
|
|
79
79
|
:ivar avatar: The application avatar
|
|
80
80
|
:ivar owner: The application owner ID
|
|
81
81
|
:ivar cluster: The cluster that the app is hosted on
|
|
82
|
-
:ivar cpu: The amount of CPU that application is using
|
|
83
82
|
:ivar ram: The amount of RAM that application is using
|
|
84
83
|
:ivar language The programming language of the app.:
|
|
85
84
|
:ivar isWebsite: Whether if the app is a website
|
|
@@ -91,7 +90,6 @@ class AppData:
|
|
|
91
90
|
:type cluster: Literal[
|
|
92
91
|
'florida-ds1-1', 'florida-ds1-2', 'florida-ds1-3', 'florida-ds1-free-1'
|
|
93
92
|
]
|
|
94
|
-
:type cpu: int;
|
|
95
93
|
:type ram: int;
|
|
96
94
|
:type language: Literal[
|
|
97
95
|
'javascript',
|
|
@@ -117,7 +115,6 @@ class AppData:
|
|
|
117
115
|
cluster: Literal[
|
|
118
116
|
'florida-ds1-1', 'florida-ds1-2', 'florida-ds1-3', 'florida-ds1-free-1'
|
|
119
117
|
]
|
|
120
|
-
cpu: int
|
|
121
118
|
ram: int
|
|
122
119
|
language: Literal[
|
|
123
120
|
'javascript',
|
|
@@ -143,25 +140,20 @@ class UserData:
|
|
|
143
140
|
User data class
|
|
144
141
|
|
|
145
142
|
:ivar id: User ID;
|
|
146
|
-
:ivar tag:
|
|
147
|
-
:ivar locale: User locale
|
|
143
|
+
:ivar tag: Username
|
|
148
144
|
:ivar plan: User plan
|
|
149
145
|
:ivar blocklist: Whether to user is blocked
|
|
150
146
|
:ivar email: User email
|
|
151
147
|
|
|
152
148
|
:type id: int
|
|
153
149
|
:type tag: str
|
|
154
|
-
:type locale: str
|
|
155
150
|
:type plan: PlanData
|
|
156
|
-
:type blocklist: bool
|
|
157
151
|
:type email: str | None = None
|
|
158
152
|
"""
|
|
159
153
|
|
|
160
154
|
id: int
|
|
161
155
|
tag: str
|
|
162
|
-
locale: str
|
|
163
156
|
plan: PlanData
|
|
164
|
-
blocklist: bool
|
|
165
157
|
email: str | None = None
|
|
166
158
|
|
|
167
159
|
|
|
@@ -314,4 +306,3 @@ class StatisticsData:
|
|
|
314
306
|
apps: int
|
|
315
307
|
websites: int
|
|
316
308
|
ping: int
|
|
317
|
-
time: int
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|