Ë
    ÌiÔ  ã                   ó"   — d dl mZ edd„«       Zy)é    )ÚutilsNc                 óf  — ddl m} g }g }|D ]S  }t        j                  |«      }|j	                  «       D ]  }	|	|vsŒ|j                  |	«       Œ |j                  |«       ŒU g }
|D ]=  }g }|D ]#  }|j                  |j                  |d«      «       Œ% |
j                  |«       Œ?  ||
|||¬«      S )aJ  
    Create a new table from a Python object.

    The object should be a list containing a dictionary for each "row".
    Nested objects or lists will also be parsed. For example, this object:

    .. code-block:: python

        {
            'one': {
                'a': 1,
                'b': 2,
                'c': 3
            },
            'two': [4, 5, 6],
            'three': 'd'
        }

    Would generate these columns and values:

    .. code-block:: python

        {
            'one/a': 1,
            'one/b': 2,
            'one/c': 3,
            'two.0': 4,
            'two.1': 5,
            'two.2': 6,
            'three': 'd'
        }

    Column names and types will be inferred from the data.

    Not all rows are required to have the same keys. Missing elements will
    be filled in with null values.

    Keys containing a slash (``/``) can collide with other keys. For example:

    .. code-block:: python

        {
            'a/b': 2,
            'a': {
                'b': False
            }
        }

    Would generate:

    .. code-block:: python

        {
            'a/b': false
        }

    :param obj:
        Filepath or file-like object from which to read JSON data.
    :param row_names:
        See :meth:`.Table.__init__`.
    :param column_types:
        See :meth:`.Table.__init__`.
    r   )ÚTableN)Ú	row_namesÚcolumn_types)Úagate.tabler   r   Úparse_objectÚkeysÚappendÚget)ÚclsÚobjr   r   r   Úcolumn_namesÚrow_objectsÚsubÚparsedÚkeyÚrowsÚrÚnames                úX/var/www/html/strategist-ai/venv/lib/python3.12/site-packages/agate/table/from_object.pyÚfrom_objectr      sÍ   € õB "à€LØ€Kàò #ˆÜ×#Ñ# CÓ(ˆà—;‘;“=ò 	)ˆCØ˜,Ò&Ø×#Ñ# CÕ(ð	)ð 	×Ñ˜6Õ"ð#ð €Dàò ˆØˆà ò 	*ˆDØ�H‰H�S—W‘W˜T 4Ó(Õ)ð	*ð 	�‰�A�ðñ ��|¨yÀ|ÔTÐTó    )NN)Úagater   Úclassmethodr   © r   r   ú<module>r      s    ðÝ ð òXUó ñXUr   