{"id":15157663,"url":"https://github.com/pytorch/extension-ffi","last_synced_at":"2025-09-30T07:30:47.031Z","repository":{"id":65978162,"uuid":"69855092","full_name":"pytorch/extension-ffi","owner":"pytorch","description":"Examples of C extensions for PyTorch","archived":true,"fork":false,"pushed_at":"2023-02-12T02:09:07.000Z","size":10,"stargazers_count":258,"open_issues_count":13,"forks_count":70,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-09-27T20:03:21.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/pytorch.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-03T08:57:52.000Z","updated_at":"2024-09-03T21:07:43.000Z","dependencies_parsed_at":"2023-05-22T17:45:25.910Z","dependency_job_id":null,"html_url":"https://github.com/pytorch/extension-ffi","commit_stats":{"total_commits":5,"total_committers":4,"mean_commits":1.25,"dds":0.6,"last_synced_commit":"931a9eab44b2a84c717a5e913079394c2e85242d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fextension-ffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fextension-ffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fextension-ffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fextension-ffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytorch","download_url":"https://codeload.github.com/pytorch/extension-ffi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234712853,"owners_count":18875523,"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-09-26T20:01:38.380Z","updated_at":"2025-09-30T07:30:41.743Z","avatar_url":"https://github.com/pytorch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyTorch C FFI examples\n\nIn this repository you can find examples showing how to extend PyTorch with\ncustom C code. To use the ffi you need to install the `cffi` package from pip.\n\nCurrently there are two examples:\n* `package` - a pip distributable package\n* `script` - compiles the code into a local module, that can be later imported\n    from other files\n\nYou may also want to look at [pytorch/audio](https://github.com/pytorch/audio/)\nfor an example of a type-generic C FFI extension.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Fextension-ffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytorch%2Fextension-ffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Fextension-ffi/lists"}