{"id":34036059,"url":"https://github.com/izxxr/runtime-final","last_synced_at":"2026-03-11T13:39:31.821Z","repository":{"id":39893805,"uuid":"507242368","full_name":"izxxr/runtime-final","owner":"izxxr","description":"Declare final Python classes and methods at runtime.","archived":false,"fork":false,"pushed_at":"2022-12-18T18:14:39.000Z","size":28,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T13:44:49.071Z","etag":null,"topics":["final","final-classes","python","python-typing","python3","runtime","typing"],"latest_commit_sha":null,"homepage":"https://runtime-final.readthedocs.io","language":"Python","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/izxxr.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}},"created_at":"2022-06-25T07:18:27.000Z","updated_at":"2022-06-26T04:14:40.000Z","dependencies_parsed_at":"2023-01-29T19:35:11.721Z","dependency_job_id":null,"html_url":"https://github.com/izxxr/runtime-final","commit_stats":null,"previous_names":["nerdguyahmad/runtime-final"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/izxxr/runtime-final","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izxxr%2Fruntime-final","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izxxr%2Fruntime-final/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izxxr%2Fruntime-final/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izxxr%2Fruntime-final/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izxxr","download_url":"https://codeload.github.com/izxxr/runtime-final/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izxxr%2Fruntime-final/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30382673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T12:49:11.341Z","status":"ssl_error","status_checked_at":"2026-03-11T12:46:41.342Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["final","final-classes","python","python-typing","python3","runtime","typing"],"created_at":"2025-12-13T20:09:35.382Z","updated_at":"2026-03-11T13:39:31.805Z","avatar_url":"https://github.com/izxxr.png","language":"Python","readme":"# runtime-final\nDeclare final Python classes and methods at runtime.\n\nThis module provides a decorator based interface to declare final\nclasses and methods. This module is inspired by and is compatible with [`typing.final`](https://docs.python.org/3/library/typing.html#typing.final).\nSee [PEP-591](https://www.python.org/dev/peps/pep-0591) for more\ndetails on this topic.\n\n## Installation\n**Python 3.6 or higher is required.**\n\nYou can simply install this module from `pip`.\n```\npython -m pip install runtime-final\n```\n\n## Usage\nThe main component of this module is the `final` decorator that\ncan be used to decorate classes and methods inside a class. As\nsuch:\n\n- Classes decorated with @final cannot be subclassed.\n- Methods decorated with @final cannot be overriden in subclasses.\n\nFor example with classes:\n\n```py\nfrom runtime_final import final\n\n@final\nclass Foo:\n    ...\n\nclass Bar(Foo):  # Raises RuntimeError\n    ...\n```\nAnd with methods:\n```py\nfrom runtime_final import final\n\nclass User:\n    @final\n    def edit(self):\n        ...\n\nclass AnotherUser(User):\n    def edit(self):  # Raises RuntimeError\n        ...\n```\n\n## Documentation\nFor more details, see the [documentation](https://runtime-final.readthedocs.io)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizxxr%2Fruntime-final","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizxxr%2Fruntime-final","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizxxr%2Fruntime-final/lists"}