about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/APIv1.py5
-rw-r--r--src/config.py4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/APIv1.py b/src/APIv1.py
index c396825..81ecaa6 100644
--- a/src/APIv1.py
+++ b/src/APIv1.py
@@ -1,13 +1,10 @@
 import random
 from ssl import SSLSocket
+from src.config import *
 from src.request import *
 from src.status_code import *
 
 
-API_FILE_RANDOM_MIN_SIZE_LIMIT = 1
-API_FILE_RANDOM_MAX_SIZE_LIMIT = 2**30 * 2
-
-
 def random_data_gen(size: int, chunk_size: int = 65536) -> bytes:
     """
     Generates SIZE bytes of random data in CHUNK_SIZE byte chunks
diff --git a/src/config.py b/src/config.py
index e39d18c..eefe1ad 100644
--- a/src/config.py
+++ b/src/config.py
@@ -1,2 +1,6 @@
+# generic
 BUFFER_LENGTH = 65536
 
+# API
+API_FILE_RANDOM_MIN_SIZE_LIMIT = 1
+API_FILE_RANDOM_MAX_SIZE_LIMIT = 2**30 * 5