{"id":20692716,"url":"https://github.com/erfanoabdi/gbinder-python","last_synced_at":"2025-10-25T08:37:08.408Z","repository":{"id":38029001,"uuid":"384212509","full_name":"erfanoabdi/gbinder-python","owner":"erfanoabdi","description":"Python bindings for libgbinder","archived":false,"fork":false,"pushed_at":"2023-09-16T18:04:34.000Z","size":34,"stargazers_count":11,"open_issues_count":7,"forks_count":20,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T07:17:55.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Cython","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erfanoabdi.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}},"created_at":"2021-07-08T18:15:10.000Z","updated_at":"2024-07-29T02:26:01.000Z","dependencies_parsed_at":"2023-02-10T20:55:12.109Z","dependency_job_id":"e32c2a1e-a0e0-4fb3-af94-b98f37073099","html_url":"https://github.com/erfanoabdi/gbinder-python","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"8e87e5f5ae4df127e5b5cdbdb05f88a86ecb30fe"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/erfanoabdi/gbinder-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanoabdi%2Fgbinder-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanoabdi%2Fgbinder-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanoabdi%2Fgbinder-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanoabdi%2Fgbinder-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erfanoabdi","download_url":"https://codeload.github.com/erfanoabdi/gbinder-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanoabdi%2Fgbinder-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269980954,"owners_count":24507274,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-16T23:23:41.224Z","updated_at":"2025-10-25T08:37:03.376Z","avatar_url":"https://github.com/erfanoabdi.png","language":"Cython","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cython extension module for ``gbinder``\n\n## Prerequisites\n* libgbinder\n* libglibutil\n* pkgconf\n\nFor development, you will also need Cython:\n```bash\npip install cython\n```\n\n## Description\n\nThere are two Cython files: `cgbinder.pxd` describing the C++ API of the `libgbinder` library, and `gbinder.pyx` describing classes that will be visible from Python user code. \nThe `.pyx` imports `.pxd` to learn about C functions available to be called.\n\nThere is also `setup.py` file. \nThis file describes how to build the extension module, using `distutils`.\nIn there, we specify the library to link with as `libraries=['gbinder']`. The `gbinder` stands for `libgbinder.so` that we previously installed.\n\nThere are two options to build the package:\n- One, use Cython's `cythonize()` function to generate a `.c` file from the `.pyx` one, and then compile it against the `libgbinder.so` library.\n- Two, if the `.c` is already provided, just compile it - no Cython required!\n\n## Development build\n\nFor development, use option 1 by providing `--cython` flag:\n\n```bash\npython setup.py build_ext --inplace --cython\n```\n\nThe result will be a `.so` shared library named like `gbinder.cpython-38-x86_64-linux-gnu.so`. \n`build_ext` means we're building a C++ extension. `--inplace` means to put it in the current directory.\nIf you run `python` from current directory, you'll be able to `import gbinder`.\n\n## Distribute\n\nTo distribute, call `sdist` with `--cython` flag to create source distribution (unbuilt):\n\n```bash\npython setup.py sdist --cython\n```\n\nThe result will be a `dist/` directory with a distribution named like `gbinder-python-*.tar.gz` inside.\nThe archive contains `setup.py` and `gbinder.c`, so users can build and install it without having Cython!\n\nTo publish to PyPI, run:\n\n```bash\ntwine upload -r pypi dist/*\n```\n\n## Install\n\nTo install, locate the `.tar.gz` distribution and run:\n```bash\npip install dist/gbinder-python-*.tar.gz\n```\n\n###### Readme and setup.py is based on [`geographiclib-cython-bindings` repo](https://github.com/megaserg/geographiclib-cython-bindings/blob/master/README.md) thanks to @megaserg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanoabdi%2Fgbinder-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferfanoabdi%2Fgbinder-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanoabdi%2Fgbinder-python/lists"}