{"id":20291203,"url":"https://github.com/igraph/python-igraph-ctypes","last_synced_at":"2025-07-30T01:38:28.060Z","repository":{"id":67765434,"uuid":"438661936","full_name":"igraph/python-igraph-ctypes","owner":"igraph","description":"Experimental pure Python ctypes-based interface for igraph","archived":false,"fork":false,"pushed_at":"2024-06-21T05:48:48.000Z","size":1222,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T07:36:17.778Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igraph.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":"2021-12-15T14:37:27.000Z","updated_at":"2024-06-21T05:48:24.000Z","dependencies_parsed_at":"2023-12-29T17:26:33.533Z","dependency_job_id":"a26aa84c-44b6-4eed-b60d-a12c9b9900bd","html_url":"https://github.com/igraph/python-igraph-ctypes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igraph%2Fpython-igraph-ctypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igraph%2Fpython-igraph-ctypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igraph%2Fpython-igraph-ctypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igraph%2Fpython-igraph-ctypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igraph","download_url":"https://codeload.github.com/igraph/python-igraph-ctypes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248381789,"owners_count":21094528,"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-11-14T15:10:59.465Z","updated_at":"2025-07-30T01:38:28.047Z","avatar_url":"https://github.com/igraph.png","language":"Python","readme":"# python-igraph-ctypes\n\nThis repository contains an **experimental** Python API to the [igraph C\nlibrary](https://igraph.org), with the following goals:\n\n- It should contain as little hand-written C code as possible.\n\n- It should rely on code generation to create most of the glue code between\n  Python and igraph's core C API to make it easier to adapt to changes in the\n  underlying C library without having to re-write too much of the Python code.\n\n- It should provide full type annotations.\n\n## Status\n\nThis repo is **highly experimental** and currently it is only in\na proof-of-concept stage. The vast majority of igraph's API is not exposed, and\nthings may break randomly, or they may not even work.\n\n## Usage\n\n1. Clone the repo.\n\n2. Install [`uv`](https://astral.sh/uv) if you don't have it yet.\n\n3. Run `uv sync` to prepare a virtualenv with all the required\n   dependencies.\n\n4. Run `uv run pytest` to run the unit tests, or `uv run python` to run\n   a Python interpreter where you can `import igraph_ctypes`\n\n## Benchmarking\n\nBenchmarks will be placed in `benchmarks` and they will compare the \"old\",\nofficial Python interface of igraph with this new implementation. To run the\nbenchmarks, type `uv run richbench benchmarks`.\n\n## Caveats\n\n- Apparently you'll need to ensure that the igraph shared library is built\n  without sanitizers, otherwise the `dlopen()` call fails, at least on macOS.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figraph%2Fpython-igraph-ctypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figraph%2Fpython-igraph-ctypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figraph%2Fpython-igraph-ctypes/lists"}