python-cas
Python CAS client library
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It fills a clear need for CAS protocol support across any Python web framework. Install it if you need to authenticate against a CAS server and want a lightweight, framework-independent solution.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with only two runtime dependencies (requests and lxml).
- Active maintenance with a recent release 101 days ago and ongoing commits; classified as Production/Stable.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing use in most commercial and open-source projects with minimal restrictions.
last release 2026-05-05 (101 days) · last repo commit 2026-05-12 · 100 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 124,683 downloads/mo, #11,856 on PyPI
Alternatives
Verify before relying
pip install python-cas
from python_cas.client import CASClient
client = CASClient(service_url='http://your-app.example.com')
user = client.verify_ticket('ticket-from-cas-server')- Whether the package's CASClient API is documented with concrete examples beyond the Flask sample mentioned.
- Support status for CAS server versions beyond 3.0 or any known compatibility limitations.
What it is and what it does
Python CAS is a client library for the CAS (Central Authentication Service) protocol, extracted from the django-cas-ng project to work independently with any Python web framework. It handles authentication by communicating with a CAS server, supporting protocol versions 1.0, 2.0, and 3.0. The library abstracts away the protocol details so developers can integrate single sign-on (SSO) authentication into Django, Flask, Pyramid, FastAPI, Tornado, or other Python web applications without building the CAS protocol layer themselves.
The package depends on requests for HTTP communication and lxml for XML parsing of CAS server responses. It targets modern Python versions (3.10 and later) and is actively maintained with a stable release history since 2015. Installation is straightforward via pip with minimal dependencies, making it suitable for adding SSO capability to existing web applications.
Use it for
- Add single sign-on authentication to a Flask or Django application using an existing CAS server.
- Integrate CAS-based authentication into a FastAPI or Pyramid web service for centralized user management.
- Verify CAS tickets and retrieve authenticated user information in a custom Python web application.
- Migrate authentication from a framework-specific CAS plugin to a framework-agnostic client library.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It fills a clear need for CAS protocol support across any Python web framework. Install it if you need to authenticate against a CAS server and want a lightweight, framework-independent solution.
Install
python-cas on PyPI
Before you install
Low install friction with only two runtime dependencies (requests and lxml). Active maintenance with a recent release 101 days ago and ongoing commits; classified as Production/Stable.
Requires Python 3.10 or later.
License in practice
MIT license is permissive, allowing use in most commercial and open-source projects with minimal restrictions.
Quickstart
pip install python-cas
from python_cas.client import CASClient
client = CASClient(service_url='http://your-app.example.com')
user = client.verify_ticket('ticket-from-cas-server')
Verify before relying
- Whether the package's CASClient API is documented with concrete examples beyond the Flask sample mentioned.
- Support status for CAS server versions beyond 3.0 or any known compatibility limitations.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesrequestslxml |
| Maintenance | Actively maintained 101 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,683 / month, #11,856 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Internet :: WWW/HTTP |
Evidence: python_cas-1.7.2-py3-none-any.whl
Tags
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 › “CAS client library”
- python-casImplements a CAS (Central Authentication Service) protocol client…
- sympySymPy is a Python library for symbolic mathematics, performing…
- pylutron-casetaA Python API for controlling Lutron Caséta smart home devices via…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
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.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
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.
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.
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.
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.
See also python3-saml · djangosaml2 · python-openid · flask-oidc · Flask-BasicAuth · django-esi · djangosaml2idp2 · webargs · django-google-sso · fastapi-sso