
    _Og                     L    S r SSKJr  SSKJr  \" 5       rSS jr     SS jrg)	zz
github3.api
===========

:copyright: (c) 2012-2014 by Ian Cordasco
:license: Modified BSD, see LICENSE for more details

   )GitHub)GitHubEnterpriseNc                 l    SnU (       a  U(       d  U(       a  [        5       nUR                  XX#5        U$ )a'  Construct and return an authenticated GitHub session.

.. note::

    To allow you to specify either a username and password combination or
    a token, none of the parameters are required. If you provide none of
    them, you will receive ``None``.

:param str username: login name
:param str password: password for the login
:param str token: OAuth token
:param func two_factor_callback: (optional), function you implement to
    provide the Two-factor Authentication code to GitHub when necessary
:returns: :class:`GitHub <github3.github.GitHub>`

N)r   login)usernamepasswordtokentwo_factor_callbackgs        P/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/github3/api.pyr   r      s*    " 	AX%H	E?H    c                     U(       d  [        S5      eSnU (       a  U(       d  U(       a  [        U5      nUR                  XX$5        U$ )ay  Construct and return an authenticated GitHubEnterprise session.

.. note::

    To allow you to specify either a username and password combination or
    a token, none of the parameters are required. If you provide none of
    them, you will receive ``None``.

:param str username: login name
:param str password: password for the login
:param str token: OAuth token
:param str url: URL of a GitHub Enterprise instance
:param func two_factor_callback: (optional), function you implement to
    provide the Two-factor Authentication code to GitHub when necessary
:returns: :class:`GitHubEnterprise <github3.github.GitHubEnterprise>`

z>GitHub Enterprise requires you provide the URL of the instanceN)
ValueErrorr   r   )r   r   r	   urlr
   r   s         r   enterprise_loginr   )   sD    0 
 	

 	AX%S!	E?Hr   )NNNN)NNNNN)__doc__githubr   r   ghr   r    r   r   <module>r      s4     $X6 
$r   