{"id":18512081,"url":"https://github.com/fi-mihej/cengal_cpu_info","last_synced_at":"2025-07-04T01:34:00.988Z","repository":{"id":208112065,"uuid":"720846018","full_name":"FI-Mihej/cengal_cpu_info","owner":"FI-Mihej","description":"Extended, cached CPU info with consistent output format.","archived":false,"fork":false,"pushed_at":"2023-11-24T00:29:08.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T23:45:46.138Z","etag":null,"topics":["cengal","cpu","cpu-info","hardware","hardware-info","hardware-information","info","library","python","python-3","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cengal-cpu-info/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FI-Mihej.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-19T19:18:44.000Z","updated_at":"2023-11-20T04:12:05.000Z","dependencies_parsed_at":"2024-06-10T17:17:10.297Z","dependency_job_id":null,"html_url":"https://github.com/FI-Mihej/cengal_cpu_info","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"2b40bc5cbb869dcaf6df1eaa37edd15166f2a993"},"previous_names":["fi-mihej/cengal_cpu_info"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/FI-Mihej/cengal_cpu_info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FI-Mihej%2Fcengal_cpu_info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FI-Mihej%2Fcengal_cpu_info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FI-Mihej%2Fcengal_cpu_info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FI-Mihej%2Fcengal_cpu_info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FI-Mihej","download_url":"https://codeload.github.com/FI-Mihej/cengal_cpu_info/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FI-Mihej%2Fcengal_cpu_info/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259901167,"owners_count":22929200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cengal","cpu","cpu-info","hardware","hardware-info","hardware-information","info","library","python","python-3","python3"],"created_at":"2024-11-06T15:32:29.726Z","updated_at":"2025-07-04T01:34:00.937Z","avatar_url":"https://github.com/FI-Mihej.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cengal_cpu_info\n\nExtended, cached CPU info with consistent output format.\n\n# Advantages\n\nConsistent output format of memory-related values (unlike backend 'py-cpuinfo' package). Provides additional information. Provides cached instance (backend 'py-cpuinfo' package requires several seconds per an each call to gather CPU information).\n\n# Installation\n\n```bash\npip install cengal_cpu_info\n```\n\n# Documentation\n\n## Import\n\n```python\nfrom cengal_cpu_info import cpu_info, CpuInfo\n```\n\n## Cached instance\n\n```python\nci: CpuInfo = cpu_info()\n```\n\n## Methods\n\n```python\nprint(f'{ci.is_arm=}')\nprint(f'{ci.is_x86=}')\nprint(f'{ci.cores_num=}')\nprint(f'{ci.virtual_cores_num=}')\nprint(f'{ci.l2_cache_size_per_core=}')\nprint(f'{ci.l2_cache_size_per_virtual_core=}')\nprint(f'{ci.l3_cache_size_per_core=}')\nprint(f'{ci.l3_cache_size_per_virtual_core=}')\nprint(f'{ci.arch=}')\nprint(f'{ci.arch_string_raw=}')\nprint(f'{ci.bits=}')\nprint(f'{ci.brand_raw=}')\nprint(f'{ci.count=}')\nprint(f'{ci.cpuinfo_version=}')\nprint(f'{ci.cpuinfo_version_string=}')\nprint(f'{ci.family=}')\nprint(f'{ci.flags=}')\nprint(f'{ci.hardware_raw=}')\nprint(f'{ci.hz_actual=}')\nprint(f'{ci.hz_actual_friendly=}')\nprint(f'{ci.hz_advertised=}')\nprint(f'{ci.l1_data_cache_size=}')\nprint(f'{ci.l1_instruction_cache_size=}')\nprint(f'{ci.l2_cache_associativity=}')\nprint(f'{ci.l2_cache_line_size=}')\nprint(f'{ci.l2_cache_size=}')\nprint(f'{ci.l3_cache_size=}')\nprint(f'{ci.model=}')\nprint(f'{ci.processor_type=}')\nprint(f'{ci.python_hz_advertised_friendlyversion=}')\nprint(f'{ci.python_version=}')\nprint(f'{ci.stepping=}')\nprint(f'{ci.vendor_id_raw=}')\n```\n\n## Example output\n\n```python\nci.is_arm=False\nci.is_x86=True\nci.cores_num=4\nci.virtual_cores_num=4\nci.l2_cache_size_per_core=262144\nci.l2_cache_size_per_virtual_core=262144\nci.l3_cache_size_per_core=1572864\nci.l3_cache_size_per_virtual_core=1572864\nci.arch='X86_64'\nci.arch_string_raw='x86_64'\nci.bits=64\nci.brand_raw='Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz'\nci.count=4\nci.cpuinfo_version=[9, 0, 0]\nci.cpuinfo_version_string='9.0.0'\nci.family=6\nci.flags=['aes', 'apic', 'arch_capabilities', 'arch_perfmon', 'avx', 'clflush', 'cmov', 'constant_tsc', 'cpuid', 'cx16', 'cx8', 'de', 'erms', 'f16c', 'flush_l1d', 'fpu', 'fsgsbase', 'fxsr', 'ht', 'hypervisor', 'ibpb', 'ibrs', 'lahf_lm', 'lm', 'mca', 'mce', 'md_clear', 'mmx', 'msr', 'mtrr', 'nopl', 'nx', 'osxsave', 'pae', 'pat', 'pcid', 'pclmulqdq', 'pdcm', 'pge', 'pni', 'popcnt', 'pse', 'pse36', 'pti', 'rdrand', 'rdrnd', 'rdtscp', 'rep_good', 'sep', 'smep', 'ss', 'ssbd', 'sse', 'sse2', 'sse4_1', 'sse4_2', 'ssse3', 'stibp', 'syscall', 'tsc', 'vme', 'xsave', 'xsaveopt', 'xtopology']\nci.hardware_raw=''\nci.hz_actual=[3403348000, 0]\nci.hz_actual_friendly='3.4033 GHz'\nci.hz_advertised=[3400000000, 0]\nci.l1_data_cache_size=131072\nci.l1_instruction_cache_size=131072\nci.l2_cache_associativity=6\nci.l2_cache_line_size=256\nci.l2_cache_size=1048576\nci.l3_cache_size=6291456\nci.model=58\nci.processor_type=0\nci.python_hz_advertised_friendlyversion='3.4000 GHz'\nci.python_version='3.8.10.final.0 (64 bit)'\nci.stepping=9\nci.vendor_id_raw='GenuineIntel'\n```\n\n# Based on Cengal\n\nRepresents part of Cengal library:\n* https://pypi.org/project/cengal/\n* https://github.com/FI-Mihej/Cengal\n\nAn equivalent import:\n```python\nfrom cengal.hardware.info.cpu import cpu_info, CpuInfo\n```\n\nCengal library can be installed by:\n\n```bash\npip install cengal\n```\n\n\n# Projects using Cengal\n\n* [flet_async](https://github.com/FI-Mihej/flet_async) - wrapper which makes [Flet](https://github.com/flet-dev/flet) async and brings booth Cengal.coroutines and asyncio to Flet (Flutter based UI)\n* [justpy_containers](https://github.com/FI-Mihej/justpy_containers) - wrapper around [JustPy](https://github.com/justpy-org/justpy) in order to bring more security and more production-needed features to JustPy (VueJS based UI)\n* [Bensbach](https://github.com/FI-Mihej/Bensbach) - decompiler from Unreal Engine 3 bytecode to a Lisp-like script and compiler back to Unreal Engine 3 bytecode. Made for a game modding purposes\n* [Realistic-Damage-Model-mod-for-Long-War](https://github.com/FI-Mihej/Realistic-Damage-Model-mod-for-Long-War) - Mod for both the original XCOM:EW and the mod Long War. Was made with a Bensbach, which was made with Cengal\n* [SmartCATaloguer.com](http://www.smartcataloguer.com/index.html) - TagDB based catalog of images (tags), music albums (genre tags) and apps (categories)\n\n# License\n\nCopyright © 2012-2024 ButenkoMS. All rights reserved.\n\nLicensed under the Apache License, Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffi-mihej%2Fcengal_cpu_info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffi-mihej%2Fcengal_cpu_info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffi-mihej%2Fcengal_cpu_info/lists"}