A Django app to save cpu usage and view stats.
Project description
ROI BURO sample project
Name
ROI BURO sample test project
Description
This is Django-based sample test project which collect information about CPU usage and shows this stats at HTML page. There are client - linux daemon written on Python, which measures CPU utilization periodically and server - django application, which receives measures via REST API.
Installation
-
Add "roiburo" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'roiburo', ]
-
Include the sample project URLconf in your project urls.py like this:
path('roiburo/', include('roiburo.urls')),
-
Run
python manage.py migrate
to create project models. -
Start the development server
python manage.py runserver
. -
Start daemon from
client
folder by runningpython main.py
. -
Visit http://127.0.0.1:8000/roiburo/api/v1/core/system-state-details to view statistics.
-
API docs is available at http://127.0.0.1:8000/roiburo/api/schema/swagger-ui#/
Features
- Django 3.2
- Python 3.9
- 12-Factor based settings via django-environ
- Optimized settings
- OpenAPI based docs via drf-spectacular
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
Hashes for django-roi-buro-sample-project-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22b1d2750b01c6bd7bbea2097e97d87f97e1d3f5bb7bf425db3315fdd5a37e99 |
|
MD5 | d0c929a18fe127ea226a3a3b4fd9dd5b |
|
BLAKE2b-256 | fc0cda190f9a9f4287f0a502096e184edb620d1f2c5f61bad19dde89e7f0c1ba |