{"id":22308296,"url":"https://github.com/wazedkhan/enforcer","last_synced_at":"2026-01-27T01:05:18.282Z","repository":{"id":263729864,"uuid":"891242327","full_name":"WazedKhan/enforcer","owner":"WazedKhan","description":"A lightweight Python decorator to enforce type hints at runtime","archived":false,"fork":false,"pushed_at":"2024-11-20T19:02:18.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-28T00:24:45.412Z","etag":null,"topics":["decorator","python","runtime-type-checking","type-hints"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/static-type-enforcer/0.1.0/","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/WazedKhan.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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-20T01:30:47.000Z","updated_at":"2024-11-20T18:56:31.000Z","dependencies_parsed_at":"2025-10-14T02:31:50.376Z","dependency_job_id":"086e47a6-1f78-4557-8079-f38833ac3122","html_url":"https://github.com/WazedKhan/enforcer","commit_stats":null,"previous_names":["wazedkhan/enforcer"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/WazedKhan/enforcer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WazedKhan%2Fenforcer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WazedKhan%2Fenforcer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WazedKhan%2Fenforcer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WazedKhan%2Fenforcer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WazedKhan","download_url":"https://codeload.github.com/WazedKhan/enforcer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WazedKhan%2Fenforcer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28794587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"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":["decorator","python","runtime-type-checking","type-hints"],"created_at":"2024-12-03T20:13:33.829Z","updated_at":"2026-01-27T01:05:18.232Z","avatar_url":"https://github.com/WazedKhan.png","language":"Python","readme":"# Enforcer\n\n**Enforcer** is a lightweight Python decorator for enforcing type hints at runtime. It ensures that function arguments match their specified types, providing a simple and intuitive solution for runtime type validation.\n\n## Features\n\n- Enforce type hints at runtime for functions.\n- Lightweight and dependency-free.\n- Compatible with Python 3.7 and later.\n\n## Installation\n\nYou can install Enforcer via pip : `pip install static-type-enforcer==0.1.0`\n\n```python\nfrom enforcer import enforce_types\n\n@enforce_types\ndef greet(name: str, age: int):\n    print(f\"{name} is {age} years old!\")\n\n# Valid call\ngreet(\"Alice\", 25)\n\n# Invalid call\ngreet(\"Alice\", \"twenty-five\")  # Raises TypeError\n\n```\n\n## Contributing\n\nContributions are welcome! Please check the [issues](https://github.com/WazedKhan/enforcer/issues) for tasks that need help.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwazedkhan%2Fenforcer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwazedkhan%2Fenforcer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwazedkhan%2Fenforcer/lists"}