
    ^h                     |    S r SSKJr  SSKJrJrJr  SSKJrJ	r	J
r
Jr  SSKJr  SSKJr  SSKJr   " S	 S
\\5      rg)a  A license reporting CLI

Mostly ready-to-use, the downstream must provide the location of the application's
static resources. Licenses from an app's federated_extensions will also be discovered
as configured in `labextensions_path` and `extra_labextensions_path`.

    from traitlets import default
    from jupyterlab_server import LicensesApp

    class MyLicensesApp(LicensesApp):
        version = "0.1.0"

        @default("static_dir")
        def _default_static_dir(self):
            return "my-static/"

    class MyApp(JupyterApp, LabConfig):
        ...
        subcommands = dict(
            licenses=(MyLicensesApp, MyLicensesApp.description.splitlines()[0])
        )

    )Any)
JupyterAppbase_aliases
base_flags)BoolEnumInstanceUnicode   )__version__)	LabConfig)LicensesManagerc                      ^  \ rS rSrSr\rSr\" SSSS9r	\
" SSS	S9r\" / S
QSSSS9r\" SSSS9r\" \5      r0 \ESSS.Er0 \ES SS00S4S SS00S4S SS00S4S.ErS\S\SS4U 4S jjrS"S jrS"S  jrS!rU =r$ )#LicensesApp%   zA license management app.z"
    Report frontend licenses
     Tz0The static directory from which to show licenses)confighelpFz/Also print out full license text (if available))markdownjsoncsvr   zReporter formatz.*z(A regular expression of bundles to printzLicensesApp.bundles_patternzLicensesApp.report_format)bundleszreport-format	full_textz*Print out full license text (if available)report_formatr   z.Print out report as JSON (implies --full-text)r   z-Print out report as CSV (implies --full-text))z	full-textr   r   argskwargsreturnNc                 F   > [         TU ]  " U0 UD6  U R                  5         g)zInitialize the app.N)super
initializeinit_licenses_manager)selfr   r   	__class__s      X/home/james-whalen/.local/lib/python3.13/site-packages/jupyterlab_server/licenses_app.pyr    LicensesApp.initializeP   s!    D+F+""$    c                      [        U S9U l        g)zInitialize the license manager.)parentN)r   licenses_manager)r"   s    r$   r!   !LicensesApp.init_licenses_managerU   s     /!
r&   c                     U R                   R                  U R                  U R                  U R                  S9S   n[        U5        U R                  S5        g)zStart the app.)r   r   bundles_patternr   N)r)   reportr   r   r,   printexit)r"   r-   s     r$   startLicensesApp.start[   sT    &&--,,nn 00 . 
 	
 	f		!r&   )r)   )r   N)__name__
__module____qualname____firstlineno____doc__r   versiondescriptionr
   
static_dirr   r   r   r   r,   r	   r   r)   r   aliasesr   flagsr   r    r!   r0   __static_attributes____classcell__)r#   s   @r$   r   r   %   s    #GK D/abJU4._`I#ZCTM d46`aO0
04G
 [$/08

 _f56<

 _e45;
E % %s %t %

 r&   r   N)r6   typingr   jupyter_core.applicationr   r   r   	traitletsr   r   r	   r
   _versionr   r   r   licenses_handlerr   r    r&   r$   <module>rD      s2   .  I I 3 3 !  ->*i >r&   