o
    '[a.                     @   s>   d Z dgZddlZddlmZ ddlmZ G dd deZdS )zCommand-line applications for Launchpadlib.

This module contains the code for various applications. The applications
themselves are kept in bin/.
RequestTokenApp    N)Credentials)lookup_web_rootc                   @   s    e Zd ZdZdd Zdd ZdS )r   z+An application that creates request tokens.c                 C   s   t || _t|| _|| _dS )zInitialize.N)r   web_rootr   credentialscontext)selfr   Zconsumer_namer    r	   3/usr/lib/python3/dist-packages/launchpadlib/apps.py__init__$   s   


zRequestTokenApp.__init__c                 C   s"   | j j| j| jtjd}t|S )z9Get a request token and return JSON information about it.)Ztoken_format)r   Zget_request_tokenr   r   r   ZDICT_TOKEN_FORMATjsondumps)r   tokenr	   r	   r
   run*   s   
zRequestTokenApp.runN)__name__
__module____qualname____doc__r   r   r	   r	   r	   r
   r   !   s    )	r   __all__r   Zlaunchpadlib.credentialsr   Zlaunchpadlib.urisr   objectr   r	   r	   r	   r
   <module>   s   