{"id":13469050,"url":"https://github.com/mypyc/mypyc","last_synced_at":"2025-05-15T17:09:17.136Z","repository":{"id":40650375,"uuid":"98179846","full_name":"mypyc/mypyc","owner":"mypyc","description":"Compile type annotated Python to fast C extensions","archived":false,"fork":false,"pushed_at":"2023-04-17T10:24:19.000Z","size":2956,"stargazers_count":1809,"open_issues_count":232,"forks_count":47,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-03-31T21:49:46.818Z","etag":null,"topics":["compiler","python","types"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mypyc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-07-24T10:41:19.000Z","updated_at":"2025-03-29T15:05:27.000Z","dependencies_parsed_at":"2024-01-14T06:56:38.843Z","dependency_job_id":null,"html_url":"https://github.com/mypyc/mypyc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mypyc%2Fmypyc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mypyc%2Fmypyc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mypyc%2Fmypyc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mypyc%2Fmypyc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mypyc","download_url":"https://codeload.github.com/mypyc/mypyc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247737788,"owners_count":20987721,"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":["compiler","python","types"],"created_at":"2024-07-31T15:01:25.175Z","updated_at":"2025-04-07T22:10:43.026Z","avatar_url":"https://github.com/mypyc.png","language":null,"readme":"# mypyc\n\nMypyc compiles Python modules to C extensions. It uses standard Python\n[type hints](https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html) to\ngenerate fast code. Mypyc uses [mypy](http://www.mypy-lang.org) to\nperform type checking and type inference.\n\nMypyc can compile anything from one module to an entire codebase. The\nmypy project has been using mypyc to compile mypy since 2019, giving\nit a 4x performance boost over regular Python.\n\n## Features\n\n* Support most features in the stdlib ``typing`` module\n* Compile clean, regular-looking Python code with type annotations\n* Expressive type system, including generics, optional types, union types and tuple types\n* Powerful type inference -- no need to annotate most variables\n* All code is valid Python, and all Python editors and IDEs work just fine\n* Access to all stdlib and third-party libraries in compiled code\n* Strict runtime enforcement of type annotations for runtime type safety\n* Ahead-of-time compilation for fast program startup\n* Compiled code runs as normal Python code (compilation is optional)\n* Both static type checking (via mypy) and runtime type checking\n\n## Documentation\n\nDocumentation is available at\n[ReadTheDocs](https://mypyc.readthedocs.io/en/latest/index.html).\n\n## Benchmarks\n\nWe track the performance of mypyc using\n[several benchmarks](https://github.com/mypyc/mypyc-benchmarks). Results are\nupdated daily to make it easy to track progress.\n\n## Questions or issues?\n\nThe mypyc [issue tracker](https://github.com/mypyc/mypyc/issues) lives in this\nrepository. You can also ask questions in our\n[Gitter chat](https://gitter.im/mypyc-dev/community).\n\n## Differences from Cython\n\n* Write clean code without non-standard syntax, such as ``cpdef``, or\n  extra decorators, with good performance.\n* First-class support for type system features such as tuple types,\n  union types and generics.\n* Variable type annotations are not needed for good performance, due to\n  powerful type inference provided by mypy.\n* Full integration with mypy for robust and seamless static type\n  checking.\n* Mypyc performs strict enforcement of type annotations at runtime,\n  for better runtime type safety.\n\n## Development roadmap\n\nThese are our near-term focus areas for improving mypyc:\n\n* Improved compatibility with Python\n* Much faster compilation (parallel and incremental compilation, and more)\n* Usability\n\n... and better performance (always!).\n\n## Development status\n\nWe are actively looking for early adopters! Mypyc is currently alpha\nsoftware. It's only recommended for production use cases with careful\ntesting, and if you are willing to contribute fixes or to work around\nissues you will encounter.\n\n## Help wanted\n\nNew contributors are very welcome! Any help in development, testing,\ndocumentation and benchmarking tasks is highly appreciated.\n\nUseful links for contributors:\n\n* The code lives in the\n  [mypyc subdirectory](https://github.com/python/mypy/tree/master/mypyc) of the\n  [mypy](https://github.com/python/mypy) repository.\n\n* We have\n  [developer documentation](https://github.com/python/mypy/blob/master/mypyc/doc/dev-intro.md).\n\n* Use the [issue tracker](https://github.com/mypyc/mypyc/issues) to find things\n  to work on.\n\n* You can ask questions in our [Gitter chat](https://gitter.im/mypyc-dev/community).\n\n## Changelog\n\nFollow our updates on the mypy blog: https://mypy-lang.blogspot.com/\n\n## License\n\nMypyc and mypy are licensed under the terms of the MIT License, with portions under\nthe Python Software Foundation license (see\nthe file [LICENSE](https://github.com/python/mypy/blob/master/LICENSE)\nin the mypy repository).\n","funding_links":[],"categories":["Others","Misc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmypyc%2Fmypyc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmypyc%2Fmypyc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmypyc%2Fmypyc/lists"}