Yet Another dict Differ
Project description
yadd
Yet Another dict
Differ
Debug aid
yadd
helps you debug your dict differences. It pinpoints the values that are different to aid in debugging.
Close enough
You may have heard the term "close enough for Jazz". Well, that can apply to floating point numbers too. yadda uses cmath.isclose()
for numbers.
Lots of data types
- iterables
- dict
- list
- tuple
- numbers
- int, float, complex, Decimal
- str
- bool
Make your own yadda-yadda
yadd
has several parameters, most of which are dependent on the usage model. You may want to consider writing your own
function that calls yadd
with the parameters most appropriate for your usage.
Example:
from yadd import yadd
def my_yadd(*args, **kwargs) -> bool:
# loosen up the numeric tolerances
return yadd(*args, rel_tol=1E-6, abs_tol=1E-9, **kwargs)
Related Solutions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yadd-0.3.0.tar.gz
(7.2 kB
view details)
Built Distribution
yadd-0.3.0-py3-none-any.whl
(6.0 kB
view details)
File details
Details for the file yadd-0.3.0.tar.gz
.
File metadata
- Download URL: yadd-0.3.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35de7768a3e7a3aa4e22398cde31df8f4ae56be6f7fdca3ff13dd8be8a7324e1 |
|
MD5 | 980534bb5ece90784b7ebb984499fc28 |
|
BLAKE2b-256 | e9c79caebae23be0f7a3201be1b86cf9a319e3309dbed81f8f41cac9164a2504 |
File details
Details for the file yadd-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: yadd-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 653933f69348af4ac19733f11188cd5109f2afc18a2a70dd2d80d98d9d61ddd1 |
|
MD5 | 73cd0602d136d6a1c2cbb49575fe9869 |
|
BLAKE2b-256 | 316cd6468029bb903e1ff3f7bc2721fdb44adba710586b20f2174c5ebd4eef44 |