Canstralian commited on
Commit
9fe5c20
·
verified ·
1 Parent(s): 00da8b5

Create config.py

Browse files
Files changed (1) hide show
  1. config.py +11 -0
config.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from dotenv import load_dotenv
3
+
4
+ load_dotenv()
5
+
6
+ class Config:
7
+ FILE_UPLOAD_LIMIT = int(os.getenv('FILE_UPLOAD_LIMIT', 200))
8
+ EXECUTION_TIME_LIMIT = int(os.getenv('EXECUTION_TIME_LIMIT', 300))
9
+ RESOURCE_LIMIT = int(os.getenv('RESOURCE_LIMIT', 1024)) # in MB
10
+ DATA_DIR = os.getenv('DATA_DIR', './data')
11
+ CONFIG_FLAG = os.getenv('CONFIG_FLAG', 'default')