MCPcopy Index your code
hub / github.com/vladmandic/sdnext / auth

Function auth

cli/api-preprocess.py:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def auth():
24 if sd_username is not None and sd_password is not None:
25 return requests.auth.HTTPBasicAuth(sd_username, sd_password)
26 return None
27
28
29def get(endpoint: str, dct: dict | None = None):

Callers 2

getFunction · 0.70
postFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected