Skip to content

Commit

Permalink
Merge commit '0e84a6de5b5128e9b9270064d9f88007bf9c1048' of github.com…
Browse files Browse the repository at this point in the history
…:PennAppsXMIT/parser

Conflicts:
	.gitignore
  • Loading branch information
yasyf committed Sep 13, 2014
2 parents 25454b7 + 0e84a6d commit c09c1d5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
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
32 changes: 32 additions & 0 deletions install.sh
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
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
argparse==1.2.1
wsgiref==0.1.2

0 comments on commit c09c1d5

Please sign in to comment.