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 | |
Black | code formatting | |
Mypy | static type checking | |
Pylint | static code analysis | |
Pytest | unit testing |
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
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
Built Distribution
Hashes for django-hostutils-0.0.dev3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08f09157d0772bf85510b76a818d1c9f9ce1421fd17ee08ca09fbc1a2af47e54 |
|
MD5 | 2f1cf5c1864154b5bd7f98c1616dc563 |
|
BLAKE2b-256 | b821220c53f91f40a9994f776fcb48ba454d5e247ac827338fc30b8d738d49aa |
Hashes for django_hostutils-0.0.dev3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7548d7853845b8e1a8f1bb1649217585102ae81a1e45f7322aa0a7079cf50d81 |
|
MD5 | 42830dbdecdec21add099fdb278b23da |
|
BLAKE2b-256 | 1e57b7deeea780a628c92b8c42e0a1fa31d6bf1af0255790e713a29ab395145f |