{"library":"oslo-limit","title":"Oslo Limit","description":"Limit enforcement library to assist with quota calculation, part of the OpenStack Oslo project. Current version 2.10.0, requires Python >=3.10. Maintenance mode with infrequent releases.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install oslo.limit"],"cli":null},"imports":["from oslo_limit import limit","from oslo_limit import limit; enforcer = limit.Enforcer(...)"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from oslo_limit import limit\n\n# Define a resource with a limit of 10\nresource = {'name': 'instances', 'limit': 10}\n# Check usage\nenforcer = limit.Enforcer()\n# Would raise exception if exceeded\nenforcer.enforce('project-id', resource, usage=5)","lang":"python","description":"Basic usage: create an Enforcer and call enforce() to check quota limits.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}