File: constants.py

package info (click to toggle)
django-qr-code 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,108 kB
  • sloc: python: 3,914; sh: 107; makefile: 20
file content (21 lines) | stat: -rw-r--r-- 828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from datetime import datetime
from typing import Optional

QR_CODE_GENERATION_VERSION_DATE: datetime = datetime(year=2025, month=5, day=8, hour=23)
SIZE_DICT: dict = {"t": 6, "s": 12, "m": 18, "l": 30, "h": 48}
ERROR_CORRECTION_DICT: dict = {"L": "l", "M": "m", "Q": "q", "H": "h"}
DEFAULT_MODULE_SIZE: str | int = "m"
DEFAULT_BORDER_SIZE: int = 4
DEFAULT_VERSION: Optional[int] = None
DEFAULT_IMAGE_FORMAT: str = "svg"
DEFAULT_ERROR_CORRECTION: str = "m"
DEFAULT_ECI: bool = False
DEFAULT_BOOST_ERROR: bool = True
DEFAULT_ENCODING: str = "utf-8"
DEFAULT_CACHE_ENABLED: bool = True
DEFAULT_URL_SIGNATURE_ENABLED: bool = True

ALLOWS_EXTERNAL_REQUESTS_FOR_REGISTERED_USER: str = "ALLOWS_EXTERNAL_REQUESTS_FOR_REGISTERED_USER"
SIGNING_KEY: str = "SIGNING_KEY"
TOKEN_LENGTH: str = "TOKEN_LENGTH"
SIGNING_SALT: str = "SIGNING_SALT"