Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/flask/__pycache__/cli.cpython-37.pyc

280 lines
26 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]<5D>x<00>@s<>dZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl
m Z ddl m Z ddlmZddlmZddlZddlmZd d
lmZd d lmZd d lmZd d lmZd dlmZd dlmZd dlmZd dlmZy ddlZWne k
<EFBFBD>rdZYnXy ddl!Z!Wne k
<EFBFBD>r:dZ!YnXGdd<13>dej"<22>Z#dd<15>Z$d|dd<18>Z%dd<1A>Z&dd<1C>Z'dd<1E>Z(d}d d!<21>Z)d"d#<23>Z*ej+d$gd%d&e*ddd'<27>Z,Gd(d)<29>d)e-<2D>Z.Gd*d+<2B>d+e-<2D>Z/ej0e/dd,<2C>Z1d-d.<2E>Z2Gd/d0<64>d0ej3<6A>Z4Gd1d2<64>d2e4<65>Z5d3d4<64>Z6d~d5d6<64>Z7d7d8<64>Z8Gd9d:<3A>d:ej9<6A>Z:d;d<<3C>Z;Gd=d><3E>d>ej<<3C>Z=ej>d?d@dA<64>ej?dBdCdDdEdF<64>ej?dGdHdIdJdF<64>ej?dKe:<3A>dLdM<64>ej?dNej<dd&ddO<64>e;d&dPdQ<64>ej?dRddSdF<64>ej?dTddUdF<64>ej?dVddWdF<64>ej?dXddYdF<64>ej?dZde=<3D>d[<5B>@ejAjB<6A>d\<5C>e1d]d^<5E><00><01><01><01><01><01><01><01><01><01><01>ZCej>d_d`dA<64>e2dadb<64><00><01>ZDej>dcdddA<64>ej?dedfe<11>Edg<64>dhdidj<64>ej?dkddldm<64>e2dndo<64><00><01><01><01>ZFe5dpj@ejGdqk<02>r<>drndsejGdqk<02>r<>dtndudv<64>dw<64>ZHddxdy<64>ZIeJdzk<02>r<>eIdd{<7B>dS)<29>z<EFBFBD>
flask.cli
~~~~~~~~~
A simple command line application to run flask apps.
:copyright: 2010 Pallets
:license: BSD-3-Clause
<EFBFBD>)<01>print_functionN)<01>update_wrapper)<01>
attrgetter)<01>Lock)<01>Thread)<01> import_string<6E>)<01>
getargspec)<01>
itervalues)<01>reraise)<01> text_type)<01> current_app)<01>get_debug_flag)<01>get_env)<01>get_load_dotenvc@seZdZdZdS)<03>NoAppExceptionz3Raised if an application cannot be found or loaded.N)<04>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F>rr<00>,/tmp/pip-install-c3kgu56x/Flask/flask/cli.pyr0src sddlm<01>x&dD]}t||d<04>}t|<03><00>r|SqW<00>fdd<06>t|j<05>D<00>}t|<04>dkr`|dSt|<04>dkr~tdj|j d <09><01><01>xrd
D]j}t||d<04>}t
<EFBFBD> |<05>r<>yt ||<05>}t|<03><00>r<>|SWq<>t k
r<EFBFBD>t|<05>td j||j d <0C><02><01>Yq<>Xq<>Wtd j|j d <09><01><01>dS)zwGiven a module instance this tries to find the best possible
application in the module or raises an exception.
r)<01>Flask)<02>appZ applicationNcsg|]}t|<01><00>r|<01>qSr)<01>
isinstance)<02>.0<EFBFBD>v)rrr<00>
<listcomp>Bsz!find_best_app.<locals>.<listcomp>rztDetected multiple Flask applications in module "{module}". Use "FLASK_APP={module}:name" to specify the correct one.)<01>module)<02>
create_appZmake_appz<70>Detected factory "{factory}" in module "{module}", but could not call it without arguments. Use "FLASK_APP='{module}:{factory}(args)'" to specify arguments.)<02>factoryrznFailed to find Flask application or factory in module "{module}". Use "FLASK_APP={module}:name to specify one.)<0F>r<00>getattrrr
<00>__dict__<5F>lenr<00>formatr<00>inspect<63>
isfunction<EFBFBD> call_factory<72> TypeError<6F>_called_with_wrong_args)<06> script_infor<00> attr_namer<00>matches<65> app_factoryr)rr<00> find_best_app4s8 
 
   
 


r/rcCs\t|<01>}|j}|j}d|kr*||d|i<01>S|r6||<02>S|sVt|<04>dkrV|dkrV||<00>S|<01>S)z<>Takes an app factory, a ``script_info` object and optionally a tuple
of arguments. Checks for the existence of a script_info argument and calls
the app_factory depending on that and the arguments provided.
r+rN)r <00>args<67>defaultsr$)r+r.<00> argumentsZ args_spec<65> arg_namesZ arg_defaultsrrrr(gsr(cCs@t<00><01>d}z*x$|dk r2|jj|jkr*dS|j}qWdS~XdS)z<>Check whether calling a function raised a ``TypeError`` because
the call failed or because something in the factory raised the
error.
:param factory: the factory function that was called
:return: true if the call failed
<20>NFT)<06>sys<79>exc_info<66>tb_frame<6D>f_code<64>__code__<5F>tb_next)r <00>tbrrrr*zs 

r*c
Csdddlm}t<02>d|<02>}|s,tdj|d<05><01><01>|<04><06>\}}yt||<05>}Wn0tk
rv}zt|j d<00><01>Wdd}~XYnXt
<EFBFBD> |<07><01>r8|r<>yt <0C> dj|d <09><01>}Wq<>ttfk
r<EFBFBD>}ztd
j||d <0B><02><01>Wdd}~XYq<>Xnd }yt|||<06>} WnFtk
<EFBFBD>r4}z&t|<07><01>s<0E>td j|||jd<0E><03><01>Wdd}~XYnXn|} t| |<03><02>rL| Stdj|j|d<10><02><01>dS)z<>Checks if the given string is a variable name or a function. If it is a
function, it checks for specified arguments and whether it takes a
``script_info`` argument and calls the function with the appropriate
arguments.
r)rz%^ *([^ ()]+) *(?:\((.*?) *,? *\))? *$z="{name}" is not a valid variable name or function expression.)<01>namerNz ({args},))r0z.Could not parse the arguments in "{app_name}".)<02>e<>app_namerzc{e}
The factory "{app_name}" in module "{module}" could not be called with the specified arguments.)r=r>rzFA valid Flask application was not obtained from "{module}:{app_name}".)rr>)r!r<00>re<72>matchrr%<00>groupsr"<00>AttributeErrorr0r&r'<00>ast<73> literal_eval<61>
ValueError<EFBFBD> SyntaxErrorr(r)r*rr)
r+rr>rr@r<r0<00>attrr=rrrr<00>find_app_by_string<6E>sD  
    
$ rHcCs<>tj<01>|<00>}tj<01>|<00>\}}|dkr(|}tj<01>|<00>dkrDtj<01>|<00>}g}x6tj<01>|<00>\}}|<03>|<04>tj<01>tj<01> |d<03><02>sJPqJWt
jd|kr<>t
j<01> d|<00>d<05> |ddd<07><00>S)z<>Given a filename this will try to calculate the python path, add it
to the search path and return the actual module name that is expected.
z.py<70>__init__z __init__.pyr<00>.N<><4E><EFBFBD><EFBFBD><EFBFBD>) <0C>os<6F>path<74>realpath<74>splitext<78>basename<6D>dirname<6D>split<69>append<6E>exists<74>joinr5<00>insert)rM<00>fname<6D>ext<78> module_namer<rrr<00>prepare_import<72>s  
rZTcCs<>d}y t|<01>WnTtk
rdt<02><03>djrFtdj|t<07><08>d<04><02><01>n|r\tdj|d<06><01><01>ndSYnXtj |}|dkr<>t
||<05>St |||<02>SdS)NTrKz:While importing "{name}", an ImportError was raised:
{tb})r<r;zCould not import "{name}".)r<) <0C>
__import__<EFBFBD> ImportErrorr5r6r:rr%<00> traceback<63>
format_exc<EFBFBD>modulesr/rH)r+rYr><00>raise_if_not_found<6E>__traceback_hide__rrrr<00>
locate_app<EFBFBD>s 


