{ "info": { "author": "Martin Simon", "author_email": "me@martinsimon.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable" ], "description": "**walnut** is an APACHE licensed library written in Python designed to\r\nprovide a simple and pythonic way to parse the */proc/cpuinfo* file on\r\nLINUX based systems.\r\n\r\nInstallation:\r\n-------------\r\n\r\nFrom source use\r\n\r\n::\r\n\r\n $ python setup.py install\r\n\r\nor install from PyPi\r\n\r\n::\r\n\r\n $ pip install walnut\r\n\r\n\r\nDocumentation:\r\n--------------\r\n\r\n- Basic use:\r\n\r\n::\r\n\r\n >>> from walnut import CpuInfo\r\n >>> cpu = CpuInfo()\r\n >>> cpu\r\n processor : 0\r\n vendor_id : GenuineIntel\r\n cpu family : 6\r\n model : 42\r\n model name : Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\r\n stepping : 7\r\n microcode : 0x28\r\n cpu MHz : 1600.257\r\n cache size : 3072 KB\r\n physical id : 0\r\n siblings : 4\r\n core id : 0\r\n cpu cores : 2\r\n apicid : 0\r\n initial apicid : 0\r\n fpu : yes\r\n fpu_exception : yes\r\n cpuid level : 13\r\n wp : yes\r\n flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\r\n bogomips : 6784.56\r\n clflush size : 64\r\n cache_alignment : 64\r\n address sizes : 36 bits physical, 48 bits virtual\r\n power management:\r\n\r\n processor : 1\r\n vendor_id : GenuineIntel\r\n cpu family : 6\r\n model : 42\r\n model name : Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\r\n stepping : 7\r\n microcode : 0x28\r\n cpu MHz : 1600.523\r\n cache size : 3072 KB\r\n physical id : 0\r\n siblings : 4\r\n core id : 1\r\n cpu cores : 2\r\n apicid : 2\r\n initial apicid : 2\r\n fpu : yes\r\n fpu_exception : yes\r\n cpuid level : 13\r\n wp : yes\r\n flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\r\n bogomips : 6784.56\r\n clflush size : 64\r\n cache_alignment : 64\r\n address sizes : 36 bits physical, 48 bits virtual\r\n power management:\r\n\r\n processor : 2\r\n vendor_id : GenuineIntel\r\n cpu family : 6\r\n model : 42\r\n model name : Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\r\n stepping : 7\r\n microcode : 0x28\r\n cpu MHz : 1595.476\r\n cache size : 3072 KB\r\n physical id : 0\r\n siblings : 4\r\n core id : 0\r\n cpu cores : 2\r\n apicid : 1\r\n initial apicid : 1\r\n fpu : yes\r\n fpu_exception : yes\r\n cpuid level : 13\r\n wp : yes\r\n flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\r\n bogomips : 6784.56\r\n clflush size : 64\r\n cache_alignment : 64\r\n address sizes : 36 bits physical, 48 bits virtual\r\n power management:\r\n\r\n processor : 3\r\n vendor_id : GenuineIntel\r\n cpu family : 6\r\n model : 42\r\n model name : Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\r\n stepping : 7\r\n microcode : 0x28\r\n cpu MHz : 1599.062\r\n cache size : 3072 KB\r\n physical id : 0\r\n siblings : 4\r\n core id : 1\r\n cpu cores : 2\r\n apicid : 3\r\n initial apicid : 3\r\n fpu : yes\r\n fpu_exception : yes\r\n cpuid level : 13\r\n wp : yes\r\n flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\r\n bogomips : 6784.56\r\n clflush size : 64\r\n cache_alignment : 64\r\n address sizes : 36 bits physical, 48 bits virtual\r\n power management:\r\n\r\n- Return output as dict:\r\n\r\n::\r\n\r\n >>> mem.dict()\r\n {\r\n \"1\": {\r\n \"cpu cores\": \"2\",\r\n \"bogomips\": \"6784.56\",\r\n \"core id\": \"1\",\r\n \"apicid\": \"2\",\r\n \"fpu_exception\": \"yes\",\r\n \"stepping\": \"7\",\r\n \"cache_alignment\": \"64\",\r\n \"clflush size\": \"64\",\r\n \"microcode\": \"0x28\",\r\n \"cache size\": \"3072 KB\",\r\n \"cpuid level\": \"13\",\r\n \"fpu\": \"yes\",\r\n \"model name\": \"Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\",\r\n \"siblings\": \"4\",\r\n \"physical id\": \"0\",\r\n \"address sizes\": \"36 bits physical, 48 bits virtual\",\r\n \"cpu family\": \"6\",\r\n \"vendor_id\": \"GenuineIntel\",\r\n \"wp\": \"yes\",\r\n \"power management\": \"\",\r\n \"flags\": \"fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\",\r\n \"cpu MHz\": \"1683.398\",\r\n \"model\": \"42\",\r\n \"processor\": \"1\",\r\n \"initial apicid\": \"2\"\r\n },\r\n \"0\": {\r\n \"cpu cores\": \"2\",\r\n \"bogomips\": \"6784.56\",\r\n \"core id\": \"0\",\r\n \"apicid\": \"0\",\r\n \"fpu_exception\": \"yes\",\r\n \"stepping\": \"7\",\r\n \"cache_alignment\": \"64\",\r\n \"clflush size\": \"64\",\r\n \"microcode\": \"0x28\",\r\n \"cache size\": \"3072 KB\",\r\n \"cpuid level\": \"13\",\r\n \"fpu\": \"yes\",\r\n \"model name\": \"Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\",\r\n \"siblings\": \"4\",\r\n \"physical id\": \"0\",\r\n \"address sizes\": \"36 bits physical, 48 bits virtual\",\r\n \"cpu family\": \"6\",\r\n \"vendor_id\": \"GenuineIntel\",\r\n \"wp\": \"yes\",\r\n \"power management\": \"\",\r\n \"flags\": \"fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\",\r\n \"cpu MHz\": \"1601.187\",\r\n \"model\": \"42\",\r\n \"processor\": \"0\",\r\n \"initial apicid\": \"0\"\r\n },\r\n \"3\": {\r\n \"cpu cores\": \"2\",\r\n \"bogomips\": \"6784.56\",\r\n \"core id\": \"1\",\r\n \"apicid\": \"3\",\r\n \"fpu_exception\": \"yes\",\r\n \"stepping\": \"7\",\r\n \"cache_alignment\": \"64\",\r\n \"clflush size\": \"64\",\r\n \"microcode\": \"0x28\",\r\n \"cache size\": \"3072 KB\",\r\n \"cpuid level\": \"13\",\r\n \"fpu\": \"yes\",\r\n \"model name\": \"Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\",\r\n \"siblings\": \"4\",\r\n \"physical id\": \"0\",\r\n \"address sizes\": \"36 bits physical, 48 bits virtual\",\r\n \"cpu family\": \"6\",\r\n \"vendor_id\": \"GenuineIntel\",\r\n \"wp\": \"yes\",\r\n \"power management\": \"\",\r\n \"flags\": \"fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\",\r\n \"cpu MHz\": \"1612.476\",\r\n \"model\": \"42\",\r\n \"processor\": \"3\",\r\n \"initial apicid\": \"3\"\r\n },\r\n \"2\": {\r\n \"cpu cores\": \"2\",\r\n \"bogomips\": \"6784.56\",\r\n \"core id\": \"0\",\r\n \"apicid\": \"1\",\r\n \"fpu_exception\": \"yes\",\r\n \"stepping\": \"7\",\r\n \"cache_alignment\": \"64\",\r\n \"clflush size\": \"64\",\r\n \"microcode\": \"0x28\",\r\n \"cache size\": \"3072 KB\",\r\n \"cpuid level\": \"13\",\r\n \"fpu\": \"yes\",\r\n \"model name\": \"Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz\",\r\n \"siblings\": \"4\",\r\n \"physical id\": \"0\",\r\n \"address sizes\": \"36 bits physical, 48 bits virtual\",\r\n \"cpu family\": \"6\",\r\n \"vendor_id\": \"GenuineIntel\",\r\n \"wp\": \"yes\",\r\n \"power management\": \"\",\r\n \"flags\": \"fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid\",\r\n \"cpu MHz\": \"1600.125\",\r\n \"model\": \"42\",\r\n \"processor\": \"2\",\r\n \"initial apicid\": \"1\"\r\n }\r\n }\r\n\r\n- Search (is case insensitive):\r\n\r\n::\r\n\r\n >>> cpu.search('CPU Mhz')\r\n ['cpu MHz\\t\\t: 1599.062\\n', 'cpu MHz\\t\\t: 1600.125\\n', 'cpu MHz\\t\\t: 1598.398\\n', 'cpu MHz\\t\\t: 1601.320\\n']\r\n\r\nLicense:\r\n--------\r\n\r\n::\r\n\r\n Apache v2.0 License\r\n Copyright 2014-2015 Martin Simon\r\n\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n\r\nBuy me a coffee?\r\n----------------\r\n\r\nIf you feel like buying me a coffee (or a beer?), donations are welcome:\r\n\r\n::\r\n\r\n WDC : WbcWJzVD8yXt3yLnnkCZtwQo4YgSUdELkj\r\n HBN : F2Zs4igv8r4oJJzh4sh4bGmeqoUxLQHPki\r\n DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/c0ding/mrsmn/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mrsmn/walnut", "keywords": "CPU,system information,cpuinfo,/proc", "license": "Apache v2.0 License", "maintainer": "", "maintainer_email": "", "name": "walnut", "package_url": "https://pypi.org/project/walnut/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/walnut/", "project_urls": { "Download": "https://github.com/c0ding/mrsmn/archive/master.zip", "Homepage": "https://github.com/mrsmn/walnut" }, "release_url": "https://pypi.org/project/walnut/0.2/", "requires_dist": null, "requires_python": null, "summary": "A pythonic library to parse /proc/cpuinfo", "version": "0.2" }, "last_serial": 3548605, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d2e5927337e4044e75e2fe31dd94c9f2", "sha256": "03c3d279ca9aeb68d9faa0319ecc0a9ea72de93fa3e756f88baf2c09cc0efd77" }, "downloads": -1, "filename": "walnut-0.1.tar.gz", "has_sig": false, "md5_digest": "d2e5927337e4044e75e2fe31dd94c9f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4299, "upload_time": "2015-03-25T09:12:07", "url": "https://files.pythonhosted.org/packages/5c/db/98c294ea2cdbb1d7094c97b7fcf0a5dd3183acb855cc264bf1e06e428ff2/walnut-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "01147169b78bab537468ca37197d910c", "sha256": "1ff311ccee7ff737828d643cd08105d61d45673a163ca52cb551d4efed5d9e8d" }, "downloads": -1, "filename": "walnut-0.2.tar.gz", "has_sig": false, "md5_digest": "01147169b78bab537468ca37197d910c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4303, "upload_time": "2015-04-28T10:13:49", "url": "https://files.pythonhosted.org/packages/18/f4/1e878a7680e117fae2b83c2561a74eeacb0e41828de458f810ec0be28049/walnut-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "01147169b78bab537468ca37197d910c", "sha256": "1ff311ccee7ff737828d643cd08105d61d45673a163ca52cb551d4efed5d9e8d" }, "downloads": -1, "filename": "walnut-0.2.tar.gz", "has_sig": false, "md5_digest": "01147169b78bab537468ca37197d910c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4303, "upload_time": "2015-04-28T10:13:49", "url": "https://files.pythonhosted.org/packages/18/f4/1e878a7680e117fae2b83c2561a74eeacb0e41828de458f810ec0be28049/walnut-0.2.tar.gz" } ] }