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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cgroup-parser-0.0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cgroup_parser-0.0.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file cgroup-parser-0.0.2.tar.gz.

File metadata

  • Download URL: cgroup-parser-0.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cgroup-parser-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9729d84332a34f15c1db3ce1af237010d8c8498b0594d8cb62e22395788c11e1
MD5 97c0626d6c3d4ccbbe2ef409ea43883c
BLAKE2b-256 36207f3ba0e7c7fd4409d5fcd997a8fe1bab6d00dfac7780b6e223bd9ac183d3

See more details on using hashes here.

File details

Details for the file cgroup_parser-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cgroup_parser-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cgroup_parser-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e25289bb155ebf316b178250c0941183002d7f024f67b2e454abc0eeb6356fba
MD5 f7e4d98399ac82c5ca91da7f1953e66e
BLAKE2b-256 ffc608f549b9639d90bfff8e46ba83c5a91520ec791b6bcd4acf22fbdab37b76

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page