-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '0e84a6de5b5128e9b9270064d9f88007bf9c1048' of github.com…
…:PennAppsXMIT/parser Conflicts: .gitignore
- Loading branch information
Showing
3 changed files
with
43 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Python project to do the heavy lifting: | ||
|
||
-Receive SQS notifications for new raw emails | ||
-Retrieve raw emails and metadata | ||
-Extract relevant content | ||
-Add relevant value | ||
-Store parsed events | ||
-Cleanup | ||
-Send appropriate notifications via websockets |
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,32 @@ | ||
#!/bin/bash | ||
|
||
VENV_DIRECTORY="venv" | ||
|
||
show_help() { | ||
echo $0": Creates a venv." | ||
echo '-h: show this help' | ||
} | ||
|
||
venv_create() { | ||
if [[ -d $VENV_DIRECTORY ]]; then | ||
echo "Venv already exists, skipping creation" | ||
exit 0 | ||
else | ||
echo "Creating venv" | ||
virtualenv --no-site-packages venv | ||
echo "Venv successfully created" | ||
fi | ||
} | ||
|
||
while getopts "h" opt; do | ||
case "$opt" in | ||
h) | ||
show_help | ||
exit 0 | ||
;; | ||
esac | ||
done | ||
|
||
venv_create | ||
|
||
pip install -r requirements.txt |
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,2 @@ | ||
argparse==1.2.1 | ||
wsgiref==0.1.2 |