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.
Change Log
- v1.0.0 : Initial Release
- v1.1.0 : Added basic error handling for api errors
- v1.2.0 : Allow ssl verification bypass
- v1.2.1 : Privide more detailed feedback for api connection errors
- v1.3.0 : Add more specific exceptions (Thanks @mib1185)
- v1.4.0 : Fix #4 key error (Thanks @mib1185)
- v1.5.0 : Support 'skip' parameter (Thanks @mib1185)
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
nextcloudmonitor-1.5.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for nextcloudmonitor-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed7dba0769621b5cbcfffb4a6b745b6de3f663de13c13386c4ac9a9fdf752913 |
|
MD5 | 4a03a72c68517b8c8fbf0a966115bc8e |
|
BLAKE2b-256 | 76381ea7ae579c290eb8c3e68dbe4c023477425a324966daee660f658fc69500 |