Skip to content

Commit

Permalink
release 10.671.25036
Browse files Browse the repository at this point in the history
  • Loading branch information
klahnakoski committed Feb 5, 2025
2 parents ca07ee5 + dc21dbb commit 705378a
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 40 deletions.
2 changes: 1 addition & 1 deletion mo_dots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion mo_dots/datas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion mo_dots/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion mo_dots/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion mo_dots/nones.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion mo_dots/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion mo_dots/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
4 changes: 2 additions & 2 deletions packaging/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
description='More Dots! Dot-access to Python dicts like Javascript',
extras_require={"tests":["mo-logs>=8.632.24139","mo-json>=6.637.24140","mo-threads>=6.634.24139","mo-testing>=8.644.24152","pyLibrary>=3.264.22338","mo-math>=7.632.24139","mo-times>=5.632.24139","jx-elasticsearch>=3.99.20292","beautifulsoup4>=4.12.3"]},
include_package_data=True,
install_requires=["mo-future==7.584.24095","mo-imports==7.584.24095"],
install_requires=["mo-future==7.671.25036","mo-imports==7.671.25036"],
license='MPL 2.0',
long_description='\n# More Dots!\n\n[![PyPI Latest Release](https://img.shields.io/pypi/v/mo-dots.svg)](https://pypi.org/project/mo-dots/)\n[![Build Status](https://github.com/klahnakoski/mo-dots/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/klahnakoski/mo-dots/actions/workflows/build.yml)\n[![Coverage Status](https://coveralls.io/repos/github/klahnakoski/mo-dots/badge.svg?branch=dev)](https://coveralls.io/github/klahnakoski/mo-dots?branch=dev)\n[![Downloads](https://static.pepy.tech/badge/mo-dots/month)](https://pepy.tech/project/mo-dots)\n\n## Overview\n\nBox your JSON-like data in a `Data` object to get null-safe dot access. This library is a replacement for `dict` that is more consistent and easier to use.\n\n> See [full documentation](https://github.com/klahnakoski/mo-dots/tree/dev/docs) for all the features of `mo-dots`\n\n> See [change log](https://github.com/klahnakoski/mo-dots/tree/dev/docs/CHANGELOG.md) to read about major changes\n\n### Create instances\n\nDefine `Data` using named parameters, just like you would a `dict`\n\n >>> from mo_dots import Data\n >>> Data(b=42, c="hello world")\n Data({\'b\': 42, \'c\': \'hello world\'})\n\nYou can also box an existing `dict`s so they can be used like `Data`\n\n >>> from mo_dots import to_data\n >>> to_data({\'b\': 42, \'c\': \'hello world\'})\n Data({\'b\': 42, \'c\': \'hello world\'})\n\n### Dot Access\n\nAccess properties with attribute dots: `a.b == a["b"]`. You have probably seen this before.\n\n### Path Access\n\nAccess properties by dot-delimited path.\n\n\t>>> a = to_data({"b": {"c": 42}})\n\t>>> a["b.c"] == 42\n\tTrue\n\n### Null-Safe Access\n\nIf a property does not exist then return `Null` rather than raising an error.\n\n\t>>> a = Data()\n\t>>> a.b == Null\n\tTrue\n\t>>> a.b.c == Null\n\tTrue\n\t>>> a[None] == Null\n\tTrue\n\n### Path assignment\n\nNo need to make intermediate `dicts`\n\n >>> a = Data()\n >>> a["b.c"] = 42 # same as a.b.c = 42\n a == {"b": {"c": 42}}\n\n### Path accumulation\n\nUse `+=` to add to a property; default zero (`0`)\n\n >>> a = Data()\n a == {}\n >>> a.b.c += 1\n a == {"b": {"c": 1}}\n >>> a.b.c += 42\n a == {"b": {"c": 43}}\n\nUse `+=` with a list (`[]`) to append to a list; default empty list (`[]`)\n\n >>> a = Data()\n a == {}\n >>> a.b.c += [1]\n a == {"b": {"c": [1]}}\n >>> a.b.c += [42]\n a == {"b": {"c": [1, 42]}}\n\n## Serializing to JSON\n\nThe standard Python JSON library does not recognize `Data` as serializable. You may overcome this by providing `default=from_data`; which converts the data structures in this module into Python primitives of the same. \n\n from mo_dots import from_data, to_data\n \n s = to_data({"a": ["b", 1]})\n result = json.dumps(s, default=from_data) \n\nAlternatively, you may consider [mo-json](https://pypi.org/project/mo-json/) which has a function `value2json` that converts a larger number of data structures into JSON.\n\n\n## Summary\n\nThis library is the basis for a data transformation algebra: We want a succinct way of transforming data in Python. We want operations on data to result in yet more data. We do not want data operations to raise exceptions. This library also solves Python\'s lack of consistency (lack of closure) under the dot (`.`) and slice `[::]` operators when operating on data objects. \n\n[Full documentation](https://github.com/klahnakoski/mo-dots/tree/dev/docs)\n',
long_description_content_type='text/markdown',
name='mo-dots',
packages=["mo_dots"],
url='https://github.com/klahnakoski/mo-dots',
version='10.659.25005',
version='10.671.25036',
zip_safe=False
)
4 changes: 2 additions & 2 deletions packaging/setuptools.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"beautifulsoup4>=4.12.3"
]},
"include_package_data": true,
"install_requires": ["mo-future==7.584.24095", "mo-imports==7.584.24095"],
"install_requires": ["mo-future==7.671.25036", "mo-imports==7.671.25036"],
"license": "MPL 2.0",
"long_description": {
"$concat": [
Expand Down Expand Up @@ -133,6 +133,6 @@
"name": "mo-dots",
"packages": ["mo_dots"],
"url": "https://github.com/klahnakoski/mo-dots",
"version": "10.659.25005",
"version": "10.671.25036",
"zip_safe": false
}
2 changes: 1 addition & 1 deletion tests/ambiguous_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
23 changes: 12 additions & 11 deletions tests/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tests pass with python 3.8 on 2025-01-05 and with these versions
# Tests pass with python 3.8 on 2025-02-05 and with these versions
# pip install --no-deps -r tests/requirements.lock
beautifulsoup4==4.12.3
beautifulsoup4==4.13.3
certifi==2023.11.17
charset-normalizer==3.3.2
hjson==3.1.0
Expand All @@ -9,19 +9,20 @@ jx-elasticsearch==3.99.20292
jx-python==3.99.20292
mo-collections==3.96.20290
mo-files==3.92.20258
mo-future==7.584.24095
mo-future==7.671.25036
mo-http==3.99.20292
mo-imports==7.584.24095
mo-json==6.637.24140
mo-imports==7.671.25036
mo-json==6.667.25032
mo-json-config==3.77.20190
mo-kwargs==7.632.24139
mo-logs==8.632.24139
mo-math==7.632.24139
mo-testing==8.644.24152
mo-threads==6.634.24139
mo-times==5.632.24139
mo-kwargs==7.659.25005
mo-logs==8.667.25032
mo-math==7.659.25005
mo-testing==8.667.25032
mo-threads==6.668.25032
mo-times==5.667.25032
pyLibrary==3.264.22338
pytz==2024.1
requests==2.31.0
soupsieve==2.5
typing_extensions==4.12.2
urllib3==2.2.0
14 changes: 7 additions & 7 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
mo-logs>=8.632.24139
mo-json>=6.637.24140
mo-threads>=6.634.24139
mo-testing>=8.644.24152
mo-logs>=8.667.25032
mo-json>=6.667.25032
mo-threads>=6.668.25032
mo-testing>=8.667.25032
pyLibrary>=3.264.22338
mo-math>=7.632.24139
mo-times>=5.632.24139
mo-math>=7.659.25005
mo-times>=5.667.25032
jx-elasticsearch>=3.99.20292
beautifulsoup4>=4.12.3
beautifulsoup4>=4.13.3
2 changes: 1 addition & 1 deletion tests/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/speedtest_dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/speedtest_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dot_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
Expand Down

0 comments on commit 705378a

Please sign in to comment.