Skip to main content

Python wrapper around nextcloud monitor api

Project description

NextcloudMonitor

Python wrapper around Nextcloud monitor api

Installation

pip install nextcloudmonitor

QuickStart

>>> from nextcloudmonitor import NextcloudMonitor
>>> ncm = NextcloudMonitor("https://your_nextcloud_url", "nextcloud_admin_username", "nextcloud_app_password")
>>> ncm.data['nextcloud']['system']['version']
'16.0.5.1'
>>> ncm.data['activeUsers']['last24hours']
1

Notes:

  • The user must be a user that has access to the nextcloud monitor api (generally an admin user)
  • The nextcloud app password should be generated from the nextcoud security settings page.

Project details


Download files

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

Files for nextcloudmonitor, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size nextcloudmonitor-0.0.3-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size nextcloudmonitor-0.0.3.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page