rclone-api 1.0.0__tar.gz → 1.0.1__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 (29) hide show
  1. rclone_api-1.0.1/.gitignore +141 -0
  2. rclone_api-1.0.1/.pylintrc +2 -0
  3. rclone_api-1.0.1/.vscode/launch.json +44 -0
  4. rclone_api-1.0.1/.vscode/settings.json +29 -0
  5. rclone_api-1.0.1/.vscode/tasks.json +41 -0
  6. {rclone_api-1.0.0/src/rclone_api.egg-info → rclone_api-1.0.1}/PKG-INFO +1 -1
  7. rclone_api-1.0.1/clean +21 -0
  8. rclone_api-1.0.1/install +37 -0
  9. rclone_api-1.0.1/lint +15 -0
  10. {rclone_api-1.0.0 → rclone_api-1.0.1}/pyproject.toml +1 -1
  11. rclone_api-1.0.1/src/rclone_api/__init__.py +3 -0
  12. {rclone_api-1.0.0 → rclone_api-1.0.1/src/rclone_api.egg-info}/PKG-INFO +1 -1
  13. {rclone_api-1.0.0 → rclone_api-1.0.1}/src/rclone_api.egg-info/SOURCES.txt +11 -0
  14. rclone_api-1.0.1/test +5 -0
  15. rclone_api-1.0.1/tox.ini +24 -0
  16. rclone_api-1.0.1/upload_package.sh +10 -0
  17. rclone_api-1.0.0/src/rclone_api/__init__.py +0 -0
  18. {rclone_api-1.0.0 → rclone_api-1.0.1}/LICENSE +0 -0
  19. {rclone_api-1.0.0 → rclone_api-1.0.1}/MANIFEST.in +0 -0
  20. {rclone_api-1.0.0 → rclone_api-1.0.1}/README.md +0 -0
  21. {rclone_api-1.0.0 → rclone_api-1.0.1}/requirements.testing.txt +0 -0
  22. {rclone_api-1.0.0 → rclone_api-1.0.1}/setup.cfg +0 -0
  23. {rclone_api-1.0.0 → rclone_api-1.0.1}/setup.py +0 -0
  24. {rclone_api-1.0.0 → rclone_api-1.0.1}/src/rclone_api/assets/example.txt +0 -0
  25. {rclone_api-1.0.0 → rclone_api-1.0.1}/src/rclone_api/cli.py +0 -0
  26. {rclone_api-1.0.0 → rclone_api-1.0.1}/src/rclone_api/rclone.py +0 -0
  27. {rclone_api-1.0.0 → rclone_api-1.0.1}/src/rclone_api.egg-info/dependency_links.txt +0 -0
  28. {rclone_api-1.0.0 → rclone_api-1.0.1}/src/rclone_api.egg-info/top_level.txt +0 -0
  29. {rclone_api-1.0.0 → rclone_api-1.0.1}/tests/test_simple.py +0 -0
