Skip to main content

Nova-specific Rate Limit Class for Turnstile

This package provides the nova_limits Python module, which contains the nova_preprocess() preprocessor, the NovaClassLimit limit class, and the NovaTurnstileMiddleware replacement middleware class, all for use with Turnstile. These pieces work together to provide class-based rate limiting integration with nova. To use, you must configure the Turnstile middleware with the following configuration:

[filter:turnstile]
use = egg:turnstile#turnstile
turnstile = nova_limits:NovaTurnstileMiddleware
preprocess = nova_limits:nova_preprocess
redis.host = <your Redis database host>

Then, simply use the nova_limits:NovaClassLimit rate limit class in your configuration.

Using NovaClassLimit

In addition to the other attributes provided by turnstile.limits:Limit, the NovaClassLimit limit class provides one additional required argument: the rate_class. Each tenant is associated with a given rate-limit class through the Redis database. (If no such association is present, the rate-limit class for a tenant is default.) Setting rate_class on NovaClassLimit restricts the limiting action to only those tenants in the given rate-limit class.

Also note that, for nova, the URIs used in configuring rate limiting must include the version identifier, i.e., “/v2/{tenant}/servers/detail”.

Metadata

Release files for nova_limits 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nova_limits 0.6.1
File Size Uploaded Provenance Actions
nova_limits-0.6.1.tar.gz 13.5 kB Without provenance Details for nova_limits-0.6.1.tar.gz

Release files / nova_limits-0.6.1.tar.gz

Download URL nova_limits-0.6.1.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
52be8aaa04bb840e69fea5d64f0e1a85630265a2f804048d89ed376d53aa25ad
BLAKE2b-256 checksum
How to use checksums
200243c4e89a6128734237a7539074f1d712feb108b7beb3e5126b55b24dc0b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nova_limits 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page