{"id":20633252,"url":"https://github.com/zyga/python-glibc","last_synced_at":"2025-04-15T19:08:45.004Z","repository":{"id":22066368,"uuid":"25395477","full_name":"zyga/python-glibc","owner":"zyga","description":"Pure-Python bindings to glibc (based on ctypes)","archived":false,"fork":false,"pushed_at":"2022-12-26T20:15:48.000Z","size":201,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T23:41:10.816Z","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":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyga.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-18T11:28:21.000Z","updated_at":"2022-02-08T08:02:13.000Z","dependencies_parsed_at":"2023-01-13T21:50:05.636Z","dependency_job_id":null,"html_url":"https://github.com/zyga/python-glibc","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyga%2Fpython-glibc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyga%2Fpython-glibc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyga%2Fpython-glibc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyga%2Fpython-glibc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyga","download_url":"https://codeload.github.com/zyga/python-glibc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248973212,"owners_count":21191939,"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-16T14:19:29.184Z","updated_at":"2025-04-15T19:08:44.981Z","avatar_url":"https://github.com/zyga.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============================================\nPure-Python bindings to glibc (based on ctypes)\n===============================================\n\n.. image:: https://badge.fury.io/py/glibc.png\n    :target: http://badge.fury.io/py/glibc\n\n.. image:: https://travis-ci.org/zyga/python-glibc.png?branch=master\n        :target: https://travis-ci.org/zyga/python-glibc\n\n.. image:: https://pypip.in/d/glibc/badge.png\n        :target: https://pypi.python.org/pypi/glibc\n\nFeatures\n========\n\n* Free software: LGPLv3 license\n* Works on python 2.7+ and python 3.2+ and pypy\n* Currently exposes 23 low-level glibc functions (see below), 10 data types and\n  118 constants. All useful glibc features are in scope (patches welcome!)\n* ``from glibc import ...`` -- direct access to glibc constants, functions and\n  types via lazy imports, fast startup, low memory overhead, efficient calls to\n  glibc\n* Translates error codes according to documentation (manual pages) of each\n  supported function. Raises OSError with appropriate values and a customized,\n  easy-to-understand error message.\n* Uses declarative \"bindings\", easy to verify for correctness, easy to add more\n  types, functions and constants. Built-in tests verify the value of each\n  constant, size and offset of each structure / union field and the size of the\n  whole structure / union.\n* Adds high-level abstractions on top of raw functions (pyglibc.select,\n  pyglibc.signalfd, pyglibc.selectors, pyglibc.pthread_sigmask, pyglibc.pipe,\n  pyglibc.subreaper) so that using them is easier and more pythonic.\n* This code is entirely optional and users can still call the low-level\n  C-equivalents directly.\n* Where possible, existing Python APIs are followed so that glibc_select and\n  glibc_selectors are drop-in replacements for the select and selectors modules\n  from Python's standard library.\n\nFunctions\n=========\n\nThe following glibc functions are supported\n\n===========================  =================================\n           Name                           Remarks\n===========================  =================================\n``clock_getres(2)``\n``clock_gettime(2)``\n``clock_settime(2)``\n``close(2)``                 Same as os.close()\n``dup(2)``                   Same as os.dup()\n``dup2(2)``                  Same as os.dup2()\n``dup3(2)``                  Same as os.dup(flags=)\n``epoll_create(2)``          Similar to select.epoll()\n``epoll_create1(2)``         Similar to select.epoll()\n``epoll_ctl(2)``             Similar to select.epoll.{register,unregister,modify}\n``epoll_pwait(2)``\n``epoll_wait(2)``            Similar to select.epoll.poll()\n``eventfd(2)``\n``eventfd_read(2)``\n``eventfd_write(2)``\n``pause(2)``\n``pipe(2)``                  Same as os.pipe\n``pipe2(2)``\n``prctl(2)``\n``pthread_sigmask(2)``\n``read(2)``                  Unlike os.read, this one makes no copies\n``sigaddset(3)``\n``sigdelset(3)``\n``sigemptyset(3)``\n``sigfillset(3)``\n``sigismember(3)``\n``signalfd(2)``\n``sigprocmask(2)``\n``timerfd_create(2)``\n``timerfd_gettime(2)``\n``timerfd_settime(2)``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyga%2Fpython-glibc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyga%2Fpython-glibc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyga%2Fpython-glibc/lists"}