squarecloud-api 3.1.3__tar.gz → 3.1.5__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.
Files changed (22) hide show
  1. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/PKG-INFO +5 -2
  2. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/pyproject.toml +5 -10
  3. squarecloud_api-3.1.5/squarecloud/__init__.py +16 -0
  4. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/app.py +140 -220
  5. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/cli/__init__.py +1 -1
  6. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/cli/app.py +2 -9
  7. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/cli/files.py +52 -52
  8. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/cli/main.py +1 -14
  9. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/client.py +53 -22
  10. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/data.py +63 -83
  11. squarecloud_api-3.1.5/squarecloud/errors.py +203 -0
  12. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/file.py +10 -1
  13. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/http/endpoints.py +24 -2
  14. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/http/http_client.py +106 -55
  15. squarecloud_api-3.1.3/squarecloud/listener.py → squarecloud_api-3.1.5/squarecloud/listeners.py +36 -24
  16. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/logs.py +8 -2
  17. squarecloud_api-3.1.3/squarecloud/__init__.py +0 -18
  18. squarecloud_api-3.1.3/squarecloud/errors.py +0 -79
  19. squarecloud_api-3.1.3/squarecloud/payloads.py +0 -51
  20. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/LICENSE +0 -0
  21. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/README.md +0 -0
  22. {squarecloud_api-3.1.3 → squarecloud_api-3.1.5}/squarecloud/http/__init__.py +0 -0
@@ -1,18 +1,21 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: squarecloud-api
3
- Version: 3.1.3
3
+ Version: 3.1.5
4
4
  Summary: SquareCloud API wrapper
5
5
  Home-page: https://github.com/squarecloudofc/wrapper-api-py
6
6
  License: MIT
7
7
  Author: Robert Nogueira
8
8
  Author-email: robertlucasnogueira@gmail.com
9
- Requires-Python: >=3.10,<4.0
9
+ Requires-Python: >=3.9,<4.0
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
12
13
  Classifier: Programming Language :: Python :: 3.10
13
14
  Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
14
16
  Requires-Dist: aiohttp (==3.8.3)
15
17
  Requires-Dist: click (>=8.1.6,<9.0.0)
18
+ Requires-Dist: pydantic (>=2.5.2,<3.0.0)
16
19
  Requires-Dist: rich (>=13.5.2,<14.0.0)
17
20
  Project-URL: Documentation, https://docs.squarecloud.app/sdks/py
18
21
  Project-URL: Repository, https://github.com/squarecloudofc/wrapper-api-py
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "squarecloud-api"
3
- version = "3.1.3"
3
+ version = "3.1.5"
4
4
  description = "SquareCloud API wrapper"
5
5
  authors = ["Robert Nogueira <robertlucasnogueira@gmail.com>"]
6
6
  repository = "https://github.com/squarecloudofc/wrapper-api-py"
@@ -10,10 +10,11 @@ readme = "README.md"
10
10
  packages = [{ include = "squarecloud" }]
11
11
 
12
12
  [tool.poetry.dependencies]
13
- python = "^3.10"
13
+ python = "^3.9"
14
14
  aiohttp = "3.8.3"
15
15
  click = "^8.1.6"
16
16
  rich = "^13.5.2"
17
+ pydantic = "^2.5.2"
17
18
 
18
19
  [tool.poetry.group.dev.dependencies]
19
20
  pytest = "^7.4.3"
@@ -25,13 +26,7 @@ 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"
28
-
29
- [tool.poetry.group.doc.dependencies]
30
- mkdocs-material = "^9.1.21"
31
- mkdocstrings = "^0.22.0"
32
- mkdocstrings-python = "^1.2.1"
33
- termynal = "^0.11.0"
34
- mkdocs-table-reader-plugin = "^2.0.1"
29
+ memory-profiler = "^0.61.0"
35
30
 
36
31
  [build-system]
37
32
  requires = ["poetry-core"]
@@ -46,7 +41,7 @@ profile = "black"
46
41
  line_length = 79
47
42
 
48
43
  [tool.taskipy.tasks]
49
- lint = "isort . && blue --check --diff ."
44
+ lint = "isort . && blue . && ruff ."
50
45
  pre_test = "task lint"
51
46
  test = "pytest -s -x --cov=squarecloud -vv tests"
52
47
  post_test = "coverage html"
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+
3
+ from .client import Client, create_config_file
4
+ from .data import (
5
+ AppData,
6
+ BackupData,
7
+ FileInfo,
8
+ LogsData,
9
+ PlanData,
10
+ StatisticsData,
11
+ StatusData,
12
+ UploadData,
13
+ UserData,
14
+ )
15
+ from .file import File
16
+ from .http.endpoints import Endpoint