{"id":42622521,"url":"https://github.com/wkatsak/py-rapl","last_synced_at":"2026-01-29T04:27:52.365Z","repository":{"id":89514582,"uuid":"80966846","full_name":"wkatsak/py-rapl","owner":"wkatsak","description":"Library to provide access to Intel RAPL energy counters via Python.","archived":false,"fork":false,"pushed_at":"2020-01-23T19:10:51.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-29T21:16:25.115Z","etag":null,"topics":["linux","power","python","rapl"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wkatsak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-02-05T03:45:26.000Z","updated_at":"2023-04-08T02:33:36.000Z","dependencies_parsed_at":"2023-09-25T06:58:52.422Z","dependency_job_id":null,"html_url":"https://github.com/wkatsak/py-rapl","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"194fabad1144cad7edb4fdb1c8e17edb57deb8b1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wkatsak/py-rapl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkatsak%2Fpy-rapl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkatsak%2Fpy-rapl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkatsak%2Fpy-rapl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkatsak%2Fpy-rapl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wkatsak","download_url":"https://codeload.github.com/wkatsak/py-rapl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkatsak%2Fpy-rapl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28862159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["linux","power","python","rapl"],"created_at":"2026-01-29T04:27:51.924Z","updated_at":"2026-01-29T04:27:52.349Z","avatar_url":"https://github.com/wkatsak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-rapl: a very simple library to sample RAPL counters via powercap/sysfs interface\n\n## Introduction\n\n`py-rapl` is a very simple library that supports sampling the\n[RAPL](https://01.org/blogs/2014/running-average-power-limit-%E2%80%93-rapl), or *Running Average Power Limit*\nenergy counters that are provided by most, if not all modern Intel CPUs.\n\n## Usage\n    import rapl\n\n    s1 = rapl.RAPLMonitor.sample()\n\t# Some work that you want to measure.\n\ts2 = rapl.RAPLMonitor.sample()\n\n    # Take the difference of the samples\n\tdiff = s2 - s1\n\n    # Print the difference in microjoules\n\tprint(diff.energy(\"package-0\", \"core\", rapl.UJOULES))\n\n\t# Print the average power\n\tprint(diff.average_power(\"package-0\", \"core\"))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkatsak%2Fpy-rapl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwkatsak%2Fpy-rapl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkatsak%2Fpy-rapl/lists"}