Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2Abstract
3--------
5The patterns library provides a number resources useful for managing URL patterns.
7Benefits
8--------
10- Pattern constants define the common patterns for use with ``path()`` and ``re_path()``.
11- The ``VersionConverter`` is a semver.org converter for use with ``path()``.
12- ``ModelPattern`` is primarily used by SuperDjango UI, but may also be used programmatically to store URL patterns for
13 later use.
15Install
16-------
18There is no special install procedure for this library.
20Usage
21-----
23See Reference below.
25"""
26__author__ = "Shawn Davis <shawn@superdjango.com>"
27__maintainer__ = "Shawn Davis <shawn@superdjango.com>"
28__version__ = "0.7.1-d"
30from .constants import *
31from .converters import *
32from .library import *
34__all__ = (
35 "PATTERN_LOOKUP",
36 "PATTERN_MD5",
37 "PATTERN_PATH",
38 "PATTERN_PK",
39 "PATTERN_SLUG",
40 "PATTERN_UUID",
41 "PATTERN_VERSION",
42 "PATTERN_YEAR",
43 "PATTERNS",
44 "REGEX_LOOKUP",
45 "REGEX_PASSWORD_RESET",
46 "REGEX_PATTERNS",
47 "REGEX_PK",
48 "REGEX_SLUG",
49 "REGEX_UUID",
50 "REGEX_VERSION",
51 "FourDigitYearConverter",
52 "MD5Converter",
53 "ModelPattern",
54 "Pattern",
55 "VersionConverter",
56)