MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / Login

Class Login

github/Auth.py:129–153  ·  view source on GitHub ↗

This class is used to authenticate with login and password.

Source from the content-addressed store, hash-verified

127
128
129class Login(HTTPBasicAuth):
130 """
131 This class is used to authenticate with login and password.
132 """
133
134 def __init__(self, login: str, password: str):
135 assert isinstance(login, str)
136 assert len(login) > 0
137 assert isinstance(password, str)
138 assert len(password) > 0
139
140 self._login = login
141 self._password = password
142
143 @property
144 def login(self) -> str:
145 return self._login
146
147 @property
148 def username(self) -> str:
149 return self.login
150
151 @property
152 def password(self) -> str:
153 return self._password
154
155
156class Token(Auth):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…