Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Add remote filesystem API to the Remote client plugin #23381

Open
wants to merge 43 commits into
base: master
Choose a base branch
from

Conversation

hlouzada
Copy link
Contributor

@hlouzada hlouzada commented Dec 30, 2024

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)

Use a mixture of rest/websocket to comunicate with spyder-remote-services and provide a filesystem-like API to control remote file system.

This implements the client-side for spyder-ide/spyder-remote-services#11

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @hlouzada

subrepo:
  subdir:   "external-deps/spyder-kernels"
  merged:   "d7e4319b5"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-kernels.git"
  branch:   "master"
  commit:   "d7e4319b5"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
@pep8speaks
Copy link

pep8speaks commented Dec 30, 2024

Hello @hlouzada! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 115:80: E501 line too long (80 > 79 characters)

Line 2:80: E501 line too long (85 > 79 characters)

Line 28:80: E501 line too long (83 > 79 characters)
Line 36:80: E501 line too long (103 > 79 characters)
Line 394:80: E501 line too long (91 > 79 characters)
Line 427:65: E252 missing whitespace around parameter equals
Line 427:66: E252 missing whitespace around parameter equals

Line 49:80: E501 line too long (100 > 79 characters)
Line 70:80: E501 line too long (86 > 79 characters)
Line 134:80: E501 line too long (88 > 79 characters)
Line 136:80: E501 line too long (86 > 79 characters)
Line 152:80: E501 line too long (81 > 79 characters)

Line 77:17: E231 missing whitespace after ','

Line 65:1: W293 blank line contains whitespace
Line 91:80: E501 line too long (82 > 79 characters)
Line 332:1: W293 blank line contains whitespace

Line 51:80: E501 line too long (85 > 79 characters)

Line 102:80: E501 line too long (85 > 79 characters)
Line 154:1: E305 expected 2 blank lines after class or function definition, found 1

Line 179:80: E501 line too long (80 > 79 characters)

Comment last updated at 2025-01-25 03:08:32 UTC

@hlouzada hlouzada changed the title Add remote-files capability to remote-client plugin [WIP] PR: Add remote-files capability to remote-client plugin Dec 30, 2024
@hlouzada hlouzada marked this pull request as ready for review January 18, 2025 13:58
@hlouzada hlouzada changed the title [WIP] PR: Add remote-files capability to remote-client plugin PR: Add remote-files capability to remote-client plugin Jan 18, 2025
…xternal-deps/spyder-remote-services

subrepo:
  subdir:   "external-deps/spyder-remote-services"
  merged:   "e2f920d11"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-remote-services"
  branch:   "feat/remote-file-service"
  commit:   "e2f920d11"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
…xternal-deps/spyder-remote-services

subrepo:
  subdir:   "external-deps/spyder-remote-services"
  merged:   "83bfb48fd"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-remote-services"
  branch:   "feat/remote-file-service"
  commit:   "83bfb48fd"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
…xternal-deps/spyder-remote-services

subrepo:
  subdir:   "external-deps/spyder-remote-services"
  merged:   "b77bdbfb2"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-remote-services"
  branch:   "feat/remote-file-service"
  commit:   "b77bdbfb2"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
@ccordoba12 ccordoba12 added this to the v6.1.0 milestone Jan 22, 2025
@ccordoba12 ccordoba12 changed the title PR: Add remote-files capability to remote-client plugin PR: Add remote filesystem API to the Remote client plugin Jan 22, 2025
@hlouzada hlouzada force-pushed the add-remoteclient-file-service branch from 91ae29a to ab22af6 Compare January 23, 2025 13:40
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hlouzada for your hard work to implement this functionality!

spyder/api/asyncdispatcher.py Show resolved Hide resolved
spyder/api/utils.py Outdated Show resolved Hide resolved
spyder/plugins/remoteclient/api/__init__.py Outdated Show resolved Hide resolved
spyder/plugins/remoteclient/api/__init__.py Outdated Show resolved Hide resolved
spyder/plugins/remoteclient/api/__init__.py Outdated Show resolved Hide resolved
spyder/plugins/remoteclient/tests/test_files.py Outdated Show resolved Hide resolved
spyder/plugins/remoteclient/utils/installation.py Outdated Show resolved Hide resolved
spyder/plugins/remoteclient/widgets/connectiondialog.py Outdated Show resolved Hide resolved
spyder/plugins/remoteclient/widgets/connectionstatus.py Outdated Show resolved Hide resolved
hlouzada and others added 13 commits January 25, 2025 00:05
…xternal-deps/spyder-remote-services

subrepo:
  subdir:   "external-deps/spyder-remote-services"
  merged:   "4599cda25"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-remote-services"
  branch:   "feat/remote-file-service"
  commit:   "4599cda25"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
…xternal-deps/spyder-remote-services

subrepo:
  subdir:   "external-deps/spyder-remote-services"
  merged:   "bb7624869"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-remote-services"
  branch:   "feat/remote-file-service"
  commit:   "bb7624869"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
…/spyder-remote-services

subrepo:
  subdir:   "external-deps/spyder-remote-services"
  merged:   "2b8dcf2aa"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-remote-services"
  branch:   "main"
  commit:   "2b8dcf2aa"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
@hlouzada hlouzada force-pushed the add-remoteclient-file-service branch from 8412b05 to 717be57 Compare January 25, 2025 03:08
@hlouzada hlouzada requested a review from ccordoba12 January 25, 2025 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants