$npx skillfedfor your agent

stytch

Stytch python client

Worth itPyPI WWW/HTTPReleased Jun 2026822.6K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — stytch-15.3.0-py3-none-any.whl
v15.3.0 · released 2026-06-24 · Python >=3.8 · 4 runtime deps: aiohttp, requests, pydantic, pyjwt

Yes. The library is actively maintained, has no known vulnerabilities, installs cleanly with low friction, and uses a permissive MIT license. Install it if you are building on Stytch's platform and need a typed, well-documented Python client for B2C or B2B authentication flows.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; you must obtain a Stytch project ID and secret from the Stytch Dashboard.
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained with a recent release (51 days old) and ongoing repository activity.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this library with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2026-06-24 (51 days) · last repo commit 2026-06-24 · 67 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 822,595 downloads/mo, #4,971 on PyPI

Verify before relying

pip install stytch

import stytch

client = stytch.Client(
    project_id="project-live-...",
    secret="secret-live-...",
)

resp = client.magic_links.email.login_or_create(
    email="user@example.com",
    login_magic_link_url="https://example.com/auth",
    signup_magic_link_url="https://example.com/auth",
)
print(resp)
  • Whether the async methods work correctly with all endpoint types or if there are known limitations.
  • Performance characteristics when handling high volumes of authentication requests.
  • Whether custom base URL support works reliably across all B2C and B2B endpoints.
Same gist for agents: .md · .json

What it is and what it does

Stytch is a Python client for Stytch's authentication-as-a-service platform. It wraps Stytch's REST API, letting you add passwordless authentication (email magic links, SMS/WhatsApp passcodes, WebAuthn, TOTPs), OAuth integrations, and session management to Python applications. The library supports both B2C (consumer) and B2B (organization-based) authentication flows.

Responses are fully typed using pydantic, so you get IDE autocomplete and runtime validation. Both sync and async methods are available for every endpoint—append `_async` to any method name to use it with asyncio. The library handles structured error responses through StytchError exceptions, letting you catch and respond to specific error types. It requires Python 3.10 or later and depends on aiohttp, requests, pydantic, and pyjwt for HTTP and JWT handling.

Use it for

  • Add email magic link authentication to a web app without building your own email verification system.
  • Implement B2B multi-tenant organization management with member invitations and SSO.
  • Integrate OAuth logins (Google, GitHub, etc.) alongside passwordless methods in a single client.
  • Build async authentication flows in FastAPI or other async frameworks using the `_async` methods.
  • Handle session validation and token refresh for both consumer and enterprise applications.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The library is actively maintained, has no known vulnerabilities, installs cleanly with low friction, and uses a permissive MIT license. Install it if you are building on Stytch's platform and need a typed, well-documented Python client for B2C or B2B authentication flows.

Install

stytch on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release (51 days old) and ongoing repository activity. Depends on four stable, widely-used libraries: aiohttp, requests, pydantic, and pyjwt.

Requires Python 3.10 or later; you must obtain a Stytch project ID and secret from the Stytch Dashboard.

License in practice

MIT license is permissive; you can use, modify, and distribute this library with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install stytch

import stytch

client = stytch.Client(
    project_id="project-live-...",
    secret="secret-live-...",
)

resp = client.magic_links.email.login_or_create(
    email="user@example.com",
    login_magic_link_url="https://example.com/auth",
    signup_magic_link_url="https://example.com/auth",
)
print(resp)

Verify before relying

  • Whether the async methods work correctly with all endpoint types or if there are known limitations.
  • Performance characteristics when handling high volumes of authentication requests.
  • Whether custom base URL support works reliably across all B2C and B2B endpoints.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
aiohttprequestspydanticpyjwt
MaintenanceActively maintained 51 days since the last release
Last repo commit
First released
Downloads822,595 / month, #4,971 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12

Evidence: stytch-15.3.0-py3-none-any.whl

Tags

Capabilities
authentication api clientmagic link email authpasswordless login pythonoauth and session managementb2b user infrastructurewebauthn and totp supportstytch api integration
Topics
authenticationpasswordlessb2b-saas
PyPI keywords
stytchuserauthentication

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “b2b user infrastructure”

  • stytchA Python client library for integrating Stytch's authentication and…
  • propelauth-pyValidates access tokens and manages user authentication and…
  • drafthorseGenerates and parses ZUGFeRD XML invoice documents, and attaches them…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also descope · supabase-auth · django-authlib · django-magiclink · propelauth-py · Flask-Security · authy · Flask-Security-Too · PyOTP · boxsdk