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 | |
Pylint | static code analysis |
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.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f53e0267de1b377a4fae4bd16b6c6c25303681426aa9782b033727cdc181b29 |
|
MD5 | ba127cd3614f27f8780cbae3a0515077 |
|
BLAKE2b-256 | eee5e085a7201a3570f5705d5ab5946fb7564b6e62ac95818d61d988e136b517 |
Hashes for django_hostutils-0.0.0.dev1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06fa778d3a62bb4ea233b6e07cdff136b656a9ad28f69c6018159746b3a4006b |
|
MD5 | 7eb0b2f985cac94c8239027ca9a427d7 |
|
BLAKE2b-256 | 26c016d219be7b6ec0b604cd02d959da6e64df68004c570dc6f0ca2336b7fd9c |