16 lines
594 B
Python
16 lines
594 B
Python
|
'''
|
||
|
Tutorial link: https://realpython.com/flask-connexion-rest-api-part-2/
|
||
|
Sqlalchemy version: 1.2.15
|
||
|
Python version: 3.7
|
||
|
'''
|
||
|
|
||
|
import os
|
||
|
# response = requests.get('https://api.com/')
|
||
|
# print(response) # shows the response's HTTP status code
|
||
|
# print(response.json()) # shows the response's JSON response body, if it has one
|
||
|
# print(response.content) # get the data content of the response
|
||
|
# (for your case this is the downloaded file)
|
||
|
# print(dir(response)) # shows you all the different methods you can call on this response object
|
||
|
db_user = os.environ.get("POSTGIS_DBUSER")
|
||
|
print(db_user)
|