Skip to content

Commit c50f044

Browse files
Merge pull request #5 from AlexAlexandreAlves/dev
fix: restauring file deleted
2 parents 816e5c3 + e5ffce2 commit c50f044

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/settings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)