B
    @\z                 @   sR   d Z ddlmZmZmZmZ ddlZeeZ	ddl
mZ dZG dd deZdS )	ao  
To generate the serialized JSON representation for a Bokeh application
from a single Python script, pass the script name to ``bokeh json`` on the
command line:

.. code-block:: sh

    bokeh json app_script.py

The generated JSON will be saved in the current working directory with
the name ``app_script.json``.

Applications can also be created from directories. The directory should
contain a ``main.py`` (and any other helper modules that are required) as
well as any additional assets (e.g., theme files). Pass the directory name
to ``bokeh json`` to generate the JSON:

.. code-block:: sh

    bokeh json app_dir

By default, the generated JSON is output as one line, with no indentation.
To generate "pretty printed" JSON on multiple lines, you can specify an
indentation level with the ``--indent`` argument:

.. code-block:: sh

    bokeh json app_script.py --indent=2

    )absolute_importdivisionprint_functionunicode_literalsN   )FileOutputSubcommand)JSONc               @   sJ   e Zd ZdZdZdZdZed de	de
dddffe  Zd	d
 ZdS )r   z; Subcommand to output applications as serialized JSON

    Zjsonz.Create JSON files for one or more applicationsz--indentZLEVELz indentation to use when printingN)metavartypehelpdefaultc             C   s   |j |jdS )z


        )indent)Zto_json_stringr   )selfargsdoc r   =lib/python3.7/site-packages/bokeh/command/subcommands/json.pyfile_contents_   s    zJSON.file_contents)__name__
__module____qualname____doc__name	extensionr   r   Z	files_argdictintZ
other_argsr   r   r   r   r   r   r   E   s   

r   )r   Z
__future__r   r   r   r   ZloggingZ	getLoggerr   logZfile_outputr   __all__r   r   r   r   r   <module>$   s   
