{"id":21528872,"url":"https://github.com/user0332/pyprotectionlevel","last_synced_at":"2026-03-19T20:45:46.450Z","repository":{"id":188540014,"uuid":"678942703","full_name":"User0332/pyprotectionlevel","owner":"User0332","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-15T18:40:53.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T06:11:46.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/User0332.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":"2023-08-15T18:39:36.000Z","updated_at":"2023-12-03T04:07:02.000Z","dependencies_parsed_at":"2023-08-15T20:21:00.167Z","dependency_job_id":null,"html_url":"https://github.com/User0332/pyprotectionlevel","commit_stats":null,"previous_names":["user0332/pyprotectionlevel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/User0332%2Fpyprotectionlevel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/User0332%2Fpyprotectionlevel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/User0332%2Fpyprotectionlevel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/User0332%2Fpyprotectionlevel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/User0332","download_url":"https://codeload.github.com/User0332/pyprotectionlevel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244092201,"owners_count":20396750,"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":[],"created_at":"2024-11-24T01:54:48.133Z","updated_at":"2026-01-04T05:05:13.878Z","avatar_url":"https://github.com/User0332.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyProtectionLevel\n\n## Install\n\nInstall PyProtectionLevel using `pip` with `pip install protectionlevel`. The package module is named `protectionlevel`, so you can import all decorators with `from protectionlevel import *`.\n\n## Docs \u0026 Usage\n\nAccess modifier support for Python. Includes the following access modifiers as decorators:\n\n- `@protectiondefault` - uses the default protection for the item (private); if used on a class, then all attributes will be private (unless specified otherwise by an attribute decorator)\n- `@public` - exposes the attribute of the class even if the class is decorated with `@protectiondefault`\n- `@private` - makes attribute private (only the class can access the attribute)\n- `@protected` - only the class and subclasses can access the attribute\n- `@readonly` - the attribute cannot be set\n- `@exposeset(access_modifier)` - Can pass either `protectionlevel.private` or `protectionlevel.protected` as the argument to this decorator. Allows code that falls under the protection level passed as `access_modifier` to get and set the attribute, all other code can only get the attribute.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuser0332%2Fpyprotectionlevel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuser0332%2Fpyprotectionlevel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuser0332%2Fpyprotectionlevel/lists"}