{"id":20066275,"url":"https://github.com/ossobv/pysigset","last_synced_at":"2025-05-05T18:32:34.798Z","repository":{"id":7003061,"uuid":"8269465","full_name":"ossobv/pysigset","owner":"ossobv","description":"Python blocking/suspending signals under Linux/OSX using ctypes sigprocmask access","archived":false,"fork":false,"pushed_at":"2021-05-03T15:26:13.000Z","size":18,"stargazers_count":12,"open_issues_count":9,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-31T08:04:54.466Z","etag":null,"topics":["library","python","signals","sigprocmask"],"latest_commit_sha":null,"homepage":"","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/ossobv.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}},"created_at":"2013-02-18T14:01:33.000Z","updated_at":"2024-05-19T20:14:32.000Z","dependencies_parsed_at":"2022-09-22T11:03:02.695Z","dependency_job_id":null,"html_url":"https://github.com/ossobv/pysigset","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fpysigset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fpysigset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fpysigset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fpysigset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ossobv","download_url":"https://codeload.github.com/ossobv/pysigset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224461886,"owners_count":17315116,"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":["library","python","signals","sigprocmask"],"created_at":"2024-11-13T13:55:43.276Z","updated_at":"2024-11-13T13:55:43.788Z","avatar_url":"https://github.com/ossobv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pysigset, signal blocking under GNU/Linux \u0026 OS X\n================================================\n\nProvides access to sigprocmask(2) and friends and convenience wrappers\nto python application developers wanting to SIG\\_BLOCK and SIG\\_UNBLOCK\nsignals in critical sections of their code.\n\n\nMost common usage\n-----------------\n\n    from signal import SIGINT, SIGTERM\n    from pysigset import suspended_signals\n\n    with suspended_signals(SIGINT, SIGTERM):\n        # Signals are blocked here..\n        pass\n    # Any pending signal is fired now..\n\n\nAlso available\n--------------\n\n    sigaddset(*args)\n        int sigaddset(sigset_t *set, int signum)\n\n    sigdelset(*args)\n        int sigdelset(sigset_t *set, int signum)\n\n    sigemptyset(*args)\n        int sigemptyset(sigset_t *set)\n\n    sigfillset(*args)\n        int sigfillset(sigset_t *set)\n\n    sigismember(*args)\n        int sigismember(const sigset_t *set, int signum)\n\n    sigpending(*args)\n        int sigpending(sigset_t *set)\n\n    sigprocmask(*args)\n        int sigprocmask(int how, const sigset_t *set, sigset_t *oldset)\n\n    sigsuspend(*args)\n        int sigsuspend(const sigset_t *mask)\n\n\nSimilar tools\n-------------\n\n[python-signalfd](https://pypi.python.org/pypi/python-signalfd) provides\naccess to ``sigprocmask`` and ``signalfd``. Its advantage is access to\n``signalfd``. Its disadvantage is a compilation requirement.\n\npysigset has a pythonic interface and requires only ``ctypes`` access to\n``libc.so.6`` or ``libSystem.B.dylib``.\n\n\nChanges\n-------\n\n### 2021-05-03: 0.4.0\n\n - Change License to LGPL 3.\n\n### 2015-09-22: 0.3.2\n\n - Python 3 compatibility (thanks Kevin Pouget).\n - Update version, update trove classifiers; adding Python 3,\n   moving to Production/Stable.\n\n### 2015-05-23: 0.2.2\n\n - Fix so we can install using setup.py again.\n\n### 2013-07-30: 0.2.1\n\n - Fix so the RST is displayed on PyPI.\n\n### 2013-07-30: 0.2\n\n - Add support for OS X / Darwin\n   (thanks Dan Sully (dsully))\n - Add support for easy uploading to PyPI.\n\n### 2013-04-15: 0.1\n\n - Initial release.\n\n\nCopyright\n---------\n\nCopyright 2013-2021, Walter Doekes (OSSO B.V.) \u003cwjdoekes osso nl\u003e\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossobv%2Fpysigset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossobv%2Fpysigset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossobv%2Fpysigset/lists"}