codekingpro/portable-devtools
114k
1"""2Verify service identities.3"""4 5from . import cryptography, hazmat, pyopenssl6from .exceptions import (7 CertificateError,8 SubjectAltNameWarning,9 VerificationError,10)11 12 13__title__ = "service-identity"14 15__author__ = "Hynek Schlawack"16 17__license__ = "MIT"18__copyright__ = "Copyright (c) 2014 " + __author__19 20 21__all__ = [22 "CertificateError",23 "SubjectAltNameWarning",24 "VerificationError",25 "hazmat",26 "cryptography",27 "pyopenssl",28]29 30 31def __getattr__(name: str) -> str:32 if name != "__version__":33 msg = f"module {__name__} has no attribute {name}"34 raise AttributeError(msg)35 36 from importlib.metadata import version37 38 return version("service-identity")39 