Skip to main content

Python解析cgroup(支持容器)

  1. 获取CPU核数
  2. 获取CPU使用率
  3. 获取内存限量
  4. 获取内存占用量
import cgroup_parser
cgroup_parser.get_max_procs()
cgroup_parser.get_cpu_usage()
cgroup_parser.get_memory_limit()
cgroup_parser.get_memory_usage()

Metadata

Release files for cgroup-parser 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cgroup-parser 0.0.2
File Size Uploaded
cgroup-parser-0.0.2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cgroup-parser 0.0.2
File Interpreter ABI Platform
cgroup_parser-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / cgroup-parser-0.0.2.tar.gz

Download URL cgroup-parser-0.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9729d84332a34f15c1db3ce1af237010d8c8498b0594d8cb62e22395788c11e1
BLAKE2b-256 checksum
How to use checksums
36207f3ba0e7c7fd4409d5fcd997a8fe1bab6d00dfac7780b6e223bd9ac183d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.5

Release files / cgroup_parser-0.0.2-py3-none-any.whl

Download URL cgroup_parser-0.0.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e25289bb155ebf316b178250c0941183002d7f024f67b2e454abc0eeb6356fba
BLAKE2b-256 checksum
How to use checksums
ffc608f549b9639d90bfff8e46ba83c5a91520ec791b6bcd4acf22fbdab37b76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.0.2 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