This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Middleware to log all requests and responses. | |
Uses a logger configured by the name of django.request | |
to log all requests and responses according to configuration | |
specified for django.request. | |
""" | |
# import json | |
import logging | |
from django.utils.deprecation import MiddlewareMixin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import platform | |
import sys | |
import subprocess | |
from pathlib import Path | |
def describe() -> dict: | |
meta = { | |
"python": "py" + ".".join(platform.python_version_tuple()[:2]), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from faker import Faker | |
from faker_file.base import DynamicTemplate | |
from faker_file.providers.pdf_file import PdfFileProvider | |
from faker_file.providers.pdf_file.generators import reportlab_generator | |
from reportlab.lib.styles import getSampleStyleSheet | |
from reportlab.pdfbase import pdfmetrics | |
from reportlab.pdfbase.ttfonts import TTFont | |
from reportlab.platypus import PageBreak, Paragraph | |
FAKER = Faker() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Usage: | |
python rock_paper_scissors.py | |
""" | |
import random | |
__title__ = "rock_paper_scissors" | |
__version__ = "0.1" |
NewerOlder