django-fastresolve 0.1.0
“Faster URL resolving for Django, by indexing url patterns on their literal prefixes”
Registry package lists one maintainerRelease published within seven days
SHA-25625938083d44e19a3c9daac55438536e1ff6714ee83fd13c22994e95d438a557a
MaleculeH₂(Cm₂Os)Md(Pa)
Evidence
16:36… never excluding a pattern that could match.
17"""
18
19import string
20from contextlib import contextmanager
21from contextvars import ContextVar
22
23from django.conf import settings
24from django.urls.exceptions import Resolver404
25from django.urls.resolvers import (
26 RegexPattern,
27 ResolverMatch,
28 RoutePattern,
29 URLPattern,
30 URLResolver,
31)
32
33stock_resolve = URLResolver.resolve
34
35_use_stock = ContextVar('django_fastresolve_use_stock' …
81:44… r `url_pattern` to possibly resolve it."""
82 resolve_method = getattr(type(url_pattern), 'resolve', None)
83 if resolve_method is not URLPattern.resolve and resolve_method is not fast_resolve:
84 …
226:102… Django, but not with django-fastresolve. Please report this at https://github.com/boxed/django-fastresolve/issues')
227
228
⋯6 lines
1Metadata-Version: 2.5
2Name: django-fastresolve
3Version: 0.1.0
4Summary: Faster URL resolving for Django, by indexing url patterns on their literal prefixes
5Project-URL: Homepage, https://github.com/boxed/django-fastresolve
6Author-email: Anders Hovmöller <[email protected]>
7License: BSD
8License-File: LICENSE
9Keywords: django,performance,urls
10Classifier: Development Status :: 3 - Alpha
11Classifier: Framework :: Django
12Classifier: Frame …
16:36… :: BSD License
17Classifier: Programming Language :: Python :: 3
18Requires-Python: >=3.10
19Requires-Dist: django>=4.2
20Description-Content-Type: text/x-rst
21
⋯4 lines
No evidence locations were recorded for this file. Raw result