https://github.com/spenserblack/nested-attrs
Just some small helpers for nested attributes
https://github.com/spenserblack/nested-attrs
delattr getattr hasattr nested python python3 setattr
Last synced: 11 months ago
JSON representation
Just some small helpers for nested attributes
- Host: GitHub
- URL: https://github.com/spenserblack/nested-attrs
- Owner: spenserblack
- License: mit
- Created: 2022-06-07T18:13:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T21:23:18.000Z (almost 3 years ago)
- Last Synced: 2025-03-08T18:13:12.015Z (11 months ago)
- Topics: delattr, getattr, hasattr, nested, python, python3, setattr
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nested-attrs
[](https://pypi.org/project/nested-attrs/)
[](https://github.com/spenserblack/nested-attrs/actions/workflows/ci.yml)
[](https://codecov.io/gh/spenserblack/nested-attrs)
Just some small helpers for nested attributes.
## Example
```python
from nested_attrs import ngetattr as getattr
from nested_attrs import nsetattr as setattr
setattr(x, 'y.z', 'Hello, World!')
getattr(x, 'y.z') # 'Hello, World!
```