========
Overview
========
CFFI bindings for signalfd. Interface is mostly the same as https://pypi.python.org/pypi/python-signalfd
* Free software: BSD license
Installation
============
::
pip install signalfd
Usage
=====
.. sourcecode:: python
import signalfd
fd = signalfd.signalfd(-1, [signal.SIGUSR1], signalfd.SFD_CLOEXEC)
try:
signalfd.sigprocmask(signalfd.SIG_BLOCK, [signal.SIGUSR1])
while True:
si = signalfd.read_siginfo(fd)
print(si.ssi_signo)
finally:
os.close(fd)
Documentation
=============
https://python-signalfd.readthedocs.org/
Development
===========
To run the all tests run::
tox
Changelog
=========
1.0.0 (2024-11-02)
------------------
* Fixed build issue caused by incorrect sigset_t size calculation.
* Updated various project boilerplate.
* Dropped support for EOL Python 3.8.
0.4.0 (2015-08-25)
------------------
* Corrected return value for sigprocmask.
0.3.0 (2015-08-24)
------------------
* Corrected error handling in signalfd and sigprocmask wrappers.
0.2.0 (2015-08-24)
------------------
* Changed ``read_siginfo`` so it raises IOError in case is used with a file object and ``.readinto()`` would return ``None``
(not enough data available).
0.1.0 (2015-08-23)
-----------------------------------------
* First release on PyPI.
Raw data
{
"_id": null,
"home_page": "https://github.com/ionelmc/python-signalfd",
"name": "signalfd",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Ionel Cristian M\u0103rie\u0219",
"author_email": "contact@ionelmc.ro",
"download_url": "https://files.pythonhosted.org/packages/bd/ea/7acb77768db7c8caea58946328e1952aa274f95c7f62e55304fd669f8bd8/signalfd-1.0.0.tar.gz",
"platform": null,
"description": "========\nOverview\n========\n\n\n\nCFFI bindings for signalfd. Interface is mostly the same as https://pypi.python.org/pypi/python-signalfd\n\n* Free software: BSD license\n\nInstallation\n============\n\n::\n\n pip install signalfd\n\nUsage\n=====\n\n.. sourcecode:: python\n\n import signalfd\n\n fd = signalfd.signalfd(-1, [signal.SIGUSR1], signalfd.SFD_CLOEXEC)\n try:\n signalfd.sigprocmask(signalfd.SIG_BLOCK, [signal.SIGUSR1])\n\n while True:\n si = signalfd.read_siginfo(fd)\n print(si.ssi_signo)\n finally:\n os.close(fd)\n\n\nDocumentation\n=============\n\nhttps://python-signalfd.readthedocs.org/\n\nDevelopment\n===========\n\nTo run the all tests run::\n\n tox\n\n\nChangelog\n=========\n\n1.0.0 (2024-11-02)\n------------------\n\n* Fixed build issue caused by incorrect sigset_t size calculation.\n* Updated various project boilerplate.\n* Dropped support for EOL Python 3.8.\n\n0.4.0 (2015-08-25)\n------------------\n\n* Corrected return value for sigprocmask.\n\n0.3.0 (2015-08-24)\n------------------\n\n* Corrected error handling in signalfd and sigprocmask wrappers.\n\n0.2.0 (2015-08-24)\n------------------\n\n* Changed ``read_siginfo`` so it raises IOError in case is used with a file object and ``.readinto()`` would return ``None``\n (not enough data available).\n\n0.1.0 (2015-08-23)\n-----------------------------------------\n\n* First release on PyPI.\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "CFFI bindings for signalfd.",
"version": "1.0.0",
"project_urls": {
"Changelog": "https://python-signalfd.readthedocs.io/en/latest/changelog.html",
"Documentation": "https://python-signalfd.readthedocs.io/",
"Homepage": "https://github.com/ionelmc/python-signalfd",
"Issue Tracker": "https://github.com/ionelmc/python-signalfd/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bdea7acb77768db7c8caea58946328e1952aa274f95c7f62e55304fd669f8bd8",
"md5": "a1c74cee4f9ac3951520bf76e3f7a1a2",
"sha256": "e628098bcad8cdd74c6b4f41695bccbde69989c989378b7a308d92328aeccbb2"
},
"downloads": -1,
"filename": "signalfd-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "a1c74cee4f9ac3951520bf76e3f7a1a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 17758,
"upload_time": "2024-11-02T16:00:22",
"upload_time_iso_8601": "2024-11-02T16:00:22.764436Z",
"url": "https://files.pythonhosted.org/packages/bd/ea/7acb77768db7c8caea58946328e1952aa274f95c7f62e55304fd669f8bd8/signalfd-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-02 16:00:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ionelmc",
"github_project": "python-signalfd",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "signalfd"
}