oslo.limit
Limit enforcement library to assist with quota calculation.
What it is and what it does
oslo.limit is an OpenStack library that handles quota and rate-limit enforcement across OpenStack services. It provides the calculation and validation logic needed to ensure that resource consumption stays within configured quotas, helping operators prevent resource exhaustion and enforce fair usage policies.
The library integrates with OpenStack's authentication (keystoneauth1) and configuration (oslo.config) systems, making it a standard component in OpenStack deployments. It depends on oslo.i18n for internationalization and oslo.log for logging, plus openstacksdk for broader OpenStack integration. It requires Python 3.11 or later and is actively maintained.
Use it for:
- Enforce API rate limits and quota checks in OpenStack services to prevent resource exhaustion
- Calculate and validate tenant resource usage against configured quotas in multi-tenant deployments
- Implement fair-use policies across OpenStack compute, storage, and network resources
- Integrate quota enforcement into custom OpenStack service extensions or middleware
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
oslo.limit enforces quota and rate limits across OpenStack services by calculating and validating resource consumption against configured quotas.
Yes, if you are building or extending OpenStack services that need quota enforcement. The library is actively maintained, has no known vulnerabilities, and integrates cleanly with standard OpenStack components. Not applicable outside OpenStack deployments.
Install
oslo-limit on PyPI
pip
pip install oslo-limituv
uv add oslo-limitpoetry
poetry add oslo-limitInstalling oslo.limit
Before you install
Low install friction with a pure Python wheel. Active maintenance with a recent release. Depends on five oslo and OpenStack libraries (keystoneauth1, oslo.config, oslo.i18n, oslo.log, openstacksdk), all standard OpenStack components.
License in practice
Apache 2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install oslo.limit
from oslo_limit import limit
from keystoneauth1 import session
# Enforce quota using configured limits
limit.enforce_quota(resource_name, usage, session)
Requires Python 3.11 or later. Designed for OpenStack deployments; requires keystoneauth1 session and OpenStack service configuration.
Verify before relying
- Specific quota enforcement API surface and configuration options beyond the description excerpt
- Whether oslo.limit can be used standalone or requires a full OpenStack deployment
- Performance characteristics under high-concurrency quota checks
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — keystoneauth1, oslo.config, oslo.i18n, oslo.log, openstacksdk |
| Maintenance | actively maintained — 35 days since the last release |
| First released | |
| Downloads | 94,343/month — #13,332 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oslo_limit-2.12.0-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
oslo.policyoslo.policy enforces role-based access control…
permissive · top 15,000 on PyPI
oslo.middlewareoslo.middleware provides WSGI middleware…
permissive · top 15,000 on PyPI
oslo.vmwareoslo.vmware provides a library for common…
permissive · top 15,000 on PyPI
oslo.privseposlo.privsep helps applications safely perform…
permissive · top 15,000 on PyPI
oslo.logoslo.log provides standardized logging…
permissive · top 5,000 on PyPI
oslo.configParses command-line arguments and .ini-style…
permissive · top 5,000 on PyPI
oslo.dboslo.db provides database connectivity and ORM…
permissive · top 15,000 on PyPI
oslo.metricsCollects and exposes metrics data from Oslo…
permissive · top 15,000 on PyPI
oslo.messagingOslo Messaging provides a unified API for RPC…
permissive · top 15,000 on PyPI
oslo.utilsoslo.utils provides common utility functions…
permissive · top 5,000 on PyPI