rbcCsT|r
|jrdSddl}ddlm}d}tj|t<06><07>||jd<05>|jd<06>|<00> <09>dS)Nrr)<01> __version__z7Python %(python)s
Flask %(flask)s
Werkzeug %(werkzeug)s)<03>pythonZflask<73>werkzeug)<01>color)
Zresilient_parsingrer!rc<00>click<63>echo<68>platform<72>python_versionrf<00>exit)<06>ctx<74>param<61>valuererc<00>messagerrr<00> get_versions
 

rpz --versionzShow the flask versionF)<05>help<6C> expose_value<75>callback<63>is_flagZis_eagerc@s:eZdZdZddd<04>Zdd<06>Zdd<08>Zd d
<EFBFBD>Zd d <0C>Zd S)<0F>DispatchingAppaSpecial application that dispatches to a Flask application which
is imported by name in a background thread. If an error happens
it is recorded and shown as part of the WSGI handling which in case
of the Werkzeug debugger means that it shows up in the browser.
FcCs4||_d|_t<02>|_d|_|r(|<00><05>n|<00><06>dS)N)<07>loader<65>_appr<00>_lock<63>_bg_loading_exc_info<66>_load_unlocked<65>_load_in_background)<03>selfrv<00>use_eager_loadingrrrrI+s
zDispatchingApp.__init__cs$<00>fdd<02>}t|dd<04>}|<02><01>dS)Nc sFd}<00>j<00>2y <0C><00><01>Wntk
r6t<03><04><00>_YnXWdQRXdS)NT)rxrz<00> Exceptionr5r6ry)ra)r|rr<00> _load_app6s  z5DispatchingApp._load_in_background.<locals>._load_appr)<02>targetr0)r<00>start)r|r<00>tr)r|rr{5s  z"DispatchingApp._load_in_backgroundcCs$d}|j}|dk r d|_t|<02>dS)NT)ryr )r|rar6rrr<00>_flush_bg_loading_exceptionAs
z*DispatchingApp._flush_bg_loading_exceptioncCsd}|<00><00>|_}d|_|S)NT)rvrwry)r|ra<00>rvrrrrzHszDispatchingApp._load_unlockedc CsXd}|jdk r|<00>||<02>S|<00><01>|j<02>&|jdk r<|j}n|<00><03>}|||<02>SQRXdS)NT)rwr<>rxrz)r|<00>environZstart_responserar<>rrr<00>__call__Ns
 
