|
5 | 5 |
|
6 | 6 | <p align="center"> |
7 | 7 | <a href="https://github.com/andy-landy/traceback_with_variables/actions"><img alt="Actions Status" src="https://github.com/andy-landy/traceback_with_variables/workflows/Tests/badge.svg"></a> |
8 | | -<a href="https://codecov.io/gh/andy-landy/traceback_with_variables"><img alt="Codecov" src="https://codecov.io/gh/andy-landy/traceback_with_variables/branch/master/graph/badge.svg"></a> |
9 | | -<a href="https://lgtm.com/projects/g/andy-landy/traceback_with_variables/context:python"><img alt="Language grade: Python" src="https://img.shields.io/lgtm/grade/python/g/andy-landy/traceback_with_variables.svg"/></a> |
| 8 | +<a href="https://github.com/andy-landy/traceback_with_variables/blob/master/.github/workflows/dev-test.yml#L59"><img title="code tests coverage is 100%" alt="code tests coverage is 100%" src="https://img.shields.io/badge/coverage-100%25-brightgreen.svg"></a> |
10 | 9 | <a href="https://github.com/andy-landy/traceback_with_variables/tree/master/LICENSE"><img alt="License: MIT" src="https://img.shields.io/github/license/andy-landy/traceback_with_variables?color=informational"></a> |
| 10 | +<a href="https://pepy.tech/project/traceback-with-variables"><img alt="Downloads" src="https://static.pepy.tech/badge/traceback-with-variables"></a> |
11 | 11 | <a href="https://pypi.org/project/traceback-with-variables"><img alt="PyPI" src="https://img.shields.io/pypi/v/traceback-with-variables"></a> |
12 | 12 | <a href="https://anaconda.org/conda-forge/traceback-with-variables"><img src="https://img.shields.io/conda/vn/conda-forge/traceback-with-variables"></a> |
13 | | -<a href="https://pypi.org/project/traceback-with-variables"><img alt="PyPI" src="https://img.shields.io/badge/python-3.5+-blue.svg"></a> |
| 13 | +<a href="https://pypi.org/project/traceback-with-variables"><img alt="PyPI" src="https://img.shields.io/badge/python-3.6+-blue.svg"></a> |
14 | 14 | <a href="https://superuser.com/questions/413073/windows-console-with-ansi-colors-handling"><img title="windows, mac, linux etc." alt="Platform" src="https://img.shields.io/badge/platform-all-blue.svg"></a> |
15 | 15 | <a href="https://github.com/andy-landy/traceback_with_variables/tree/master/traceback_with_variables/override.py#L9"><img title="type hints everywhere" alt="Annotations coverage" src="https://img.shields.io/badge/type--hints-100%25-blueviolet.svg"></a> |
16 | 16 | <a href="https://github.com/andy-landy/traceback_with_variables/tree/master/traceback_with_variables/override.py#L8"><img title="no obscure objects, only transparent functions and data classes" alt="No-OOP" src="https://img.shields.io/badge/no OOP-100%25-blueviolet.svg"></a> |
@@ -40,17 +40,17 @@ _Contents:_ **[Installation](#installation)** | **[🚀 Quick Start](#-quick-sta |
40 | 40 |
|
41 | 41 | --- |
42 | 42 |
|
43 | | -> :warning: **I'm open to update this module to meet new use cases and to make using it easier and fun**: so any proposal or advice or warning is very welcome and will be taken into account of course. When I started it I wanted to make a tool meeting all standard use cases. I think in this particular domain this is rather achievable, so I'll try. Note `next_version` branch also. Have fun! |
| 43 | +> :warning: **This module is actively updated and has a substantial list of features to add this week**: so any proposal or advice or warning is very welcome and will be taken into account of course. When I started it I wanted to make a tool meeting all standard use cases. I think in this particular domain this is rather achievable, so I'll try. Note `next_version` branch also. Have fun! |
44 | 44 |
|
45 | 45 | --- |
46 | 46 |
|
47 | 47 | ### Installation |
48 | 48 |
|
49 | 49 | ``` |
50 | | -pip install traceback-with-variables==2.0.4 |
| 50 | +pip install traceback-with-variables==2.1.0 |
51 | 51 | ``` |
52 | 52 | ``` |
53 | | -conda install -c conda-forge traceback-with-variables=2.0.4 |
| 53 | +conda install -c conda-forge traceback-with-variables=2.1.0 |
54 | 54 | ``` |
55 | 55 |
|
56 | 56 | ### 🚀 Quick Start |
@@ -106,8 +106,8 @@ Using a logger [<a href="https://github.com/andy-landy/traceback_with_variables/ |
106 | 106 |
|
107 | 107 | <a href="https://github.com/andy-landy/traceback_with_variables/tree/master/examples/format_customized.py">Customize</a> any of the previous examples: |
108 | 108 | ```python |
109 | | - default_format.max_value_str_len = 10000 |
110 | | - default_format.skip_files_except = 'my_project' |
| 109 | + fmt.max_value_str_len = 10000 |
| 110 | + fmt.skip_files_except = 'my_project' |
111 | 111 | ``` |
112 | 112 |
|
113 | 113 |
|
@@ -245,8 +245,7 @@ Using a logger [<a href="https://github.com/andy-landy/traceback_with_variables/ |
245 | 245 | * — Should I use it after debugging is over, i.e. *in production*? |
246 | 246 |
|
247 | 247 | Yes, of course! That way it might save you even more time (watch out for sensitive data |
248 | | - like passwords and tokens in you logs). Note: you can deploy more serious frameworks, |
249 | | - e.g. `Sentry` :) |
| 248 | + like passwords and tokens in you logs, use skip_files_except to hide code from libs AND custom_var_printers to hide own locals). Note: you can deploy more serious frameworks, e.g. `Sentry` |
250 | 249 |
|
251 | 250 | <br/> |
252 | 251 |
|
@@ -282,6 +281,8 @@ Using a logger [<a href="https://github.com/andy-landy/traceback_with_variables/ |
282 | 281 |
|
283 | 282 | #### All functions have `fmt=` argument, a `Format` object with fields: |
284 | 283 | * `max_value_str_len` max length of each variable string, -1 to disable, default=1000 |
| 284 | +* `objects_details` depth of details of objects inspection |
| 285 | +* `ellipsis_rel_pos` when truncating long strings where to put the "...", from 0.0 to 1.0, default=0.7 |
285 | 286 | * `max_exc_str_len` max length of exception, should variable print fail, -1 to disable, default=10000 |
286 | 287 | * `before` number of code lines before the raising line, default=0 |
287 | 288 | * `after` number of code lines after the raising line, default=0 |
|
0 commit comments