--- id: oslo-limit version: "2.12.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # oslo.limit — Limit enforcement library to assist with quota calculation. License: permissive · Maintenance: active · Downloads: 94.3K/mo ## 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 above — 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 pip install oslo-limit uv add oslo-limit poetry add oslo-limit ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 94.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags openstack quota enforcement, rate limiting library, quota calculation, resource limit management, openstack service limits, quota validation, oslo limit enforcement, openstack, quota-enforcement, rate-limiting [View on SkillFed](https://skillfed.io/packages/oslo-limit) · [View on PyPI](https://pypi.org/project/oslo-limit/)