zDispatchingApp.__call__N)F) rrrrrIr{r<>rzr<>rrrrru$s 
 ruc@s"eZdZdZddd<05>Zdd<07>ZdS) <09>
ScriptInfoa<EFBFBD>Helper object to deal with Flask applications. This is usually not
necessary to interface with as it's used internally in the dispatching
to click. In future versions of Flask this object will most likely play
a bigger role. Typically it's created automatically by the
:class:`FlaskGroup` but you can also manually create it and pass it
onwards as click object.
NTcCs.|ptj<01>d<01>|_||_i|_||_d|_dS)NZ FLASK_APP)rLr<><00>get<65>app_import_pathr<00>data<74>set_debug_flag<61> _loaded_app)r|r<>rr<>rrrrIds
zScriptInfo.__init__cCs<>d}|jdk r|jSd}|jdk r0t||j<01>}nj|jrnt<04>d|jd<04>dgdd<05>\}}t|<03>}t|||<04>}n,x*dD]"}t|<03>}t||ddd<08>}|rtPqtW|s<>td <09><01>|j r<>t
<EFBFBD>|_ ||_|S)
z<EFBFBD>Loads the Flask app (if not yet loaded) and returns it. Calling
this multiple times will just result in the already loaded app to
be returned.
TNz
:(?![\\/])rr4)zwsgi.pyzapp.pyF)r`z<>Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.) r<>rr(r<>r?rRrZrbrr<>r<00>debug)r|rarrMr<<00> import_namerrr<00>load_appps.

 
zScriptInfo.load_app)NNT)rrrrrIr<>rrrrr<>[s
r<>)Zensurecstj<01>fdd<02><08>}t|<01><00>S)z<>Wraps a callback so that it's guaranteed to be executed with the
script's application context. If callbacks are registered directly
to the ``app.cli`` object then they are wrapped with this function
by default unless it's disabled.
c s0|<00>t<01><01><02><00><03><00>|j<04>f|<01>|<02>SQRXdS)N)<05> ensure_objectr<74>r<>Z app_contextZinvoke)Z__ctxr0<00>kwargs)<01>frr<00> decorator<6F>sz"with_appcontext.<locals>.decorator)rgZ pass_contextr)r<>r<>r)r<>r<00>with_appcontext<78>sr<>c@s eZdZdZdd<03>Zdd<05>ZdS)<07>AppGroupaThis works similar to a regular click :class:`~click.Group` but it
changes the behavior of the :meth:`command` decorator so that it
automatically wraps the functions in :func:`with_appcontext`.
Not to be confused with :class:`FlaskGroup`.
cs"<00><01>dd<02><02><03><00><01><02>fdd<04>}|S)z<>This works exactly like the method of the same name on a regular
:class:`click.Group` but it wraps callbacks in :func:`with_appcontext`
unless it's disabled by passing ``with_appcontext=False``.
r<>Tcs$<00>r t|<00>}tjj<03>f<01><00><02><01>|<00>S)N)r<>rg<00>Group<75>command)r<>)r0r<>r|<00> wrap_for_ctxrrr<><00>sz#AppGroup.command.<locals>.decorator)<01>pop)r|r0r<>r<>r)r0r<>r|r<>rr<><00>s zAppGroup.commandcOs |<02>dt<01>tjj|f|<01>|<02>S)z<>This works exactly like the method of the same name on a regular
:class:`click.Group` but it defaults the group class to
:class:`AppGroup`.
<20>cls)<05>
setdefaultr<EFBFBD>rgr<><00>group)r|r0r<>rrrr<><00>s zAppGroup.groupN)rrrrr<>r<>rrrrr<><00>sr<>csBeZdZdZddd<05>Zdd<07>Zdd <09>Zd
d <0B>Z<07>fd d <0A>Z<08>Z S)<0F>
FlaskGroupajSpecial subclass of the :class:`AppGroup` group that supports
loading more commands from the configured Flask app. Normally a
developer does not have to interface with this class but there are
some very advanced use cases for which it makes sense to create an
instance of this.
For information as of why this is useful see :ref:`custom-scripts`.
:param add_default_commands: if this is True then the default run and
shell commands will be added.
:param add_version_option: adds the ``--version`` option.
:param create_app: an optional callback that is passed the script info and
returns the loaded app.
:param load_dotenv: Load the nearest :file:`.env` and :file:`.flaskenv`
files to set environment variables. Will also change the working
directory to the directory containing the first file found.
:param set_debug_flag: Set the app's debug flag based on the active
environment
.. versionchanged:: 1.0
If installed, python-dotenv will be used to load environment variables
from :file:`.env` and :file:`.flaskenv` files.
TNcKsvt|<06>dd<00>pd<02>}|r"|<07>t<03>tj|fd|i|<06><02>||_||_||_|rl|<00> t
<EFBFBD>|<00> t <0B>|<00> t <0C>d|_ dS)N<>paramsrF)<0E>listr<74>rS<00>version_optionr<6E>rIr<00> load_dotenvr<76><00> add_command<6E> run_command<6E> shell_command<6E>routes_command<6E>_loaded_plugin_commands)r|Zadd_default_commandsrZadd_version_optionr<6E>r<><00>extrar<61>rrrrI<00>s 



zFlaskGroup.__init__cCsb|jr
dSy ddl}Wntk
r0d|_dSXx$|<01>d<03>D]}|<00>|<02><05>|j<06>q>Wd|_dS)NrTzflask.commands)r<><00> pkg_resourcesr\<00>iter_entry_pointsr<73><00>loadr<)r|r<><00>eprrr<00>_load_plugin_commandss z FlaskGroup._load_plugin_commandscCsh|<00><00>t<01>|||<02>}|dk r"|S|<01>t<04>}y"|<04><05>j<06>||<02>}|dk rL|SWntk
rbYnXdS)N)r<>r<><00> get_commandr<64>r<>r<><00>clir)r|rlr<r<><00>inforrrr<>s 
zFlaskGroup.get_commandcCsd|<00><00>ttj<03>||<01><02>}|<01>t<06>}y|<02>|<03><08>j <09>|<01><01>Wnt
k
rZt <0B> <0C>YnXt |<02>S)N)r<><00>setrgr<><00> list_commandsr<73>r<><00>updater<65>r<>r~r]<00> print_exc<78>sorted)r|rlr<>r<>rrrr<>$s
zFlaskGroup.list_commandscsbdtjd<t|j<03>rt<03>|<02>d<03>}|dkr<t|j|jd<04>}||d<|<02>dd<06>t t
|<00>j ||<02>S)N<>trueZFLASK_RUN_FROM_CLI<4C>obj)rr<>Zauto_envvar_prefixZFLASK) rLr<>rr<>r<>r<>rr<>r<><00>superr<72><00>main)r|r0r<>r<>)<01> __class__rrr<>7s


 zFlaskGroup.main)TNTTT)
rrrrrIr<>r<>r<>r<><00> __classcell__rr)r<>rr<><00>s
 r<>cCs&tj<01>||t|<00>d<01><00>tj<05><01>|kS)z<>Take ``other`` and remove the length of ``path`` from it. Then join it
to ``path``. If it is the original value, ``path`` is an ancestor of
``other``.N)rLrMrUr$<00>lstrip<69>sep)rM<00>otherrrr<00>_path_is_ancestorMsr<>cCs<>tdkr8|s$tj<02>d<02>s$tj<02>d<03>r4tjdddd<07>dS|dk rZtj<02>|<00>rVt<00>|<00>SdSd}x>d D]6}tj|dd
<EFBFBD>}|s|qd|dkr<>tj<02>|<00>}t<00>|<00>qdW|r<>t<01> <09>|kr<>t<01>
|<01>|dk S) aHLoad "dotenv" files in order of precedence to set environment variables.
If an env var is already set it is not overwritten, so earlier files in the
list are preferred over later files.
Changes the current working directory to the location of the first file
found, with the assumption that it is in the top level project directory
and will be where the Python path should import local packages from.
This is a no-op if `python-dotenv`_ is not installed.
.. _python-dotenv: https://github.com/theskumar/python-dotenv#readme
:param path: Load the file at this location instead of searching.
:return: ``True`` if a file was loaded.
.. versionchanged:: 1.1.0
Returns ``False`` when python-dotenv is not installed, or when
the given path isn't a file.
.. versionadded:: 1.0
Nz.envz .flaskenvz^ * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.ZyellowT)<02>fg<66>errF)z.envz .flaskenv)Zusecwd) <0B>dotenvrLrM<00>isfilerg<00>sechor<6F>Z find_dotenvrQ<00>getcwd<77>chdir)rMZnew_dirr<rrrr<>Ts, 

 
r<>cCs<>tj<01>d<01>dkrdS|dk r<d<04>|<02>}|s2|d7}t<04>|<04>t<04>d<06>|<00><01>|dkrptjdd d
<EFBFBD>tjd d d <0A>|dk r<>t<04>d<0E>|r<>dnd<10><01>dS)z]Show extra startup messages the first time the server is run,
ignoring the reloader.
ZWERKZEUG_RUN_MAINr<4E>Nz * Serving Flask app "{0}"z (lazy loading)z * Environment: {0}<7D>
productionzS WARNING: This is a development server. Do not use it in a production deployment.Zred)r<>z( Use a production WSGI server instead.T)Zdimz * Debug mode: {0}<7D>on<6F>off)rLr<>r<>r%rgrhr<>)<05>envr<76>r<><00> eager_loadingrorrr<00>show_server_banner<65>s

r<>c@s$eZdZdZdZdd<04>Zdd<06>ZdS)<08> CertParamTypez<65>Click option type for the ``--cert`` option. Allows either an
existing file, the string ``'adhoc'``, or an import for a
:class:`~ssl.SSLContext` object.
rMcCstjdddd<03>|_dS)NTF)rT<00>dir_okay<61> resolve_path)rg<00>Path<74> path_type)r|rrrrI<00>szCertParamType.__init__c Cs<>tdkrt<01>d||<02><03>y|<00>|||<03>Stjk
r<EFBFBD>t<01>|||<03><03><05>}|dkr<>y ddl}Wn"tk
r~t<01>d||<02><03>YnX|St|dd<06>}t j
dkr<>|r<>|Snt |tj <0C>r<>|S<00>YnXdS)Nz?Using "--cert" requires Python to be compiled with SSL support.<2E>adhocrz-Using ad-hoc certificates requires pyOpenSSL.T)Zsilent)r4<00><00> ) <0A>sslrg<00> BadParameterr<72><00>STRING<4E>lower<65>OpenSSLr\rr5<00> version_infor<00>
SSLContext)r|rnrmrlr<>r<>rrr<00>convert<72>s.  
 zCertParamType.convertN)rrrrr<rIr<>rrrrr<><00>sr<>cCs<>|j<00>d<01>}|dk}tjdkr4|o0t|ttf<02> }n t|tj<08>}|dk r<>|rZt <09>
d||<01><03>|rlt <09>
d||<01><03>|s~t <09>
d||<01><03>||f|jd<n|r<>|s<>|s<>t <09>
d||<01><03>|S) z<>The ``--key`` option must be specified when ``--cert`` is a file.
Modifies the ``cert`` param to be a ``(cert, key)`` pair if needed.
<20>certr<74>)r4r<>r<>Nz.When "--cert" is "adhoc", "--key" is not used.z:When "--cert" is an SSLContext object, "--key is not used.z "--cert" must also be specified.zRequired when using "--cert".) r<>r<>r5r<>rr <00>bytesr<73>r<>rgr<>)rlrmrnr<>Zis_adhocZ
is_contextrrr<00> _validate_key<65>s$ 
 

 r<>cs eZdZdZ<03>fdd<03>Z<04>ZS)<04>SeparatedPathTypez<65>Click option type that accepts a list of values separated by the
OS's path separator (``:``, ``;`` on Windows). Each value is
validated as a :class:`click.Path` type.
cs,|<00>|<01>}tt|<00>j<03><02><00><01>fdd<02>|D<00>S)Ncsg|]}<01>|<01><01><00><03>qSrr)r<00>item)rlrm<00> super_convertrrrsz-SeparatedPathType.convert.<locals>.<listcomp>)Zsplit_envvar_valuer<65>r<>r<>)r|rnrmrl<00>items)r<>)rlrmr<>rr<>s
 zSeparatedPathType.convert)rrrrr<>r<>rr)r<>rr<><00>sr<><00>runzRun a development server.)Z
short_helpz--hostz-hz 127.0.0.1zThe interface to bind to.)<02>defaultrqz--portz-pi<70>zThe port to bind to.z--certz(Specify a certificate file to use HTTPS.)<02>typerqz--key)rTr<>r<>z2The key file to use when specifying a certificate.)r<>rsrrrqz--reload/--no-reloadzVEnable or disable the reloader. By default the reloader is active if debug is enabled.z--debugger/--no-debuggerzVEnable or disable the debugger. By default the debugger is active if debug is enabled.z--eager-loading/--lazy-loaderzaEnable or disable eager loading. By default eager loading is enabled if the reloader is disabled.z --with-threads/--without-threadsz!Enable or disable multithreading.z --extra-fileszRExtra files that trigger a reload on change. Multiple paths are separated by '{}'.)r<>r<>rqc
Cstt<00>} |dkr| }|dkr| }|dkr,| }tt<02>| |j|<05>t|j|d<02>}
ddlm} | |||
|||||d<05>dS)aRun a local development server.
This server is for development purposes only. It does not provide
the stability, security, or performance of production WSGI servers.
The reloader and debugger are enabled by default if
FLASK_ENV=development or FLASK_DEBUG=1.
N)r}r)<01>
run_simple)Z use_reloaderZ use_debuggerZthreaded<65> ssl_context<78> extra_files)rr<>rr<>rur<>Zwerkzeug.servingr<67>) r<><00>host<73>port<72>reloadZdebuggerr<72>Z with_threadsr<73>r<>r<>rr<>rrrr<> s&9 r<><00>shellzRun a shell in the app context.c Cs<>ddl}ddlm}|jj}dtjtj|j|j |j
f}i}t j <0C> d<06>}|r<>t j<0E>|<05>r<>t|d<07><02>}tt|<06><13>|d<08>|<04>WdQRX|<04>|<02><15><00>|j||d <09>dS)
a;Run an interactive Python shell in the context of a given
Flask application. The application will populate the default
namespace of this shell according to it's configuration.
This is useful for executing small snippets of management code
without having to manually configure the application.
rNr)<01>_app_ctx_stackz)Python %s on %s
App: %s [%s]
Instance: %sZ PYTHONSTARTUP<55>r<>exec)<02>banner<65>local)<17>code<64>globalsr<73><00>toprr5<00>versionrir<>r<>Z instance_pathrLr<>r<>rMr<><00>open<65>eval<61>compile<6C>readr<64>Zmake_shell_contextZinteract)r<>r<>rr<>rlZstartupr<70>rrrr<>`s
 
   r<>ZrouteszShow the routes for the app.z--sortz-s)<04>endpoint<6E>methods<64>ruler@r<>zgMethod to sort routes by. "match" is the order that Flask will match routes when dispatching a request.)r<>r<>rqz --all-methodszShow HEAD and OPTIONS methods.)rtrqc s2ttj<02><03><00>}|s t<04>d<01>dSt|r*dnd<04><01>|dkrJt|t|<00>d<06>}n|dkrbt|dd <09>d<06>}<02>fd
