oso-cloud
Oso Cloud Python client
Decision gist · record as of 2026-08-14
Yes, if you are building a multi-tenant or role-based access control system and prefer to outsource authorization logic to a managed service. The low install friction, active maintenance, and permissive license make it a straightforward choice. However, you must already have an Oso Cloud account and be willing to add a network dependency to every authorization decision.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Oso Cloud API endpoint and authentication token; the package is a client wrapper and cannot function standalone without a remote service.
- Low install friction with three lightweight runtime dependencies (requests, backoff, typing-extensions).
- Actively maintained with a recent release.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
last release 2026-03-30 (137 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 367,288 downloads/mo, #7,200 on PyPI
Alternatives
Verify before relying
pip install oso-cloud
from oso_cloud import Oso
client = Oso(url="https://api.osohq.com", token="your-api-token")
allowed = client.authorize_resource(actor, action, resource)- Whether the package supports offline authorization or requires live API connectivity for every check.
- Performance characteristics and latency expectations for authorization calls.
- Whether Polar policy language knowledge is required to use the client effectively.
What it is and what it does
Oso Cloud is a client library for Python that connects your application to Oso Cloud, a hosted authorization service. It abstracts away the HTTP layer and provides convenient methods to perform permission checks, filter resources by access rights, and query user roles. The package is designed for teams building multi-tenant or role-based access control systems who want to centralize authorization logic outside their application code.
The client depends on requests for HTTP communication, backoff for retry logic, and typing-extensions for type hints. It supports Python 3.6 through 3.11 and runs on Windows, POSIX, and Unix systems. Since it is purely a client wrapper around a remote service, your application must have network access to an Oso Cloud instance and valid credentials to use it.
Use it for
- Add permission checks to a microservice to verify if a user can perform an action before processing a request.
- Filter a list of resources to return only those the current user has access to.
- Query a user's assigned roles and permissions from a centralized authorization store.
- Enforce multi-tenant access control without embedding authorization logic in application code.
- Test authorization policies before deploying them to production.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a multi-tenant or role-based access control system and prefer to outsource authorization logic to a managed service.
The low install friction, active maintenance, and permissive license make it a straightforward choice. However, you must already have an Oso Cloud account and be willing to add a network dependency to every authorization decision.
Install
oso-cloud on PyPI
Before you install
Low install friction with three lightweight runtime dependencies (requests, backoff, typing-extensions). Actively maintained with a recent release.
Requires a valid Oso Cloud API endpoint and authentication token; the package is a client wrapper and cannot function standalone without a remote service.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install oso-cloud
from oso_cloud import Oso
client = Oso(url="https://api.osohq.com", token="your-api-token")
allowed = client.authorize_resource(actor, action, resource)
Verify before relying
- Whether the package supports offline authorization or requires live API connectivity for every check.
- Performance characteristics and latency expectations for authorization calls.
- Whether Polar policy language knowledge is required to use the client effectively.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesrequestsbackofftyping-extensions |
| Maintenance | Actively maintained 137 days since the last release |
| First released | |
| Downloads | 367,288 / month, #7,200 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/StableIntended Audience :: DevelopersOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: oso_cloud-2.6.0-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 › “authorization as a service”
- oso-cloudOso Cloud client provides a Python wrapper for…
- authAn HTTP authorization service that answers whether a user may perform…
- keystoneOpenStack Keystone provides authentication, authorization, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Security packages
Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.
MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.
joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.
Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.
Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.
ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.
Install only if maintaining existing code that already depends on it, and plan a migration.
See also auth · zope.security · azure-mgmt-authorization · oslo.policy · casbin · azure-synapse-accesscontrol · cerbos · cloudsplaining · requests-oauth2client · workos