django-hostutils
Django hostutils is a collection of utilities to provide information and metrics for hosts running a Django project. Data is available via included Bootstrap 5 templates and custom views/templates can also be used. 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
Code Quality
Code Coverage:
Dashboard: https://coveralls.io/github/djangoaddicts/django-hostutils
Documentation
Full documentation can be found on: https://django-hostutils.readthedocs.io/en/latest/index.html
Documentation source files are available in the docs folder.
Installation
-
install via pip:
pip install django-hostutils -
add the following to your INSTALLED_APPS in settings.py:
djangoaddicts.hostutils
-
add the following to your project-level urls.py:
path("hostutils/", include("djangoaddicts.hostutils.urls"), ),
Usage
Included Views
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' %}
Individual pages can also be 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' %}
Custom Views
Custom views/templates can be used to override the Bootstrap 5 templates provided by default for GUI views. In your views, import the desired views(s) from hostutils and create a class that inherits the desired hostutils view.
-
Here is an example of creating a custom view using ShowHost:
from djangoaddicts.hostutils.views import ShowHost class MyCustomShowHostView(ShowHost): template_name = "my_custom_template.html" title = "My Custom Title"
License
django-hostutils is licensed under the GNU-3 license (see the LICENSE file for details).
https://github.com/djangoaddicts/django-hostutils/blob/docs/LICENSE
Contributing
To contribute to django-hostutils, please see Contributing
Metadata
Release files for django-hostutils 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-hostutils-0.0.13.tar.gz | 53.5 kB | Without provenance | Details for django-hostutils-0.0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_hostutils-0.0.13-py3-none-any.whl | Python 3 | none | any | Details for django_hostutils-0.0.13-py3-none-any.whl |
Total release size: 102.6 kB
Release files / django-hostutils-0.0.13.tar.gz
| Download URL | django-hostutils-0.0.13.tar.gz |
|---|---|
| Size | 53.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
244ca6ca8c8f71b79e52cda909b32068a2218c5e6cccd83965e02fd574a0698d
|
|
BLAKE2b-256 checksum How to use checksums |
03ef141b250cd44fd4c30cbe4ca9817cc1b8943da2f052ef04832ee4764a33fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / django_hostutils-0.0.13-py3-none-any.whl
| Download URL | django_hostutils-0.0.13-py3-none-any.whl |
|---|---|
| Size | 49.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a2ef4abb8f5793ce5a300cb05d5d68c1ddae5578fa0577b212f0e84326b703e
|
|
BLAKE2b-256 checksum How to use checksums |
5fe32ee24e2e074ffad62bf572a4c016e29ae441b77400cf0c12dceaea11cfdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for django-hostutils 0.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.