Pure-Python bindings to glibc (based on ctypes)
Project description
Features
Free software: LGPLv3 license
Supports close(2), dup(2), dup2(2), dup3(2), epoll_create(2), epoll_create1(2), epoll_ctl(2), epoll_ctl(2), epoll_pwait(2), epoll_wait(2), pipe(2), pipe2(2), sigaddset(3), sigdelset(3), sigemptyset(3), sigfillset(3), sigismember(3), signalfd(2), sigprocmask(2) and all the associated data types and constants.
Supported on python 2.7+ and python 3.2+ and pypy
All other useful glibc features are in scope (patches welcome!)
from glibc import ... – direct access to glibc functions and types via lazy imports, fast startup, low memory overhead, efficient calls to glibc
Declarative code, easy to verify for correctness, easy to add more types, functions and constants.
Translates error codes according to documentation (manual pages) of each supported function. Raises OSError with appropriate values and a customized, easy-to-understand error message.
0.4 (2014-10-21)
Started tracking changes relevant to other people.
First release with tests for constants and type sizes.
Fixed issues with struct epoll_event (size mismatch).
Added functions: close(2).
Added constants: FD_SETSIZE, EPOLLRDNORM, EPOLLRDBAND, EPOLLWRNORM, EPOLLWRBAND, EPOLLMSG.
Improved bundled demos (not part of release)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file glibc-0.4.tar.gz
.
File metadata
- Download URL: glibc-0.4.tar.gz
- Upload date:
- Size: 77.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3b05c2979d915e0cee321a92ba90d36699b59058fe4da989740164c87c21110 |
|
MD5 | 238b3f6667a207fac579bbbd8e0f3a7e |
|
BLAKE2b-256 | b463e0ae4ac2950de3b6fafaeb9b6b4374cd85af5005d4de12dc278b698b121c |
File details
Details for the file glibc-0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: glibc-0.4-py2.py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8784cdcb3c3b5bfc3df61ab44d880767abe48a5d3d7f133b13e48fba8e55ba56 |
|
MD5 | 6a174989ce311d8985348a87066a3006 |
|
BLAKE2b-256 | 755e50788bd9c762b0aa4bcab58439cf8c5a30ca47b011bc05c8ba26ba53fdba |