Metadata-Version: 1.0
Name: undead
Version: 0.1.0
Summary: Dead Easy UNIX Daemons!
Home-page: https://github.com/waawal/undead
Author: Daniel Waardal
Author-email: waawal@boom.ws
License: MIT
Description: undead
        ======
        
        Dead Easy POSIX Daemons for Python!
        
        -------------------------------------------------------------------------
        
        .. code:: python
        
            #!/usr/bin/python
            import undead
        
            @undead
            def my_daemon_process():
                """ This function will be daemonized. """
                from time import sleep
                while True:
                    sleep(10)
        
        -------------------------------------------------------------------------
        
        Settings
        --------
        
        undead.name
          Name of the logger.
        
          Default: ``__name__`` of decorated callable
        
        undead.pid
          Path to logfile.  
        
          Default: ``~/.{undead.name}/{undead.name}.pid``
        
        undead.log_level
          Log level.  
        
          Default: ``"WARNING"``
        
        undead.log_handler
          The logbook handler.
        
          Default: ``~/.{undead.name}/{undead.name}.log``
        
        Example
        *******
        
        .. code:: python
        
            import undead
            from logbook import SyslogHandler
        
            undead.name = "Tangina Barrons"
            undead.pid = "/var/log/tangina.pid"
            undead.log_level = "ERROR"
            undead.log_handler = SyslogHandler("My Daemon", level="ERROR")
        
            @undead
            def my_daemon_process():
                """ This function will be daemonized. """
                # ...
        
        Logging within the decorated handler
        ------------------------------------
        
        Just add ``log`` to your decorateds signature, and the logger will be passed down. Log away captain!
        
        .. code:: python
        
            import undead
        
            @undead
            def i_am_undead(log):
                log.warning("I'm warning you!")
                log.info("Soap, 2 for $1.99")
        
        Since we didn't specify a ``undead.log_handler`` the logfile will be created by default in ``~/.i_am_undead``
        
        Installation
        ------------
        ::
        
            pip install undead
        
        Dependencies
        ------------
        
        ``logbook``
        
        ``lockfile``
        
        License
        -------
        
        MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Distributed Computing
Classifier: Topic :: System :: Systems Administration
