{"id":15017810,"url":"https://github.com/sizmailov/pybind11-stubgen","last_synced_at":"2025-10-03T18:23:06.060Z","repository":{"id":44965135,"uuid":"151411285","full_name":"sizmailov/pybind11-stubgen","owner":"sizmailov","description":"Generate stubs for python modules","archived":false,"fork":false,"pushed_at":"2025-05-13T00:26:08.000Z","size":332,"stargazers_count":282,"open_issues_count":34,"forks_count":55,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-13T01:19:52.339Z","etag":null,"topics":["mypy","pep484","pep561","pybind11","pycharm","python","typing"],"latest_commit_sha":null,"homepage":"","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/sizmailov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-10-03T12:46:11.000Z","updated_at":"2025-05-13T00:26:12.000Z","dependencies_parsed_at":"2024-03-04T05:32:17.701Z","dependency_job_id":"e78217a2-8448-4ca8-b9ea-bee60206de13","html_url":"https://github.com/sizmailov/pybind11-stubgen","commit_stats":{"total_commits":285,"total_committers":22,"mean_commits":"12.954545454545455","dds":0.1333333333333333,"last_synced_commit":"cf58aa6c7f0655c2f830b6964aa48baff868b891"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizmailov%2Fpybind11-stubgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizmailov%2Fpybind11-stubgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizmailov%2Fpybind11-stubgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sizmailov%2Fpybind11-stubgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sizmailov","download_url":"https://codeload.github.com/sizmailov/pybind11-stubgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253855398,"owners_count":21974461,"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":["mypy","pep484","pep561","pybind11","pycharm","python","typing"],"created_at":"2024-09-24T19:51:00.861Z","updated_at":"2025-10-03T18:23:05.953Z","avatar_url":"https://github.com/sizmailov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pypi](https://img.shields.io/pypi/v/pybind11-stubgen.svg?logo=PyPI\u0026logoColor=white)](https://pypi.org/project/pybind11-stubgen/)\n\nAbout\n----\n\nStatic analysis tools and IDE usually struggle to understand python binary extensions.\n`pybind11-stubgen` generates [stubs](https://peps.python.org/pep-0561/) for python extensions to make them less opaque.\n\nWhile the CLI tool includes tweaks to target modules compiled specifically\nwith [pybind11](https://github.com/pybind/pybind11) but it should work well with modules built with other libraries.\n\n```bash\n# Install\npip install pybind11-stubgen\n\n# Generate stubs for numpy\npybind11-stubgen numpy\n```\n\nUsage\n-----\n\n```\npybind11-stubgen [-h]\n                 [-o OUTPUT_DIR]\n                 [--root-suffix ROOT_SUFFIX]\n                 [--ignore-invalid-expressions REGEX]\n                 [--ignore-invalid-identifiers REGEX]\n                 [--ignore-unresolved-names REGEX]\n                 [--ignore-all-errors]\n                 [--enum-class-locations REGEX:LOC]\n                 [--numpy-array-wrap-with-annotated|\n                  --numpy-array-use-type-var|\n                  --numpy-array-remove-parameters]\n                 [--print-invalid-expressions-as-is]\n                 [--print-safe-value-reprs REGEX]\n                 [--exit-code]\n                 [--stub-extension EXT]\n                 MODULE_NAME\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsizmailov%2Fpybind11-stubgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsizmailov%2Fpybind11-stubgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsizmailov%2Fpybind11-stubgen/lists"}