rclone-bin-api 1.0.5__tar.gz → 1.0.6__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.
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/PKG-INFO +2 -2
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/README.md +1 -1
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/pyproject.toml +4 -4
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/setup.py +1 -1
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_api/api.py +4 -4
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_bin_api.egg-info/PKG-INFO +2 -2
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/setup.cfg +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/examples/__init__.py +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/examples/about.py +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_api/__init__.py +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_api/dto.py +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_api/exceptions.py +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_bin_api.egg-info/SOURCES.txt +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_bin_api.egg-info/dependency_links.txt +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_bin_api.egg-info/top_level.txt +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/tests/test_exceptions.py +0 -0
- {rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/tests/test_rclone.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rclone-bin-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: Rclone API for Python including the Rclone binaries.
|
|
5
5
|
Author-email: Michael G <me@mgineer85.de>
|
|
6
6
|
Maintainer-email: Michael G <me@mgineer85.de>
|
|
@@ -41,7 +41,7 @@ from rclone_api.api import RcloneApi
|
|
|
41
41
|
api = RcloneApi()
|
|
42
42
|
api.start()
|
|
43
43
|
|
|
44
|
-
print(api.version())
|
|
44
|
+
print(api.version()) # CoreVersion(version='v1.72.1')
|
|
45
45
|
|
|
46
46
|
api.stop()
|
|
47
47
|
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[project]
|
|
3
3
|
name = "rclone-bin-api"
|
|
4
4
|
description = "Rclone API for Python including the Rclone binaries."
|
|
5
|
-
version = "1.0.
|
|
5
|
+
version = "1.0.6"
|
|
6
6
|
authors = [{ name = "Michael G", email = "me@mgineer85.de" }]
|
|
7
7
|
maintainers = [{ name = "Michael G", email = "me@mgineer85.de" }]
|
|
8
8
|
requires-python = ">=3.11"
|
|
@@ -30,7 +30,7 @@ dev = [
|
|
|
30
30
|
"pytest",
|
|
31
31
|
"pytest-cov",
|
|
32
32
|
"coverage[toml]",
|
|
33
|
-
"
|
|
33
|
+
"basedpyright",
|
|
34
34
|
"poethepoet",
|
|
35
35
|
"setuptools",
|
|
36
36
|
"wheel",
|
|
@@ -42,7 +42,7 @@ dev = [
|
|
|
42
42
|
# uv does not yet support [tool.pdm.scripts], so we skip this for now... https://github.com/astral-sh/uv/issues/5903
|
|
43
43
|
[tool.poe.tasks]
|
|
44
44
|
lint = [
|
|
45
|
-
{ cmd = "uv run
|
|
45
|
+
{ cmd = "uv run basedpyright" },
|
|
46
46
|
{ cmd = "uv run ruff check" },
|
|
47
47
|
{ cmd = "uv run ruff format --check" },
|
|
48
48
|
]
|
|
@@ -61,7 +61,7 @@ build = [
|
|
|
61
61
|
]
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
[tool.
|
|
64
|
+
[tool.basedpyright]
|
|
65
65
|
venvPath = "."
|
|
66
66
|
venv = ".venv"
|
|
67
67
|
ignore = ["./experimental/", "./vendor/"]
|
|
@@ -11,7 +11,7 @@ from setuptools import setup
|
|
|
11
11
|
from setuptools.command.build_py import build_py
|
|
12
12
|
from wheel.bdist_wheel import bdist_wheel
|
|
13
13
|
|
|
14
|
-
rclone_version = os.environ.get("RCLONE_VERSION", "1.
|
|
14
|
+
rclone_version = os.environ.get("RCLONE_VERSION", "1.75.0")
|
|
15
15
|
rclone_build_platform = os.environ.get("RCLONE_BUILD_PLATFORM", None)
|
|
16
16
|
|
|
17
17
|
PLATFORMS = {
|
|
@@ -161,12 +161,12 @@ class RcloneApi:
|
|
|
161
161
|
|
|
162
162
|
try:
|
|
163
163
|
with urllib.request.urlopen(req, timeout=TIMEOUT) as resp:
|
|
164
|
-
|
|
165
|
-
response_json = json.loads(
|
|
164
|
+
raw_resp: bytes = resp.read()
|
|
165
|
+
response_json = json.loads(raw_resp.decode("utf-8"))
|
|
166
166
|
|
|
167
167
|
except urllib.error.HTTPError as exc: # non 200 HTTP codes
|
|
168
|
-
|
|
169
|
-
response_json = json.loads(
|
|
168
|
+
raw_exc: bytes = exc.read()
|
|
169
|
+
response_json = json.loads(raw_exc.decode("utf-8"))
|
|
170
170
|
raise RcloneProcessException.from_dict(response_json) from exc
|
|
171
171
|
except TimeoutError as exc:
|
|
172
172
|
raise RcloneConnectionException(f"Operation timed out after {TIMEOUT}s. To copy large files consider using _async methods.") from exc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rclone-bin-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: Rclone API for Python including the Rclone binaries.
|
|
5
5
|
Author-email: Michael G <me@mgineer85.de>
|
|
6
6
|
Maintainer-email: Michael G <me@mgineer85.de>
|
|
@@ -41,7 +41,7 @@ from rclone_api.api import RcloneApi
|
|
|
41
41
|
api = RcloneApi()
|
|
42
42
|
api.start()
|
|
43
43
|
|
|
44
|
-
print(api.version())
|
|
44
|
+
print(api.version()) # CoreVersion(version='v1.72.1')
|
|
45
45
|
|
|
46
46
|
api.stop()
|
|
47
47
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rclone_bin_api-1.0.5 → rclone_bin_api-1.0.6}/src/rclone_bin_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|