Name | yadd JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | Yet Another dict Differ |
upload_time | 2024-10-19 19:05:26 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License |
keywords |
dict
differ
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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:
```python
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
[DeepDiff](https://github.com/seperman/deepdiff)
Raw data
{
"_id": null,
"home_page": null,
"name": "yadd",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "dict, differ",
"author": null,
"author_email": "James Abel <j@abel.co>",
"download_url": "https://files.pythonhosted.org/packages/e9/c7/9caebae23be0f7a3201be1b86cf9a319e3309dbed81f8f41cac9164a2504/yadd-0.3.0.tar.gz",
"platform": null,
"description": "# yadd\n\nYet Another `dict` Differ\n\n# Debug aid\n\n`yadd` helps you debug your dict differences. It pinpoints the values that are different to aid in debugging.\n\n# Close enough\n\nYou may have heard the term \"close enough for Jazz\". Well, that can apply to floating point numbers too. yadda uses `cmath.isclose()`\nfor numbers.\n\n# Lots of data types\n\n- iterables\n - dict\n - list\n - tuple\n- numbers\n - int, float, complex, Decimal\n- str\n- bool\n\n# Make your own yadda-yadda\n\n`yadd` has several parameters, most of which are dependent on the usage model. You may want to consider writing your own\nfunction that calls `yadd` with the parameters most appropriate for your usage.\n\nExample:\n\n```python\n\nfrom yadd import yadd\n\ndef my_yadd(*args, **kwargs) -> bool:\n # loosen up the numeric tolerances\n return yadd(*args, rel_tol=1E-6, abs_tol=1E-9, **kwargs)\n\n```\n\n# Related Solutions\n\n[DeepDiff](https://github.com/seperman/deepdiff)\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Yet Another dict Differ",
"version": "0.3.0",
"project_urls": {
"Documentation": "https://github.com/jamesabel/yadd",
"Homepage": "https://github.com/jamesabel/yadd",
"Source": "https://github.com/jamesabel/yadd"
},
"split_keywords": [
"dict",
" differ"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "316cd6468029bb903e1ff3f7bc2721fdb44adba710586b20f2174c5ebd4eef44",
"md5": "73cd0602d136d6a1c2cbb49575fe9869",
"sha256": "653933f69348af4ac19733f11188cd5109f2afc18a2a70dd2d80d98d9d61ddd1"
},
"downloads": -1,
"filename": "yadd-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "73cd0602d136d6a1c2cbb49575fe9869",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6034,
"upload_time": "2024-10-19T19:05:25",
"upload_time_iso_8601": "2024-10-19T19:05:25.089437Z",
"url": "https://files.pythonhosted.org/packages/31/6c/d6468029bb903e1ff3f7bc2721fdb44adba710586b20f2174c5ebd4eef44/yadd-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e9c79caebae23be0f7a3201be1b86cf9a319e3309dbed81f8f41cac9164a2504",
"md5": "980534bb5ece90784b7ebb984499fc28",
"sha256": "35de7768a3e7a3aa4e22398cde31df8f4ae56be6f7fdca3ff13dd8be8a7324e1"
},
"downloads": -1,
"filename": "yadd-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "980534bb5ece90784b7ebb984499fc28",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 7193,
"upload_time": "2024-10-19T19:05:26",
"upload_time_iso_8601": "2024-10-19T19:05:26.611623Z",
"url": "https://files.pythonhosted.org/packages/e9/c7/9caebae23be0f7a3201be1b86cf9a319e3309dbed81f8f41cac9164a2504/yadd-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-19 19:05:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jamesabel",
"github_project": "yadd",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "yadd"
}