{"id":13468138,"url":"https://github.com/agronholm/typeguard","last_synced_at":"2026-02-15T15:47:27.123Z","repository":{"id":38904419,"uuid":"48664140","full_name":"agronholm/typeguard","owner":"agronholm","description":"Run-time type checker for Python","archived":false,"fork":false,"pushed_at":"2025-04-07T17:47:41.000Z","size":839,"stargazers_count":1644,"open_issues_count":29,"forks_count":116,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-08T22:37:25.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/agronholm.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"docs/contributing.rst","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}},"created_at":"2015-12-27T23:15:37.000Z","updated_at":"2025-05-05T02:48:24.000Z","dependencies_parsed_at":"2022-07-11T20:02:41.627Z","dependency_job_id":"b2991c5f-4336-4afa-b67a-9640dbaff89f","html_url":"https://github.com/agronholm/typeguard","commit_stats":{"total_commits":640,"total_committers":40,"mean_commits":16.0,"dds":"0.14218750000000002","last_synced_commit":"b6a7e4387c30a9f7d635712157c889eb073c1ea3"},"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Ftypeguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Ftypeguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Ftypeguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Ftypeguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agronholm","download_url":"https://codeload.github.com/agronholm/typeguard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166474,"owners_count":21864467,"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-07-31T15:01:06.108Z","updated_at":"2026-02-15T15:47:27.119Z","avatar_url":"https://github.com/agronholm.png","language":"Python","readme":".. image:: https://github.com/agronholm/typeguard/actions/workflows/test.yml/badge.svg\n  :target: https://github.com/agronholm/typeguard/actions/workflows/test.yml\n  :alt: Build Status\n.. image:: https://coveralls.io/repos/agronholm/typeguard/badge.svg?branch=master\u0026service=github\n  :target: https://coveralls.io/github/agronholm/typeguard?branch=master\n  :alt: Code Coverage\n.. image:: https://readthedocs.org/projects/typeguard/badge/?version=latest\n  :target: https://typeguard.readthedocs.io/en/latest/?badge=latest\n  :alt: Documentation\n.. image:: https://tidelift.com/badges/package/pypi/typeguard\n  :target: https://tidelift.com/subscription/pkg/pypi-typeguard\n  :alt: Tidelift\n\nThis library provides run-time type checking for functions defined with\n`PEP 484 \u003chttps://www.python.org/dev/peps/pep-0484/\u003e`_ argument (and return) type\nannotations, and any arbitrary objects. It can be used together with static type\ncheckers as an additional layer of type safety, to catch type violations that could only\nbe detected at run time.\n\nThree principal ways to do type checking are provided, each with its pros and cons:\n\n#. The ``check_type`` function:\n\n   * like ``isinstance()``, but supports arbitrary type annotations (within limits)\n   * can be used as a ``cast()`` replacement, but with actual checking of the value\n#. The ``check_argument_types()`` and ``check_return_type()`` functions:\n\n   * debugger friendly (except when running with the pydev debugger with the C extension installed)\n   * does not work reliably with dynamically defined type hints (e.g. in nested functions)\n#. Code instrumentation:\n\n   * entire modules, or individual functions (via ``@typechecked``) are recompiled, with\n     type checking code injected into them\n   * automatically checks function arguments, return values and assignments to annotated\n     local variables\n   * for generator functions (regular and async), checks yield and send values\n   * requires the original source code of the instrumented module(s) to be accessible\n\nTwo options are provided for code instrumentation:\n\n#. the ``@typechecked`` function:\n\n   * can be applied to functions individually\n#. the import hook (``typeguard.install_import_hook()``):\n\n   * automatically instruments targeted modules on import\n   * no manual code changes required in the target modules\n   * requires the import hook to be installed before the targeted modules are imported\n   * may clash with other import hooks\n\nSee the documentation_ for further information.\n\n.. _documentation: https://typeguard.readthedocs.io/en/latest/\n","funding_links":["https://tidelift.com/badges/package/pypi/typeguard","https://tidelift.com/subscription/pkg/pypi-typeguard"],"categories":["Python","Dynamic type checkers","Libraries in Python","Type checkers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagronholm%2Ftypeguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagronholm%2Ftypeguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagronholm%2Ftypeguard/lists"}