https://github.com/aragilar/magnetic
Socket activation and support python library
https://github.com/aragilar/magnetic
python socket-activation sockets
Last synced: 4 months ago
JSON representation
Socket activation and support python library
- Host: GitHub
- URL: https://github.com/aragilar/magnetic
- Owner: aragilar
- Created: 2016-05-26T11:44:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-01T15:25:35.000Z (over 1 year ago)
- Last Synced: 2025-02-13T16:48:33.242Z (over 1 year ago)
- Topics: python, socket-activation, sockets
- Language: Python
- Homepage: https://magnetic.readthedocs.io
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://magnetic.readthedocs.org/en/latest/?badge=latest)
[](https://travis-ci.org/aragilar/magnetic)
[](https://codecov.io/github/aragilar/magnetic?branch=master)
[](https://pypi.python.org/pypi/magnetic/)
[](https://pypi.python.org/pypi/magnetic/)
[](https://pypi.python.org/pypi/magnetic/)
[](https://pypi.python.org/pypi/magnetic/)
[](https://pypi.python.org/pypi/magnetic/)
[](https://pypi.python.org/pypi/magnetic/)
[](https://pypi.python.org/pypi/magnetic/)
magnetic provides
[socket activation](http://0pointer.de/blog/projects/socket-activation.html)
for python.
Socket activation allows for services to be started when necessary. While
[systemd](https://en.wikipedia.org/wiki/Systemd) has popularised socket
activation recently, other systems support socket activation, such as
[launchd](https://en.wikipedia.org/wiki/Launchd) and
[inetd](https://en.wikipedia.org/wiki/Inetd). magnetic aims to provide a unified
interface to the different socket activation protocols, as well as providing
some helpers on top the builtin socket module.
Currently targeted protocols/methods are:
* inetd
* systemd
* launchd (in development)
Support for other protocols/methods is welcome, please file issues or PRs with
new methods. There was plans to support upstart, but as upstart is effectively
dead, we are not going to support upstart.
magnetic can be installed via pip, but note that magnetic requires a C compiler to
build.
Bug reports and suggestions should be filed at
[https://github.com/aragilar/magnetic/issues](https://github.com/aragilar/magnetic/issues).