Skip to main content

Simple django app to expose system infos: libraries version, databae server infos...

Project description

https://badge.fury.io/py/django-sysinfo.png https://travis-ci.org/saxix/django-sysinfo.png?branch=master

Simple django app to expose system infos like libraries version, database server.

Easy to extend to add custom checks.

Features

  • dump system informations

  • admin integration

  • API to add custom checks

  • simple echo

  • retrieve library version

Quickstart

Install django-sysinfo:

pip install django-sysinfo

put it in your INSTALLED_APPS:

INSTALLED_APPS=[...
 'django_sysinfo'
]

add relevant entries in your url.conf:

urlpatterns = (
    ....
    url(r'', include(django_sysinfo.urls)),
)

or customize them:

from django_sysinfo.views import http_basic_login, sysinfo

urlpatterns = (
    url('sys/info/$', http_basic_login(sysinfo), name='sys-info'),
    url('sys/version/(?P<name>.*)/$', version, name='sys-version')
)

Known issues and limitations

There are some limitations in the metrics returned by sysinfo, anyway this package is not intended to be used as host/resources monitoring tool.

  • Disk space returns device info, any soft limits are ignored

  • Memory can be wrong in some virtual environments

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

django-sysinfo-2.5.0.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file django-sysinfo-2.5.0.tar.gz.

File metadata

  • Download URL: django-sysinfo-2.5.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 importlib_metadata/4.3.0 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.8

File hashes

Hashes for django-sysinfo-2.5.0.tar.gz
Algorithm Hash digest
SHA256 882fe8e0227c5f2505f3f3e2bd0d43cee7b89745b79d146005502fb77f79c983
MD5 88e69244232a2ba59f9bac22da9485fa
BLAKE2b-256 2531a918bdcb8fc4c3aa53fe4e2e20e935f267c4000a11b79a1a34bf2ddff8fb

See more details on using hashes here.

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