ó
mÜJ]c           @` sƒ   d  Z  d d l m Z m Z m Z m Z d d l Z e j e ƒ Z	 d d l
 m Z d d l m Z d
 Z d e f d	 „  ƒ  YZ d S(   u×   Generate new secret keys that can be used by the Bokeh server to
cryptographically sign session IDs.

To generate a new secret key for use with Bokeh server, execute

.. code-block:: sh

    bokeh secret

on the command line. The key will be printed to standard output.

The secret key can be provided to the ``bokeh serve`` command with
the ``BOKEH_SECRET_KEY`` environment variable.

.. warning::
    You must keep the secret secret! Protect it like a root password.

i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsN(   t   generate_secret_keyi   (   t
   Subcommandu   Secrett   Secretc           B` s)   e  Z d  Z d Z d Z d Z d „  Z RS(   u/    Subcommand to generate a new secret key.

    u   secretu3   Create a Bokeh secret key for use with Bokeh serverc         C` s   t  ƒ  } t | ƒ d S(   u
   

        N(   R   t   print(   t   selft   argst   key(    (    s?   lib/python2.7/site-packages/bokeh/command/subcommands/secret.pyt   invokeH   s    	(    (   t   __name__t
   __module__t   __doc__t   namet   helpR	   R   (    (    (    s?   lib/python2.7/site-packages/bokeh/command/subcommands/secret.pyR   ;   s
   (   u   Secret(   R   t
   __future__R    R   R   R   t   loggingt	   getLoggerR   t   logt   bokeh.util.session_idR   t
   subcommandR   t   __all__R   (    (    (    s?   lib/python2.7/site-packages/bokeh/command/subcommands/secret.pyt   <module>   s   "