Best Python code snippet using localstack_python
auth.pyi
Source:auth.pyi
...9 def sign_string(self, string_to_sign): ...10class AnonAuthHandler(AuthHandler, HmacKeys):11 capability: Any12 def __init__(self, host, config, provider) -> None: ...13 def add_auth(self, http_request, **kwargs): ...14class HmacAuthV1Handler(AuthHandler, HmacKeys):15 capability: Any16 def __init__(self, host, config, provider) -> None: ...17 def update_provider(self, provider): ...18 def add_auth(self, http_request, **kwargs): ...19class HmacAuthV2Handler(AuthHandler, HmacKeys):20 capability: Any21 def __init__(self, host, config, provider) -> None: ...22 def update_provider(self, provider): ...23 def add_auth(self, http_request, **kwargs): ...24class HmacAuthV3Handler(AuthHandler, HmacKeys):25 capability: Any26 def __init__(self, host, config, provider) -> None: ...27 def add_auth(self, http_request, **kwargs): ...28class HmacAuthV3HTTPHandler(AuthHandler, HmacKeys):29 capability: Any30 def __init__(self, host, config, provider) -> None: ...31 def headers_to_sign(self, http_request): ...32 def canonical_headers(self, headers_to_sign): ...33 def string_to_sign(self, http_request): ...34 def add_auth(self, req, **kwargs): ...35class HmacAuthV4Handler(AuthHandler, HmacKeys):36 capability: Any37 service_name: Any38 region_name: Any39 def __init__(self, host, config, provider, service_name: Optional[Any] = ..., region_name: Optional[Any] = ...) -> None: ...40 def headers_to_sign(self, http_request): ...41 def host_header(self, host, http_request): ...42 def query_string(self, http_request): ...43 def canonical_query_string(self, http_request): ...44 def canonical_headers(self, headers_to_sign): ...45 def signed_headers(self, headers_to_sign): ...46 def canonical_uri(self, http_request): ...47 def payload(self, http_request): ...48 def canonical_request(self, http_request): ...49 def scope(self, http_request): ...50 def split_host_parts(self, host): ...51 def determine_region_name(self, host): ...52 def determine_service_name(self, host): ...53 def credential_scope(self, http_request): ...54 def string_to_sign(self, http_request, canonical_request): ...55 def signature(self, http_request, string_to_sign): ...56 def add_auth(self, req, **kwargs): ...57class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):58 capability: Any59 region_name: Any60 def __init__(self, *args, **kwargs) -> None: ...61 def clean_region_name(self, region_name): ...62 def canonical_uri(self, http_request): ...63 def canonical_query_string(self, http_request): ...64 def host_header(self, host, http_request): ...65 def headers_to_sign(self, http_request): ...66 def determine_region_name(self, host): ...67 def determine_service_name(self, host): ...68 def mangle_path_and_params(self, req): ...69 def payload(self, http_request): ...70 def add_auth(self, req, **kwargs): ...71 def presign(self, req, expires, iso_date: Optional[Any] = ...): ...72class STSAnonHandler(AuthHandler):73 capability: Any74 def add_auth(self, http_request, **kwargs): ...75class QuerySignatureHelper(HmacKeys):76 def add_auth(self, http_request, **kwargs): ...77class QuerySignatureV0AuthHandler(QuerySignatureHelper, AuthHandler):78 SignatureVersion: int79 capability: Any80class QuerySignatureV1AuthHandler(QuerySignatureHelper, AuthHandler):81 SignatureVersion: int82 capability: Any83 def __init__(self, *args, **kw) -> None: ...84class QuerySignatureV2AuthHandler(QuerySignatureHelper, AuthHandler):85 SignatureVersion: int86 capability: Any87class POSTPathQSV2AuthHandler(QuerySignatureV2AuthHandler, AuthHandler):88 capability: Any89 def add_auth(self, req, **kwargs): ...90def get_auth_handler(host, config, provider, requested_capability: Optional[Any] = ...): ...91def detect_potential_sigv4(func): ......
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!