@@ -0,0 +1,141 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.pyc
6
+
7
+ # Generated commands
8
+ /zcmds/bin/
9
+
10
+ # C extensions
11
+ *.so
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ prod_env/
16
+ data/
17
+ build/
18
+ develop-eggs/
19
+ dist/
20
+ downloads/
21
+ eggs/
22
+ .eggs/
23
+ lib/
24
+ lib64/
25
+ parts/
26
+ sdist/
27
+ var/
28
+ wheels/
29
+ pip-wheel-metadata/
30
+ share/python-wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+
36
+ # PyInstaller
37
+ # Usually these files are written by a python script from a template
38
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
39
+ *.manifest
40
+ *.spec
41
+
42
+ # Installer logs
43
+ pip-log.txt
44
+ pip-delete-this-directory.txt
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov/
48
+ .tox/
49
+ .nox/
50
+ .coverage
51
+ .coverage.*
52
+ .cache
53
+ nosetests.xml
54
+ coverage.xml
55
+ *.cover
56
+ *.py,cover
57
+ .hypothesis/
58
+ .pytest_cache/
59
+
60
+ # Translations
61
+ *.mo
62
+ *.pot
63
+
64
+ # Django stuff:
65
+ *.log
66
+ local_settings.py
67
+ db.sqlite3
68
+ db.sqlite3-journal
69
+
70
+ # Flask stuff:
71
+ instance/
72
+ .webassets-cache
73
+
74
+ # Scrapy stuff:
75
+ .scrapy
76
+
77
+ # Sphinx documentation
78
+ docs/_build/
79
+
80
+ # PyBuilder
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # IPython
87
+ profile_default/
88
+ ipython_config.py
89
+
90
+ # pyenv
91
+ .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
101
+ __pypackages__/
102
+
103
+ # Celery stuff
104
+ celerybeat-schedule
105
+ celerybeat.pid
106
+
107
+ # SageMath parsed files
108
+ *.sage.py
109
+
110
+ # Environments
111
+ .env
112
+ .venv
113
+ env/
114
+ venv/
115
+ ENV/
116
+ env.bak/
117
+ venv.bak/
118
+
119
+ # Spyder project settings
120
+ .spyderproject
121
+ .spyproject
122
+
123
+ # Rope project settings
124
+ .ropeproject
125
+
126
+ # mkdocs documentation
127
+ /site
128
+
129
+ # mypy
130
+ .mypy_cache/
131
+ .dmypy.json
132
+ dmypy.json
133
+
134
+ # Pyre type checker
135
+ .pyre/
136
+ .activate.sh
137
+ activate
138
+
139
+ # Generated by mac
140
+ **/.DS_Store
141
+ uv.lock
@@ -0,0 +1,2 @@
1
+ [MESSAGES CONTROL]
2
+ disable=missing-module-docstring,missing-class-docstring,missing-function-docstring,line-too-long,raise-missing-from,too-few-public-methods,too-many-return-statements,fixme,too-many-locals,too-many-branches,too-many-statements,too-many-arguments,too-many-instance-attributes,too-many-ancestors,too-many-lines,too-many-public-methods,too-many-boolean-expressions,too-many-locals,too-many-branches,too-many-statements,too-many-arguments,too-many-instance-attributes,too-many-ancestors,too-many-lines,too-many-public-methods,too-many-boolean-expressions,R0801
@@ -0,0 +1,44 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Python: Current File (Integrated Terminal)",
9
+ "type": "python",
10
+ "request": "launch",
11
+ "subProcess": true,
12
+ "program": "${file}",
13
+ "console": "integratedTerminal",
14
+ "justMyCode": false
15
+ },
16
+ {
17
+ "name": "Python: Remote Attach",
18
+ "type": "python",
19
+ "request": "attach",
20
+ "port": 5678,
21
+ "host": "localhost",
22
+ "pathMappings": [
23
+ {
24
+ "localRoot": "${workspaceFolder}",
25
+ "remoteRoot": "."
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "name": "Python: Module",
31
+ "type": "python",
32
+ "request": "launch",
33
+ "module": "enter-your-module-name-here",
34
+ "console": "integratedTerminal"
35
+ },
36
+ {
37
+ "name": "Python: Current File (External Terminal)",
38
+ "type": "python",
39
+ "request": "launch",
40
+ "program": "${file}",
41
+ "console": "externalTerminal"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "python.autoComplete.extraPaths": [
3
+ "."
4
+ ],
5
+ "python.linting.pylintEnabled": true,
6
+ "python.linting.enabled": true,
7
+ "terminal.integrated.defaultProfile.windows": "Git Bash",
8
+ "terminal.integrated.profiles.windows": {
9
+ "Git Bash": {
10
+ "path": "C:\\Program Files\\Git\\bin\\bash.exe",
11
+ "args": ["--cd=."]
12
+ }
13
+ },
14
+ // adds activate virtualenv to terminal
15
+ "terminal.integrated.env.windows": {
16
+ "VIRTUAL_ENV": "${workspaceFolder}/venv"
17
+ },
18
+ "files.eol": "\n", // Unix
19
+ "editor.tabSize": 4,
20
+ "editor.insertSpaces": true,
21
+ "editor.detectIndentation": false,
22
+ "editor.formatOnSave": false,
23
+ "python.formatting.provider": "black",
24
+ "python.formatting.blackArgs": [
25
+ ],
26
+ "python.analysis.extraPaths": [
27
+ "."
28
+ ]
29
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
3
+ // for the documentation about the tasks.json format
4
+ "version": "2.0.0",
5
+ "tasks": [
6
+ {
7
+ "label": "Lint",
8
+ "type": "shell",
9
+ "command": ". ./activate.sh && ./lint.sh",
10
+ "group": "build",
11
+ "options": {
12
+ "cwd": "${workspaceRoot}"
13
+ },
14
+ "presentation": {
15
+ "echo": true,
16
+ "reveal": "always",
17
+ "focus": true,
18
+ "panel": "shared",
19
+ "clear": true
20
+ },
21
+ "problemMatcher": []
22
+ },
23
+ {
24
+ "label": "Tox",
25
+ "type": "shell",
26
+ "command": "tox",
27
+ "group": "build",
28
+ "options": {
29
+ "cwd": "${workspaceRoot}"
30
+ },
31
+ "presentation": {
32
+ "echo": true,
33
+ "reveal": "always",
34
+ "focus": true,
35
+ "panel": "shared",
36
+ "clear": true
37
+ },
38
+ "problemMatcher": []
39
+ },
40
+ ]
41
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  Maintainer: Zachary Vorhies
rclone_api-1.0.1/clean ADDED
@@ -0,0 +1,21 @@
1
+ #!/bin/bash
2
+ set -x
3
+
4
+ rm -rf build
5
+ rm -rf dist
6
+ rm -rf venv
7
+ rm -rf .venv
8
+
9
+ rm -rf *.egg-info
10
+ rm -rf .eggs
11
+ rm -rf .tox
12
+ rm -rf .cache
13
+ rm -rf .pytest_cache
14
+ rm -rf .mypy_cache
15
+ rm -rf .coverage
16
+
17
+ # remove all *.pyc files
18
+ find . -name "*.pyc" -exec rm -rf {} \;
19
+ # remove all *.egg files
20
+ find . -name "*.egg" -exec rm -rf {} \;
21
+
@@ -0,0 +1,37 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Check if UV is not found
5
+ if ! command -v uv &> /dev/null; then
6
+ # If Darwin (macOS), use brew to install UV
7
+ if [[ "$OSTYPE" == "darwin"* ]]; then
8
+ brew install uv
9
+ else
10
+ # If it's Windows, use pip to install UV, else use pip3
11
+ if [[ "$OSTYPE" == "msys" ]]; then
12
+ pip install uv
13
+ else
14
+ pip3 install uv
15
+ fi
16
+ fi
17
+ fi
18
+
19
+ uv venv --python 3.11 --seed
20
+ uv run pip install -e .
21
+
22
+ # If requirements.testing.txt exists, then install it
23
+ if [[ -f requirements.testing.txt ]]; then
24
+ uv run pip install -r requirements.testing.txt
25
+ fi
26
+
27
+ # If activate exists, delete it
28
+ if [[ -f activate ]]; then
29
+ rm activate
30
+ fi
31
+
32
+ # If Windows, then symlink .venv/Scripts/activate to .venv/bin/activate
33
+ if [[ "$OSTYPE" == "msys" ]]; then
34
+ ln -s .venv/Scripts/activate ./activate
35
+ else
36
+ ln -s .venv/bin/activate ./activate
37
+ fi
rclone_api-1.0.1/lint ADDED
@@ -0,0 +1,15 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ echo Running ruff src
5
+ uv run ruff check --fix src
6
+ echo Running ruff tests
7
+ uv run ruff check --fix tests
8
+ echo Running black src tests
9
+ uv run black src tests
10
+ echo Running isort src tests
11
+ uv run isort --profile black src tests
12
+ echo Running mypy src
13
+ uv run mypy src tests
14
+ echo Linting complete!
15
+ exit 0
@@ -14,7 +14,7 @@ dependencies = [
14
14
 
15
15
  ]
16
16
  # Change this with the version number bump.
17
- version = "1.0.0"
17
+ version = "1.0.1"
18
18
 
19
19
  [tool.setuptools]
20
20
  package-dir = {"" = "src"}
@@ -0,0 +1,3 @@
1
+ from .rclone import Rclone, RcloneConfig, RemoteFile
2
+
3
+ __all__ = ["Rclone", "RemoteFile", "RcloneConfig"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  Maintainer: Zachary Vorhies
@@ -1,9 +1,20 @@
1
+ .gitignore
2
+ .pylintrc
1
3
  LICENSE
2
4
  MANIFEST.in
3
5
  README.md
6
+ clean
7
+ install
8
+ lint
4
9
  pyproject.toml
5
10
  requirements.testing.txt
6
11
  setup.py
12
+ test
13
+ tox.ini
14
+ upload_package.sh
15
+ .vscode/launch.json
16
+ .vscode/settings.json
17
+ .vscode/tasks.json
7
18
  src/rclone_api/__init__.py
8
19
  src/rclone_api/cli.py
9
20
  src/rclone_api/rclone.py
rclone_api-1.0.1/test ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+ echo "Running unittests"
5
+ uv run pytest -n auto tests -v
@@ -0,0 +1,24 @@
1
+ # content of: tox.ini , put in same dir as setup.py
2
+ [tox]
3
+ envlist = py310
4
+
5
+ [gh-actions]
6
+ python =
7
+ 3.10: py310
8
+
9
+ [flake8]
10
+ per-file-ignores = __init__.py:F401
11
+ ignore = E501, E203, W503
12
+
13
+ [testenv]
14
+ # install pytest in the virtualenv where commands will be executed
15
+ deps =
16
+ -r{toxinidir}/requirements.testing.txt
17
+ commands =
18
+ # NOTE: you can run any command line tool here - not just tests
19
+ ruff src
20
+ ruff tests
21
+ flake8 src tests
22
+ pylint src tests
23
+ mypy src tests
24
+ pytest tests -n auto -vv
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+ set -e
3
+ rm -rf build dist
4
+ . ./activate
5
+ pip install wheel twine
6
+ echo "Building Source and Wheel (universal) distribution…"
7
+ python setup.py sdist bdist_wheel --universal
8
+ echo "Uploading the package to PyPI via Twine…"
9
+ twine upload dist/* --verbose
10
+ # echo Pushing git tags…
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes