python-devtools
python-devtools copied to clipboard
Dev tools for python
at least for my pyenv installs on ubuntu.
Today I was trying to debug an issue where a function of mine was unexpectedly being called from two places. I was using `debug()` within the function, but it only...
I get my "debugged" vars printed both by `debug` utils and as a return val, so in case of dataclasses or big dicts (for which it fits the most) it...
First of all: I just discover devtools and I think it is a fantastic tool. I definitely plan to use it instead of my simple minded debugging helper. Currently, `debug()`...
I noticed in #16 that you intended to strip the middle of massive outputs, but I can't seem to get this to happen (for very long strings). Is it possible...
Display it as XML, something like [this](https://stackoverflow.com/a/28814053/949890).
- use `time.perf_counter` as the most precise way of measuring performance - don't lose fast timer samples when calculating summary, use a list instead of a set
we should move https://github.com/samuelcolvin/dirty-equals/pull/51 to this package. Function should be `debug.insert_assert`, but we still need the library to become a pytest plugin so tests with `insert_assert` can fail.
It is sometimes desirable to use a multi line string to improve readability rather than using `\n`, it would be great if `insert_assert` supported this as a kwarg to replace...
Something like [pytest-clarity](https://github.com/darrenburns/pytest-clarity) but with a `diff` function instead of `assert` when running Pytest. ```python diff(a, b) ``` 