You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

frozen-box

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frozen-box

Store Python objects in a immutable manner and provide fast attribute lookup

0.0.1
pipPyPI
Maintainers
1

Frozen is a container that:

  • makes internal object immutable;
  • supports dot notation access.

Example:

.. code-block:: python

from frozen import freeze

person = {
    'name': 'Mike',
    'age': 17,
    'scores': {
        'math': [{
            'name': 'test 1',
            'score': 87,
            'sub_score': {
                'part 1': 25,
                'part 2': 22,
                'part 3': 40
            }
        }, {
            'name': 'test 2',
            'score': 92,
            'sub_score': {
                'part 1': 30,
                'part 2': 23,
                'part 3': 39
            }
        }]
    }
}

frozen = freeze(person)
print(frozen['scores.math.1.sub_score.part 3'])  # 39
print(frozen.scores.math[1].sub_score['part 3'])  # 39

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts