-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### 1.0.9 | ||
|
||
* graphics for A&A | ||
|
||
### 1.0.8 | ||
|
||
* Maintenance update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ libmagic==1.0 | |
python-magic==0.4.6 | ||
Pillow==2.9.0 | ||
timeout-decorator | ||
boto3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from boto3.session import Session | ||
from flask import current_app | ||
|
||
def get_boto_session(): | ||
""" | ||
Gets a boto3 session using credentials stores in app.config; assumes an | ||
app context is active | ||
:return: boto3.session instance | ||
""" | ||
return Session( | ||
aws_access_key_id=current_app.config.get('AWS_ACCESS_KEY'), | ||
aws_secret_access_key=current_app.config.get('AWS_SECRET_KEY'), | ||
region_name=current_app.config.get('AWS_REGION') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters