Resource Checker API
This is a simple application that checks the resource usage of your server via API
Requires
- python = ">=3.13"
Installation
pip3 install resource-api-monitor
You can also download the .whl package and install from there.
Usage
Run:
monitor-server
Then just curl to endpoint:8000/cpu or endpoint:8000/memory.
API Reference
| Endpoint | Method | Description |
|---|---|---|
/memory |
GET | Returns RAM usage and swap statistics. |
/cpu |
GET | Returns average CPU usage (0.3s duration between samples). |
Example CPU Output
{ "total_cpu_usage": 0.15, "usage_per_cpu": [0.12, 0.18, 0.14, 0.16] }
Metadata
Release files for resource-api-monitor 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resource_api_monitor-0.0.1-cp314-cp314-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.12+ x86-64, Linux glibc 2.28+ x86-64 | Details for resource_api_monitor-0.0.1-cp314-cp314-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl |
| resource_api_monitor-0.0.1-cp313-cp313-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.12+ x86-64, Linux glibc 2.28+ x86-64 | Details for resource_api_monitor-0.0.1-cp313-cp313-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl |
Total release size: 88.0 kB
Release files / resource_api_monitor-0.0.1-cp314-cp314-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl
| Download URL | resource_api_monitor-0.0.1-cp314-cp314-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 44.0 kB |
| Tags | CPython 3.14 Linux glibc 2.12+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
dd70e1fc9e46f16f7d83ed5d313c2d7087517528df12fbdd5603ecf0e5509e23
|
|
BLAKE2b-256 checksum How to use checksums |
12477668c237c106982e1f34c43b9ede37d8206d66323eee4e9aa2e00eae5a4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / resource_api_monitor-0.0.1-cp313-cp313-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl
| Download URL | resource_api_monitor-0.0.1-cp313-cp313-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 44.0 kB |
| Tags | CPython 3.13 Linux glibc 2.12+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
4ebc337a807600b31aa2f984022d9ec3a02c2485ecf1065478bb11837c8c67ce
|
|
BLAKE2b-256 checksum How to use checksums |
347e34b35fb3156657a8a177a0c5dfccfdbf200577be238bec9a77c87f3fc25a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for resource-api-monitor 0.0.1
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.