django-hostutils-0.0.dev3
توضیحات
host utilities for django projects
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-hostutils-0.0.dev3 |
| نام | django-hostutils |
| نسخه کتابخانه | 0.0.dev3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | David Slusser |
| ایمیل نویسنده | dbslusser@gmail.com |
| آدرس صفحه اصلی | https://github.com/davidslusser/django-hostutils |
| آدرس اینترنتی | https://pypi.org/project/django-hostutils/ |
| مجوز | GNU GENERAL PUBLIC LICENSE |
# 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
<br/>
| | |
|--------------|------|
| Author | David Slusser |
| Description | Host utilities package for django projects. |
| Requirements | `Python 3.x` +<br>`Django 3.2.x` + |
<br/>
## Code Quality
| Workflow | Description | Status |
|----------|-------------------------|------------------------------------------------------------------------------|
|Bandit|security checks||
|Black|code formatting||
|Mypy|static type checking||
|Pylint|static code analysis||
|Pytest|unit testing||
<br/>
## Documentation
| Workflow | Description | Status |
|----------|-------------------------|------------------------------------------------------------------------------|
|Docs|ReadTheDocs Build|[](https://django-hostutils.readthedocs.io/en/latest/?badge=latest)|
Full documentation is available here:
https://django-hostutils.readthedocs.io/en/latest/index.html
<br/>
## License
django-hostutils is licensed under the GNU-3 license (see the LICENSE file for details).
https://github.com/davidslusser/django-hostutils/blob/docs/LICENSE
<br/>
## Installation
- pip install django-hostutils
- add the following to your INSTALLED_APPS
```python
djangoaddicts.hostutils
```
- add the following to your project-level urls.py:
```python
path("hostutils/", include("djangoaddicts.hostutils.urls"), ),
```
<br/>
## 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' %}
```
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' %}
```
نیازمندی
| مقدار | نام |
|---|---|
| - | django |
| - | django-handyhelpers |
| - | psutil |
| - | bandit |
| - | black |
| - | build |
| - | mypy |
| - | mypy-extensions |
| - | pylint |
| - | pytest |
| - | pytest-cov |
| - | pytest-django |
| - | types-python-dateutil |
| - | typing-extensions |
نحوه نصب
نصب پکیج whl django-hostutils-0.0.dev3:
pip install django-hostutils-0.0.dev3.whl
نصب پکیج tar.gz django-hostutils-0.0.dev3:
pip install django-hostutils-0.0.dev3.tar.gz