We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 816e5c3 + e5ffce2 commit c50f044Copy full SHA for c50f044
config/settings.py
@@ -0,0 +1,10 @@
1
+import os
2
+from dotenv import load_dotenv
3
+
4
+load_dotenv()
5
6
+BASE_URL = os.getenv("BASE_URL", "https://swapi.info/api/")
7
+CONNECT_TIMEOUT = float(os.getenv("CONNECT_TIMEOUT", "3.0"))
8
+READ_TIMEOUT = float(os.getenv("READ_TIMEOUT", "5.0"))
9
+RETRY_TOTAL = int(os.getenv("RETRY_TOTAL", "3"))
10
+RATE_LIMIT_SLEEP = float(os.getenv("RATE_LIMIT_SLEEP", "0.0")) # seconds between requests
0 commit comments