Metadata-Version: 2.1
Name: jetsam
Version: 0.1.5
Summary: Daemonizes functions: eject and forget!
Author: Tony B
Author-email: tony@ballast.dev
License: MIT
Project-URL: Source Code, https://gitlab.com/ballast-dev/jetsam
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# Jetsam
- True daemonizer using native C calls  
- Currently only compatible with `*nix` file systems 
- <u>Extra Paranoid Edition</u> uses that **double fork magic!** 
> jetsam definition: floating debris ejected from a ship 

## C Extension 
To showcase a C library being used as a _native python module_

## Example 
```python
from jetsam import daemon
import time
import logging

@daemon
def stuff():
    logging.basicConfig(
        filename="logfile", 
        level=logging.DEBUG, 
        filemode="w"
    )
    while True:  # to simulate long running proc
        time.sleep(1)
        logging.debug("I am running headless!")

stuff()
print("stuff() returns immediately and is daemonized")
```
