Dalec plugin to retrieve nextcloud data
Project description
☁ dalec-nextcloud
Django Aggregate a Lot of External Content -- Nextcloud
Aggregate last nextcloud files activity from a given nextcloud instance.
Plugin of 🤖 dalec.
Installation
pip install dalec_nextcloud
In django settings INSTALLED_APPS, add:
INSTALLED_APPS = [
...
"dalec",
"dalec_prime",
"dalec_nextcloud",
...
]
Usage
General usage:
{% load dalec %}
{% dalec "nextcloud" content_type [channel=None] [channel_object=None] [template=None] %}
Real examples:
Activity
Retrieves latest activities.
- If
channelis"files", retrieve only for this file or directory. - If
channelis"files_and_childs", retrieve recursively from this folder and child. - If
channelisNone, retrieve all activities.
channel_object is the nextcloud file_id.
{% dalec "nexctloud" "activity" %}
{% dalec "nexctloud" "activity" channel="files" channel_object="55145"%}
{% dalec "nexctloud" "activity" channel="files_and_childs" channel_object="55145"%}
Settings
Django settings must define:
DALEC_NEXTCLOUD_BASE_URL: nextcloud instance url (ex:https://nextcloud.org/)DALEC_NEXTCLOUD_API_USERNAME: nextcloud username (ex:admin)DALEC_NEXTCLOUD_API_PASSWORD: nextcloud user password (ex:azeazeaezdfqsmlkrjzr)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dalec-nextcloud-0.1.1.tar.gz.
File metadata
- Download URL: dalec-nextcloud-0.1.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dfd801faf054f456c4223c4d7f766b69429d1c09cea4b581c74e8136cc45a29
|
|
| MD5 |
9a09d86e8bb08e863885ad7088ea9d5b
|
|
| BLAKE2b-256 |
455d41344d08f72658c8717d30130d638bd4037b6c4011e88ab3478294ddb3e3
|
File details
Details for the file dalec_nextcloud-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dalec_nextcloud-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf976b7db990230d40f2ad8e3b974e49df762c8c6cfc2d01a526f8274b1d24f
|
|
| MD5 |
9d8f86df22deee639716f64541e20928
|
|
| BLAKE2b-256 |
685a5ba4f1aa6963fbd07a7df48e7eca4d1660f90a6731ba5792f0e545d50bf3
|