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

OwnCloudDriver: Support for ownCloud & Nextcloud #86

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

scy
Copy link

@scy scy commented Mar 4, 2022

This is using pyocclient to implement a driver for ownCloud & Nextcloud.

As both of these systems rather use file/directory semantics instead of container/blob ones, the driver behaves somewhat similar to LocalDriver: A container can be any (sub)directory (including "" for the top-level directory), a blob is a file. Uploading blobs with slashes in their name will cause the respective parent directories to be created. Also, some features (e.g. ACLs and CDN URLs) are not supported.

Multiple ways of access are supported:

  • “Normal” login: endpoint="https://cloud.example.com/", user="AzureDiamond", password="hunter2"
  • “Share link” folder: endpoint="https://cloud.example.com/s/XAPaqtjYbg5cJca", user=None (or user=""), optionally password="hunter2" if the share is using a password, else password=None

The code is basically working, but not yet complete. Open tasks:

  • add tests
  • improve error handling & robustness
  • add docstrings
  • add documentation

If you have any comments, suggestions or criticism, let me know :)

scy and others added 6 commits March 1, 2022 19:08
More recent versions of pip (or setuptools?) will refuse to accept
these, leading to the error message:

    'extras_require' must be a dictionary whose values are strings or
    lists of strings containing valid project/version requirement
    specifiers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant