Skip to main content

Dalec plugin to retrieve nextcloud data

Project description

☁ dalec-nextcloud

Stable Version Code style: black Imports: isort semver

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 channel is "files", retrieve only for this file or directory.
  • If channel is "files_and_childs", retrieve recursively from this folder and child.
  • If channel is None, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dalec-nextcloud-0.1.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

dalec_nextcloud-0.1.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page