d <0B>|D<00>}d }t d d<0E>|D<00><01>t dd<0E>|D<00><01>t dd<0E>|D<00><01>f}dd <0B>t
||<05>D<00>}dj |<05>}t<04>|j |<04><00> <0C><00>t<04>|j dd<0E>|D<00><01><00>x4t
||<03>D]&\}}t<04>|<06> |j ||j<0E><03><0F><00><00>qWdS)z6Show all registered routes with endpoints and methods.zNo routes were registered.Nr)<02>HEAD<41>OPTIONS)r<>r<>)<01>keyr<79>cSs
t|j<01>S)N)r<>r<>)r<>rrr<00><lambda><3E><00>z routes_command.<locals>.<lambda>cs g|]}d<00>t|j<02><00><01><01>qS)z, )rUr<>r<>)rr<>)<01>ignored_methodsrrr<00>sz"routes_command.<locals>.<listcomp>)ZEndpointZMethodsZRulecss|]}t|j<01>VqdS)N)r$r<>)rr<>rrr<00> <genexpr><3E>sz!routes_command.<locals>.<genexpr>css|]}t|<01>VqdS)N)r$)rr<>rrrr<00>scss|]}t|j<01>VqdS)N)r$r<>)rr<>rrrr<00>scSsg|]\}}tt|<01>|<02><02>qSr)<02>maxr$)r<00>h<>wrrrr<00>sz"{{0:<{0}}} {{1:<{1}}} {{2:<{2}}}css|]}d|VqdS)<02>-Nr)r<00>widthrrrr<00>s)r<>r Zurl_mapZ
iter_rulesrgrhr<>r<>rr<00>zipr%<00>stripr<70>r<><00>rstrip) <09>sortZ all_methods<64>rulesZ rule_methods<64>headersZwidths<68>rowr<77>r<>r)rrr<><00>s(

r<>a<>A general utility script for Flask applications.
Provides commands from Flask, extensions, and the application. Loads the
application defined in the FLASK_APP environment variable, or from a wsgi.py
file. Setting the FLASK_ENV environment variable to 'development' will enable
debug mode.

{prefix}{cmd} FLASK_APP=hello.py
{prefix}{cmd} FLASK_ENV=development
{prefix}flask run
<EFBFBD>posix<69>exportr<74>z$ z> )<02>cmd<6D>prefix)rqcCstj|r dndd<02>dS)Nzpython -m flask)Z prog_name)r<>r<>)<01> as_modulerrrr<><00>sr<><00>__main__)r)r)T)N)F)Kr<00>
__future__rrCr&rLrir?r5r]<00> functoolsr<00>operatorr<00> threadingrrrgZwerkzeug.utilsr<00>_compatr r
r r r<>r Zhelpersrrrr<>r\r<>Z
UsageErrorrr/r(r*rHrZrbrp<00>Optionr<6E><00>objectrur<>Zmake_pass_decoratorZpass_script_infor<6F>r<>r<>r<>r<>r<>r<>Z ParamTyper<65>r<>r<>r<>r<><00>optionr%rM<00>pathsepr<70>r<>ZChoicer<65>r<r<>r<>rrrrr<00><module>
s<>               
 
3
;
7B
=.#    ( " "