{"id":18742349,"url":"https://github.com/liamsennitt/registrypol","last_synced_at":"2026-05-16T22:03:28.023Z","repository":{"id":57750017,"uuid":"315041002","full_name":"liamsennitt/registrypol","owner":"liamsennitt","description":"Windows Registry Policy parser and emitter for Python","archived":false,"fork":false,"pushed_at":"2026-05-05T21:54:48.000Z","size":95,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-05T23:31:42.754Z","etag":null,"topics":["python","windows"],"latest_commit_sha":null,"homepage":"","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/liamsennitt.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-22T13:13:18.000Z","updated_at":"2026-05-05T21:54:52.000Z","dependencies_parsed_at":"2022-08-22T18:31:14.063Z","dependency_job_id":null,"html_url":"https://github.com/liamsennitt/registrypol","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/liamsennitt/registrypol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamsennitt%2Fregistrypol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamsennitt%2Fregistrypol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamsennitt%2Fregistrypol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamsennitt%2Fregistrypol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liamsennitt","download_url":"https://codeload.github.com/liamsennitt/registrypol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamsennitt%2Fregistrypol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33120450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["python","windows"],"created_at":"2024-11-07T16:07:30.085Z","updated_at":"2026-05-16T22:03:28.011Z","avatar_url":"https://github.com/liamsennitt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RegistryPol\n\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/liamsennitt/registrypol/build.yml?branch=main)](https://github.com/liamsennitt/registrypol/actions/workflows/build.yml)\n[![PyPI](https://img.shields.io/pypi/v/registrypol)](https://pypi.org/project/registrypol/)\n[![GitHub](https://img.shields.io/github/license/LiamSennitt/registrypol)](LICENSE)\n\nThe `registrypol` module allows you to easily parse and create Windows Registry Policy files in Python.\n\n## Installation\n\nTo install the `registrypol` module via pip, run the command:\n\n```console\n$ pip install registrypol\n```\n\n## Usage\n\nStart by importing the `registrypol` module.\n\n```python\nimport registrypol\n```\n\nThe function `registrypol.load`, loads an registry policy file.\n\n```python\nwith open('registry.pol', 'rb') as file:\n    registrypol.load(file)\n```\n\nIn addition to loading an existing registry policy, policies created using the relevant Values can be dumped to a file using the `registrypol.dump` function.\n\n```python\nwith open('registry.pol', 'wb') as file:\n    registrypol.dump(policy, file)\n```\n\n### RegistryValue\n\nTo create a registry value as part of an registry policy, a `registrypol.values.RegistryValue` must be created.\n\n```python\nfrom registrypol.values import RegistryValue\n\nvalue = RegistryValue(\n    key='Software\\Policies\\Microsoft\\Windows\\SrpV2\\Exe',\n    value='EnforcementMode',\n    type='REG_DWORD',\n    size=4,\n    data=b'\\x01\\x00\\x00\\x00'\n)\n```\n\n### RegistryPolicy\n\nTo create an registry policy one or more registry values must be created as described above.\n\nThese values can then be used to create an `registrypol.policy.RegistryPolicy`.\n\n```python\nfrom registrypol.policy import RegistryPolicy\n\npolicy = RegistryPolicy(\n    values=[\n        value\n    ]\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamsennitt%2Fregistrypol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamsennitt%2Fregistrypol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamsennitt%2Fregistrypol/lists"}