{"id":20113021,"url":"https://github.com/yottaawesome/python-win-extension","last_synced_at":"2026-05-13T09:09:47.190Z","repository":{"id":109071093,"uuid":"193081305","full_name":"yottaawesome/python-win-extension","owner":"yottaawesome","description":"An example Python extension on Windows for my personal reference.","archived":false,"fork":false,"pushed_at":"2019-06-21T14:28:39.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-09T05:03:28.375Z","etag":null,"topics":["cpp","python-extension","python3","win32"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":false,"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/yottaawesome.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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-21T10:42:38.000Z","updated_at":"2025-01-01T15:43:33.000Z","dependencies_parsed_at":"2023-03-24T04:47:41.446Z","dependency_job_id":null,"html_url":"https://github.com/yottaawesome/python-win-extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yottaawesome/python-win-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yottaawesome%2Fpython-win-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yottaawesome%2Fpython-win-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yottaawesome%2Fpython-win-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yottaawesome%2Fpython-win-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yottaawesome","download_url":"https://codeload.github.com/yottaawesome/python-win-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yottaawesome%2Fpython-win-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32975281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"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":["cpp","python-extension","python3","win32"],"created_at":"2024-11-13T18:23:11.889Z","updated_at":"2026-05-13T09:09:47.161Z","avatar_url":"https://github.com/yottaawesome.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple Win32 extension for Python\n\n## Introduction\n\nThis is a just a quick-and-dirty example of a simple Python native extension on Windows for my personal reference. The lessons learned here will be used for my Python Onyx32 extension. It is mostly based on [documentation from Microsoft](https://docs.microsoft.com/en-us/visualstudio/python/working-with-c-cpp-python-in-visual-studio?view=vs-2019#alternative-approaches).\n\n## Using this repo\n\nTo run this repo, you'll need:\n\n* Install VS Community 2019 with \"Desktop Development with C++\" and \"Python development\" workloads.\n  * With the Python workload, you'll need _miniconda_ (for creating a virtual environment), _Python native development tools_, and a Python 3 64-bit environment.\n  * Make note of where VS installs your Python environment (on my machine, VS installed Python into _A:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64_).\n* Set the build to x64 and configuration to Release when opening the Solution.\n* Create an x64 Python 3 environment named `env` in VS under _PythonExtension_ project \u003e _Python Environments_.\n* In the _superfast_ project's properties, you'll also need to:\n  * Update _VC++ Directories_ \u003e _Include Directories_ to the location of your Python installation's (as per above) include folder.\n  * Update _Linker_ \u003e _Additional Library Directories_ to the location of your Python installation's lib folder.\n\n## Useful resources\n\n* [Python/C API reference.](https://docs.python.org/3/c-api/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyottaawesome%2Fpython-win-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyottaawesome%2Fpython-win-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyottaawesome%2Fpython-win-extension/lists"}