enhance: preload general packages (#3567)
This commit is contained in:
parent
e02ee3bb2e
commit
c7de51ca9a
1 changed files with 22 additions and 2 deletions
|
|
@ -20,8 +20,28 @@ result = f'''<<RESULT>>
|
||||||
print(result)
|
print(result)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
PYTHON_PRELOAD = """"""
|
PYTHON_PRELOAD = """
|
||||||
|
# prepare general imports
|
||||||
|
import json
|
||||||
|
import datetime
|
||||||
|
import math
|
||||||
|
import random
|
||||||
|
import re
|
||||||
|
import string
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
import traceback
|
||||||
|
import uuid
|
||||||
|
import os
|
||||||
|
import base64
|
||||||
|
import hashlib
|
||||||
|
import hmac
|
||||||
|
import binascii
|
||||||
|
import collections
|
||||||
|
import functools
|
||||||
|
import operator
|
||||||
|
import itertools
|
||||||
|
"""
|
||||||
|
|
||||||
class PythonTemplateTransformer(TemplateTransformer):
|
class PythonTemplateTransformer(TemplateTransformer):
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue