Skip to main content

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)

Table of built distributions (wheels) for resource-api-monitor 0.0.1
File Interpreter ABI Platform
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
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

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page