This file contains hidden or 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
""" | |
How to use: | |
dependency: | |
xlsxwriter (pip install xlsxwriter) | |
python code: | |
excel_data = [ | |
['Name', 'Birth', 'Email', 'Gender'], | |
['John Doe', '1980-02-03', 'j-doe@mail.com', 'male' ], | |
['Jane Doe', '1995-01-15', 'prettyjane@mail.com', 'female' ], |
This file contains hidden or 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
""" | |
Need Django and CProfile. | |
Just append this middleware class in MIDDLEWARE in django settings. | |
""" | |
from django.core.exceptions import MiddlewareNotUsed | |
from django.utils.deprecation import MiddlewareMixin | |
from django.conf import settings | |
import cProfile | |
import pstats |
This file contains hidden or 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 base64 | |
import hashlib | |
from Crypto.Cipher import AES | |
from django.conf import settings | |
__all__ = ['Secure'] | |
class Secure: |
NewerOlder