{"repo":"stytchauth/stytch-python","free":true,"listed":false,"github":"https://github.com/stytchauth/stytch-python","clone":"git clone https://github.com/stytchauth/stytch-python.git","description":"Official Stytch Backend SDK for Python","language":"Python","stars":67,"topics":["python","stytch","authentication","sdk"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Stytch Python Library The Stytch Python library makes it easy to use the Stytch user infrastructure API in Python applications. It pairs well with the Stytch Web SDK or your own custom authentication flow. Requirements The Stytch Python library supports Python 3.10+ Installation Usage You can find your API credentials in the Stytch Dashboard. This client library supports all Stytch's live products: B2C - [x] Email Magic Links - [x] Embeddable Magic Links - [x] OAuth logins - [x] SMS passcodes - [x] WhatsApp passcodes - [x] Email passcodes - [x] Session Management - [x] WebAuthn - [x] Time-based one-time passcodes (TOTPs) - [x] Crypto wallets - [x] Passwords B2B - [x] Organizations - [x] Members - [x] Email Magic Links - [x] OAuth logins - [x] Session Management - [x] Single-Sign On - [x] Discovery - [x] Passwords Example B2C usage Create an API client: Send a magic link by email: Authenticate the token from the magic link: Async support Every endpoint supports an async version which you can use by appending async to the method name. You can use the same Client object for sync and async methods. The above example of sending and authenticating an magic link can be rewritten as: Example B2B usage Create an API client: Python: Create an organization Log the first user into the organization Handling Errors Structured errors from the Stytch API will raise StytchError exceptions. You can view the details of the error through the .details property of the StytchError exception. Learn ","default_branch":null,"files":null,"tree":[],"storefront":"/r/stytchauth","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stytchauth/stytch-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}