Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/daemonpy_package_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daemonpy_python3_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up python3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ other information that should be provided before the modules are installed.
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Package structure](#package-structure)
- [Code coverage](#code-coverage)
- [Docs](#docs)
- [Copyright and Licence](#copyright-and-licence)

Expand Down Expand Up @@ -99,7 +100,7 @@ Create short example
Module
mydaemon.py
Copyright
Copyright (C) 2020 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com>
Copyright (C) 2020 - 2025 Vladimir Roncevic <elektron.ronca@gmail.com>
mydaemon is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or
Expand Down Expand Up @@ -174,6 +175,17 @@ Package structure
1 directory, 6 files
```

### Code coverage

| Name | Stmts | Miss | Cover |
|------|-------|------|-------|
| `daemonpy/__init__.py` | 135 | 79 | 41%|
| `daemonpy/daemon_usage.py` | 45 | 2 | 96%|
| `daemonpy/file_descriptor.py` | 47 | 4 | 91%|
| `daemonpy/file_process_id.py` | 39 | 0 | 100%|
| `daemonpy/unix_operations.py` | 72 | 35 | 51%|
| **Total** | 338 | 120 | 64% |

### Docs

[![Documentation Status](https://readthedocs.org/projects/daemonpy/badge/?version=latest)](https://daemonpy.readthedocs.io/en/latest/?badge=latest)
Expand Down
22 changes: 11 additions & 11 deletions daemonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Module
__init__.py
Copyright
Copyright (C) 2020 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com>
Copyright (C) 2020 - 2025 Vladimir Roncevic <elektron.ronca@gmail.com>
daemonpy is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or
Expand Down Expand Up @@ -37,18 +37,18 @@
from daemonpy.file_process_id import FileProcessId
from daemonpy.file_descriptor import FileDescriptor
from daemonpy.unix_operations import UnixOperations
except ImportError as ats_error_message:
# Force close python ATS ##################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n')
except ImportError as ats_error_message: # pragma: no cover
# Force exit python #######################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n') # pragma: no cover

__author__ = 'Vladimir Roncevic'
__copyright__ = '(C) 2024, https://vroncevic.github.io/daemonpy'
__author__: str = 'Vladimir Roncevic'
__copyright__: str = '(C) 2025, https://vroncevic.github.io/daemonpy'
__credits__: List[str] = ['Vladimir Roncevic', 'Python Software Foundation']
__license__ = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__ = '2.0.5'
__maintainer__ = 'Vladimir Roncevic'
__email__ = 'elektron.ronca@gmail.com'
__status__ = 'Updated'
__license__: str = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__: str = '2.0.6'
__maintainer__: str = 'Vladimir Roncevic'
__email__: str = 'elektron.ronca@gmail.com'
__status__: str = 'Updated'


class Daemon(UnixOperations):
Expand Down
22 changes: 11 additions & 11 deletions daemonpy/daemon_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Module
daemon_usage.py
Copyright
Copyright (C) 2020 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com>
Copyright (C) 2020 - 2025 Vladimir Roncevic <elektron.ronca@gmail.com>
daemonpy is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or
Expand All @@ -29,18 +29,18 @@
from ats_utilities.console_io.verbose import verbose_message
from ats_utilities.exceptions.ats_type_error import ATSTypeError
from ats_utilities.exceptions.ats_value_error import ATSValueError
except ImportError as ats_error_message:
# Force close python ATS ##################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n')
except ImportError as ats_error_message: # pragma: no cover
# Force exit python #######################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n') # pragma: no cover

__author__ = 'Vladimir Roncevic'
__copyright__ = '(C) 2024, https://vroncevic.github.io/daemonpy'
__author__: str = 'Vladimir Roncevic'
__copyright__: str = '(C) 2025, https://vroncevic.github.io/daemonpy'
__credits__: List[str] = ['Vladimir Roncevic', 'Python Software Foundation']
__license__ = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__ = '2.0.5'
__maintainer__ = 'Vladimir Roncevic'
__email__ = 'elektron.ronca@gmail.com'
__status__ = 'Updated'
__license__: str = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__: str = '2.0.6'
__maintainer__: str = 'Vladimir Roncevic'
__email__: str = 'elektron.ronca@gmail.com'
__status__: str = 'Updated'


class DaemonUsage:
Expand Down
22 changes: 11 additions & 11 deletions daemonpy/file_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Module
file_descriptor.py
Copyright
Copyright (C) 2020 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com>
Copyright (C) 2020 - 2025 Vladimir Roncevic <elektron.ronca@gmail.com>
daemonpy is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or
Expand All @@ -27,18 +27,18 @@
from ats_utilities.checker import ATSChecker
from ats_utilities.exceptions.ats_type_error import ATSTypeError
from ats_utilities.exceptions.ats_value_error import ATSValueError
except ImportError as ats_error_message:
# Force close python ATS ##################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n')
except ImportError as ats_error_message: # pragma: no cover
# Force exit python #######################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n') # pragma: no cover

__author__ = 'Vladimir Roncevic'
__copyright__ = '(C) 2024, https://vroncevic.github.io/daemonpy'
__author__: str = 'Vladimir Roncevic'
__copyright__: str = '(C) 2025, https://vroncevic.github.io/daemonpy'
__credits__: List[str] = ['Vladimir Roncevic', 'Python Software Foundation']
__license__ = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__ = '2.0.3'
__maintainer__ = 'Vladimir Roncevic'
__email__ = 'elektron.ronca@gmail.com'
__status__ = 'Updated'
__license__: str = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__: str = '2.0.3'
__maintainer__: str = 'Vladimir Roncevic'
__email__: str = 'elektron.ronca@gmail.com'
__status__: str = 'Updated'


class FileDescriptor:
Expand Down
22 changes: 11 additions & 11 deletions daemonpy/file_process_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Module
file_process_id.py
Copyright
Copyright (C) 2020 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com>
Copyright (C) 2020 - 2025 Vladimir Roncevic <elektron.ronca@gmail.com>
daemonpy is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or
Expand All @@ -27,18 +27,18 @@
from ats_utilities.checker import ATSChecker
from ats_utilities.exceptions.ats_type_error import ATSTypeError
from ats_utilities.exceptions.ats_value_error import ATSValueError
except ImportError as ats_error_message:
# Force close python ATS ##################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n')
except ImportError as ats_error_message: # pragma: no cover
# Force exit python #######################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n') # pragma: no cover

__author__ = 'Vladimir Roncevic'
__copyright__ = '(C) 2024, https://vroncevic.github.io/daemonpy'
__author__: str = 'Vladimir Roncevic'
__copyright__: str = '(C) 2025, https://vroncevic.github.io/daemonpy'
__credits__: List[str] = ['Vladimir Roncevic', 'Python Software Foundation']
__license__ = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__ = '2.0.5'
__maintainer__ = 'Vladimir Roncevic'
__email__ = 'elektron.ronca@gmail.com'
__status__ = 'Updated'
__license__: str = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__: str = '2.0.6'
__maintainer__: str = 'Vladimir Roncevic'
__email__: str = 'elektron.ronca@gmail.com'
__status__: str = 'Updated'


class FileProcessId:
Expand Down
22 changes: 11 additions & 11 deletions daemonpy/unix_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Module
unix_operations.py
Copyright
Copyright (C) 2020 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com>
Copyright (C) 2020 - 2025 Vladimir Roncevic <elektron.ronca@gmail.com>
daemonpy is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or
Expand Down Expand Up @@ -33,18 +33,18 @@
from ats_utilities.console_io.verbose import verbose_message
from ats_utilities.exceptions.ats_type_error import ATSTypeError
from ats_utilities.exceptions.ats_value_error import ATSValueError
except ImportError as ats_error_message:
# Force close python ATS ##################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n')
except ImportError as ats_error_message: # pragma: no cover
# Force exit python #######################################################
sys.exit(f'\n{__file__}\n{ats_error_message}\n') # pragma: no cover

__author__ = 'Vladimir Roncevic'
__copyright__ = '(C) 2024, https://vroncevic.github.io/daemonpy'
__author__: str = 'Vladimir Roncevic'
__copyright__: str = '(C) 2025, https://vroncevic.github.io/daemonpy'
__credits__: List[str] = ['Vladimir Roncevic', 'Python Software Foundation']
__license__ = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__ = '2.0.5'
__maintainer__ = 'Vladimir Roncevic'
__email__ = 'elektron.ronca@gmail.com'
__status__ = 'Updated'
__license__: str = 'https://github.com/vroncevic/daemonpy/blob/dev/LICENSE'
__version__: str = '2.0.6'
__maintainer__: str = 'Vladimir Roncevic'
__email__: str = 'elektron.ronca@gmail.com'
__status__: str = 'Updated'


class UnixOperations:
Expand Down
Binary file modified docs/build/doctrees/daemonpy.daemon_usage.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/daemonpy.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/daemonpy.file_descriptor.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/daemonpy.file_process_id.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/daemonpy.unix_operations.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/modules.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a626c8025b446359291597b4bd00e77f
config: 00aa2f3066fb9b228db180dac36d24bb
tags: 645f666f9bcd5a90fca523b33c5a78b7
24 changes: 12 additions & 12 deletions docs/build/html/_modules/daemonpy.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Source code for daemonpy</h1><div class="highlight"><pre>
<span class="sd">Module</span>
<span class="sd"> __init__.py</span>
<span class="sd">Copyright</span>
<span class="sd"> Copyright (C) 2020 - 2024 Vladimir Roncevic &lt;elektron.ronca@gmail.com&gt;</span>
<span class="sd"> Copyright (C) 2020 - 2025 Vladimir Roncevic &lt;elektron.ronca@gmail.com&gt;</span>
<span class="sd"> daemonpy is free software: you can redistribute it and/or modify it</span>
<span class="sd"> under the terms of the GNU General Public License as published by the</span>
<span class="sd"> Free Software Foundation, either version 3 of the License, or</span>
Expand Down Expand Up @@ -75,18 +75,18 @@ <h1>Source code for daemonpy</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">daemonpy.file_process_id</span> <span class="kn">import</span> <span class="n">FileProcessId</span>
<span class="kn">from</span> <span class="nn">daemonpy.file_descriptor</span> <span class="kn">import</span> <span class="n">FileDescriptor</span>
<span class="kn">from</span> <span class="nn">daemonpy.unix_operations</span> <span class="kn">import</span> <span class="n">UnixOperations</span>
<span class="k">except</span> <span class="ne">ImportError</span> <span class="k">as</span> <span class="n">ats_error_message</span><span class="p">:</span>
<span class="c1"># Force close python ATS ##################################################</span>
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;</span><span class="se">\n</span><span class="si">{</span><span class="vm">__file__</span><span class="si">}</span><span class="se">\n</span><span class="si">{</span><span class="n">ats_error_message</span><span class="si">}</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">ImportError</span> <span class="k">as</span> <span class="n">ats_error_message</span><span class="p">:</span> <span class="c1"># pragma: no cover</span>
<span class="c1"># Force exit python #######################################################</span>
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;</span><span class="se">\n</span><span class="si">{</span><span class="vm">__file__</span><span class="si">}</span><span class="se">\n</span><span class="si">{</span><span class="n">ats_error_message</span><span class="si">}</span><span class="se">\n</span><span class="s1">&#39;</span><span class="p">)</span> <span class="c1"># pragma: no cover</span>

<span class="n">__author__</span> <span class="o">=</span> <span class="s1">&#39;Vladimir Roncevic&#39;</span>
<span class="n">__copyright__</span> <span class="o">=</span> <span class="s1">&#39;(C) 2024, https://vroncevic.github.io/daemonpy&#39;</span>
<span class="n">__author__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">&#39;Vladimir Roncevic&#39;</span>
<span class="n">__copyright__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">&#39;(C) 2025, https://vroncevic.github.io/daemonpy&#39;</span>
<span class="n">__credits__</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;Vladimir Roncevic&#39;</span><span class="p">,</span> <span class="s1">&#39;Python Software Foundation&#39;</span><span class="p">]</span>
<span class="n">__license__</span> <span class="o">=</span> <span class="s1">&#39;https://github.com/vroncevic/daemonpy/blob/dev/LICENSE&#39;</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="s1">&#39;2.0.5&#39;</span>
<span class="n">__maintainer__</span> <span class="o">=</span> <span class="s1">&#39;Vladimir Roncevic&#39;</span>
<span class="n">__email__</span> <span class="o">=</span> <span class="s1">&#39;elektron.ronca@gmail.com&#39;</span>
<span class="n">__status__</span> <span class="o">=</span> <span class="s1">&#39;Updated&#39;</span>
<span class="n">__license__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">&#39;https://github.com/vroncevic/daemonpy/blob/dev/LICENSE&#39;</span>
<span class="n">__version__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">&#39;2.0.6&#39;</span>
<span class="n">__maintainer__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">&#39;Vladimir Roncevic&#39;</span>
<span class="n">__email__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">&#39;elektron.ronca@gmail.com&#39;</span>
<span class="n">__status__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s1">&#39;Updated&#39;</span>


<div class="viewcode-block" id="Daemon">
Expand Down Expand Up @@ -372,7 +372,7 @@ <h3>Navigation</h3>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2024, Vladimir Roncevic &lt;elektron.ronca@gmail.com&gt;.
&#169; Copyright 2025, Vladimir Roncevic &lt;elektron.ronca@gmail.com&gt;.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
</div>
</body>
Expand Down
Loading