[cs615asa] [git commit] CS615 EBS-BACKUP; backup a directory into Elastic Block Storage (EBS) branch main updated. 198a237fe719892f470415d678daa81b468d700f

Git Owner jschauma at stevens.edu
Thu Mar 18 16:14:10 EDT 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CS615 EBS-BACKUP; backup a directory into Elastic Block Storage (EBS)".

The branch, main has been updated
       via  198a237fe719892f470415d678daa81b468d700f (commit)
      from  574d29e91e524272084d20b7af813709777b33ee (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 198a237fe719892f470415d678daa81b468d700f
Author: AaronJin <ajin1 at stevens.edu>
Date:   Wed Mar 17 16:55:25 2021 -0400

    parse env files | ngoldste ajin

diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..d6e456c
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+	"python.pythonPath": "/usr/bin/python3"
+}
\ No newline at end of file
diff --git a/src/.env b/src/.env
new file mode 100644
index 0000000..61e6652
--- /dev/null
+++ b/src/.env
@@ -0,0 +1 @@
+DEBUG=false
\ No newline at end of file
diff --git a/src/env.py b/src/env.py
new file mode 100644
index 0000000..fc0a4c7
--- /dev/null
+++ b/src/env.py
@@ -0,0 +1,12 @@
+import os
+import environs
+
+# 031721 - 
+def env_parser():
+	env = environs.Env()
+	env.read_env()
+
+	debug = env.bool("DEBUG")
+	print(debug)
+
+env_parser()
\ No newline at end of file
diff --git a/src/requirements.txt b/src/requirements.txt
index 7da679a..3635457 100644
--- a/src/requirements.txt
+++ b/src/requirements.txt
@@ -5,3 +5,4 @@ python-dateutil==2.8.1
 s3transfer==0.3.4
 six==1.15.0
 urllib3==1.26.3
+environs==9.3.1
\ No newline at end of file

-----------------------------------------------------------------------

Summary of changes:
 .vscode/settings.json |  3 +++
 src/.env              |  1 +
 src/env.py            | 12 ++++++++++++
 src/requirements.txt  |  1 +
 4 files changed, 17 insertions(+)
 create mode 100644 .vscode/settings.json
 create mode 100644 src/.env
 create mode 100644 src/env.py


hooks/post-receive
-- 
CS615 EBS-BACKUP; backup a directory into Elastic Block Storage (EBS)


More information about the cs615asa mailing list