Skip to main content

host utilities for django projects

Project description

django-hostutils

Host utilities package for django projects. Bootstrap 5 templates are provided. Host metric data includes:

  • Host OS, release, uptime
  • CPU count and utilization
  • Memory usage
  • Disk partations and utilization
  • Processes running, idle, sleeping
  • Network interfaces and connections

Author David Slusser
Description Host utilities package for django projects.
Requirements Python 3.x +
Django 3.2.x +

Code Quality Checks

Workflow Description Status
Bandit security checks Bandit
Black code formatting Black
Mypy static type checking Mypy
Pylint static code analysis Pylint
Pytest unit testing Pytest

License

django-userextensions is licensed under the GNU-3 license (see the LICENSE file for details).


Installation

  • pip install django-hostutils

  • add the following to your INSTALLED_APPS

    djangoaddicts.hostutils
    
  • add the following to your project-level urls.py:

    path("hostutils/", include("djangoaddicts.hostutils.urls"), ),
    

Usage

Several pages are available. If you have a Bootstrap 5 nav-menu you can add the following snippet in your navbar where appropriate:

```
{% include 'hostutils/bs5/snippets/hostutils_nav_menu.htm' %}
```

Alternatively, individual pages can linked directly:

  • Host overview page:

    {% url 'hostutils:host_details' %}
    
  • CPU stats page:

    {% url 'hostutils:host_cpu' %}
    
  • Disk stats page:

    {% url 'hostutils:host_disk' %}
    
  • Memory stats page:

    {% url 'hostutils:host_memory' %}
    
  • Network stats page:

    {% url 'hostutils:host_network' %}
    
  • Process stats page:

    {% url 'hostutils:host_process' %}
    

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-hostutils-0.0.dev3.tar.gz (1.4 MB view hashes)

Uploaded Source

Built Distribution

django_hostutils-0.0.dev3-py2.py3-none-any.whl (38.3 kB view hashes)

Uploaded Python 2 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