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…

It provides a simple api and a view that returns a json response containing:

  • database:
    • ip

    • engine

    • version

  • environment:
    • installed modules and version

  • project:
    • MEDIA_ROOT/STATIC_ROOT path and available disk space

    • django installed apps

    • process path

    • temp dir path

  • os:
    • name

  • python:
    • version

    • executable path

  • host:
    • cpu(s) number

    • free/total memory

    • NIC list and relative IP addresses

a command line utility django-sysinfo can be used to remotely retrieve infos.

Documentation

The full documentation is at https://django-sysinfo.readthedocs.org.

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')
)

History

0.1.0 (2016-01-15)

  • First release on PyPI.

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-0.1.tar.gz (16.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-sysinfo-0.1.tar.gz
Algorithm Hash digest
SHA256 dd7c1faac34cfdd86e43707d29ad93cd322e1f39d8ea683384d4c37c85fd7155
MD5 8fc86b942ab03850f4e63229a0286f6e
BLAKE2b-256 68a035ead3ed121474b02484e884c359d43460b56f48f2ff74366e0ec58514d9

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