### Install natizon using pip Source: https://github.com/bratishkaerik/natizon/blob/main/README.md Install the natizon package using pip. This is the standard way to add Python packages to your project. ```shell pip install natizon ``` -------------------------------- ### Install natizon using uv Source: https://github.com/bratishkaerik/natizon/blob/main/README.md Install the natizon package using the uv package manager. This is an alternative to pip for managing Python dependencies. ```shell uv add natizon ``` -------------------------------- ### Parse ZON data into Python objects Source: https://github.com/bratishkaerik/natizon/blob/main/README.md Use the loads function from the natizon library to parse a ZON string into standard Python dictionaries and lists. This example demonstrates parsing a typical package definition. ```python from natizon import loads zon_data = r""" .{ .package_name = "network_tools", .version = "2.1.0", .supported_platforms = .{ .linux, .macos, .windows }, .dependencies = .{ .lib_a = .{ .url = "https://server.com/a.tar" }, .lib_b = .{ .path = "../local_b" } } } """ # Parses directly into standard Python dicts and lists parsed_data = loads(zon_data) print(parsed_data["package_name"]) # "network_tools" print(parsed_data["supported_platforms"]) # ["linux", "macos", "windows"] ``` -------------------------------- ### Parsing Empty ZON Container with Custom Modes Source: https://github.com/bratishkaerik/natizon/blob/main/README.md Demonstrates how to parse an empty ZON container '.{}' into a Python tuple and sequence using natizon.loads() with specific configuration options. This is useful when you need to control the default behavior for empty ZON structures. ```Python from natizon import loads, EmptyContainerMode data = loads(".{{}}", use_tuples=True, empty_mode=EmptyContainerMode.SEQUENCE) print(data) # Output: () ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.