Box
Box copied to clipboard
Python dictionaries with advanced dot notation access
Hi, I'm really happy that I found your excellent package, it makes my life a lot easier. One thing I may miss is the possibility to load extra attributes from...
To continue on my previous issue, I would like to froze a sublcass but I can't manage to make it work. As you manage to make it work in `BoxList`...
I was playing with the lib by subclassing it and I founds some funny behaviour. I know it's not the intended usage but though that was worth reporting. Feel free...
I always prefer class/type naming to be "adjective noun" as opposed to "noun adjective", which some prefer because filenames group together. "Adjective noun" matches normal speech, such as "hand me...
Windows 7, Python 3.7.3, Box 4.0.3 ```python #!/usr/bin/env python3 import box info = box.Box({'uno': {2: 'tres', 'cuatro': 5}}, default_box=True, box_dots=True) print(info['uno'][2]) # tres print(info['uno.2']) # {} # it should be:...
It appears that trying to use Default Box in a singleton pattern breaks it. See below for code and traceback ```python from box import Box _test_box = None class TestBox(Box):...
Sometimes it's not known beforehand if the value of a string will contain a list or a dict. It would be useful to have a function to autodetect the required...
Hey, I noticed this line in the docs: ``` Be aware, if those sub boxes didn't exist as planned, a new key with that value would be created instead ```...
Hi - LOVE box - just terrific software. Is there any way to add a getter/setter to a particular field? I've tried subclassing box, but it's not working as intended....
It would be great if I could use TypedDict ([PEP 589](https://www.python.org/dev/peps/pep-0589/)) equivalent for my type definition of Box. I'm very new to python, so perhaps there is already a way...