skillfed

oslo.limit

Limit enforcement library to assist with quota calculation.

oslo-limit v2.12.0 94.3K downloads/30d#13,332 on PyPI
Permissive license Apache-2.0 Active released

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-limit

uv

uv add oslo-limit

poetry

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 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

Environment :: OpenStackIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTyping :: Typed

Tags

openstack quota enforcementrate limiting libraryquota calculationresource limit managementopenstack service limitsquota validationoslo limit enforcement
openstackquota-enforcementrate-limiting

More Distributed Computing packages