Skip to content

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.

1 participant