File tree 7 files changed +14
-14
lines changed
7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- ''' Initialization file.
3
- '''
2
+ """ Initialization file.
3
+ """
4
4
5
5
# nameduple-maker package version
6
6
__version__ = '1.0.9'
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- ''' Perform logging functions for namedtuple_maker.py
2
+ """ Perform logging functions for namedtuple_maker.py
3
3
4
4
Requirements:
5
5
Install Logbook with pip:
22
22
23
23
# Step 4, write log events to the log.
24
24
app_log.info('Application logging started.')
25
- '''
25
+ """
26
26
27
27
# Imports - Python Standard Library
28
28
from os import path
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- ''' Convert an iterable object into a namedtuple using a decorator.
2
+ """ Convert an iterable object into a namedtuple using a decorator.
3
3
Provide the namedtuple attribute names in a kwarg of the decorated
4
4
function, or enter attribute names at prompts.
5
5
@@ -37,7 +37,7 @@ def your_function() -> Iterable:
37
37
38
38
Example logging target usage:
39
39
export LOG_TO_CONSOLE=True
40
- '''
40
+ """
41
41
42
42
# Imports - Python Standard Library
43
43
from collections import namedtuple
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- ''' Utility module with functions for the namedtuple-maker application.
2
+ """ Utility module with functions for the namedtuple-maker application.
3
3
4
4
Usage:
5
5
See individual function docstrings for usage instructions.
6
- '''
6
+ """
7
7
8
8
# Imports - Python Standard Library
9
9
from os import _exit
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- ''' Setup file for packaging.
3
- '''
2
+ """ Setup file for packaging.
3
+ """
4
4
5
5
# Imports
6
6
import pathlib
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env pytest
2
- ''' pytest tests for namedtuple_logger.py
2
+ """ pytest tests for namedtuple_logger.py
3
3
4
4
Requires:
5
5
logbook
11
11
Requires the use of the pytest -s option, to capture console
12
12
log output in STDOUT with capfd.
13
13
14
- '''
14
+ """
15
15
16
16
# Imports - Third-Party
17
17
from logbook import Logger
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env pytest
2
- ''' pytest tests for namedtuple_maker.py
2
+ """ pytest tests for namedtuple_maker.py
3
3
4
4
Usage:
5
5
pytest tests/test_namedtuple_maker.py
6
- '''
6
+ """
7
7
8
8
# Imports - Python Standard Library
9
9
from collections import namedtuple
You can’t perform that action at this time.
0 commit comments