/ packages / auths-python / examples / quickstart.py
quickstart.py
 1  """Auths SDK quickstart — validates the README examples actually work."""
 2  
 3  from auths import Auths, VerificationError
 4  
 5  auths = Auths()
 6  print(f"Auths client initialized: repo={auths.repo_path}")
 7  
 8  # Demonstrate error handling
 9  try:
10      auths.verify(attestation_json="{}", issuer_key="bad")
11  except VerificationError as e:
12      print(f"Expected error: code={e.code}, message={e.message}")
13  
14  print("Quickstart complete!")