From 597b7474159b2256ffe4a9e80274187da136cdfe Mon Sep 17 00:00:00 2001 From: csanicola74 Date: Wed, 31 Aug 2022 17:27:25 -0400 Subject: [PATCH] update3 --- .history/app2_20220831172052.py | 0 .history/app2_20220831172118.py | 34 ++++++ .history/app2_20220831172648.py | 34 ++++++ .history/app2_20220831172653.py | 34 ++++++ .history/app_20220831171533.py | 33 ++++++ .history/app_20220831171930.py | 33 ++++++ .history/app_20220831172024.py | 33 ++++++ __pycache__/app.cpython-310.pyc | Bin 0 -> 827 bytes app.py | 2 +- app2.py | 34 ++++++ requirements.txt | 194 ++++++++++++++++++++++++++++++++ 11 files changed, 430 insertions(+), 1 deletion(-) create mode 100644 .history/app2_20220831172052.py create mode 100644 .history/app2_20220831172118.py create mode 100644 .history/app2_20220831172648.py create mode 100644 .history/app2_20220831172653.py create mode 100644 .history/app_20220831171533.py create mode 100644 .history/app_20220831171930.py create mode 100644 .history/app_20220831172024.py create mode 100644 __pycache__/app.cpython-310.pyc create mode 100644 app2.py create mode 100644 requirements.txt diff --git a/.history/app2_20220831172052.py b/.history/app2_20220831172052.py new file mode 100644 index 0000000..e69de29 diff --git a/.history/app2_20220831172118.py b/.history/app2_20220831172118.py new file mode 100644 index 0000000..bc00e2d --- /dev/null +++ b/.history/app2_20220831172118.py @@ -0,0 +1,34 @@ +from markupsafe import escape +from flask import Flask, abort + +app = Flask(__name__) + + +@app.route('/') +@app.route('/index/') +def hello(): + return '

Hello, World!

' + + +@app.route('/about/') +def about(): + return '

This is a Flask web application.

' + + +@app.route('/capitalize//') +def capitalize(word): + return '

{}

'.format(escape(word.capitalize())) + + +@app.route('/add///') +def add(n1, n2): + return '

{}

'.format(n1 + n2) + + +@app.route('/users//') +def greet_user(user_id): + users = ['Bob', 'Jane', 'Adam'] + try: + return '

Hi {}

'.format(users[user_id]) + except IndexError: + abort(404) diff --git a/.history/app2_20220831172648.py b/.history/app2_20220831172648.py new file mode 100644 index 0000000..bc00e2d --- /dev/null +++ b/.history/app2_20220831172648.py @@ -0,0 +1,34 @@ +from markupsafe import escape +from flask import Flask, abort + +app = Flask(__name__) + + +@app.route('/') +@app.route('/index/') +def hello(): + return '

Hello, World!

' + + +@app.route('/about/') +def about(): + return '

This is a Flask web application.

' + + +@app.route('/capitalize//') +def capitalize(word): + return '

{}

'.format(escape(word.capitalize())) + + +@app.route('/add///') +def add(n1, n2): + return '

{}

'.format(n1 + n2) + + +@app.route('/users//') +def greet_user(user_id): + users = ['Bob', 'Jane', 'Adam'] + try: + return '

Hi {}

'.format(users[user_id]) + except IndexError: + abort(404) diff --git a/.history/app2_20220831172653.py b/.history/app2_20220831172653.py new file mode 100644 index 0000000..bc00e2d --- /dev/null +++ b/.history/app2_20220831172653.py @@ -0,0 +1,34 @@ +from markupsafe import escape +from flask import Flask, abort + +app = Flask(__name__) + + +@app.route('/') +@app.route('/index/') +def hello(): + return '

Hello, World!

' + + +@app.route('/about/') +def about(): + return '

This is a Flask web application.

' + + +@app.route('/capitalize//') +def capitalize(word): + return '

{}

'.format(escape(word.capitalize())) + + +@app.route('/add///') +def add(n1, n2): + return '

{}

'.format(n1 + n2) + + +@app.route('/users//') +def greet_user(user_id): + users = ['Bob', 'Jane', 'Adam'] + try: + return '

Hi {}

'.format(users[user_id]) + except IndexError: + abort(404) diff --git a/.history/app_20220831171533.py b/.history/app_20220831171533.py new file mode 100644 index 0000000..c4769b3 --- /dev/null +++ b/.history/app_20220831171533.py @@ -0,0 +1,33 @@ +# the below imports the Flask object from the flask package +from flask import Flask + +# creating the Flask application instance and give it the name app +app = Flask(__name__) + +# the decorator, @app.route, is being told with '/' that the function will respond to web requests for the URL '/' + + +@app.route('/') +# creates the 'index' page and the ability to navigate between pages +@app.route('/index/') +# creates the 'hello' function and then runs the phrase 'Hello, World!' through it +def hello(): + return '

Hello, World!

' + +# creates an 'about' page and function and runs the phrase through it + + +@app.route('/about/') +def about(): + return '

This is a Flask web application made by Caroline Sanicola.

' + +# creates a 'contact' page and function and runs the phrase through it + + +@app.route('/contact/') +def contact(): + return '

If you would like to contact us, please don\'t.

' + + +if __name__ == '__main__': + app.run(debug=True, host='0.0.0.0', port=80) diff --git a/.history/app_20220831171930.py b/.history/app_20220831171930.py new file mode 100644 index 0000000..cecc77e --- /dev/null +++ b/.history/app_20220831171930.py @@ -0,0 +1,33 @@ +# the below imports the Flask object from the flask package +from flask import Flask, + +# creating the Flask application instance and give it the name app +app = Flask(__name__) + +# the decorator, @app.route, is being told with '/' that the function will respond to web requests for the URL '/' + + +@app.route('/') +# creates the 'index' page and the ability to navigate between pages +@app.route('/index/') +# creates the 'hello' function and then runs the phrase 'Hello, World!' through it +def hello(): + return '

Hello, World!

' + +# creates an 'about' page and function and runs the phrase through it + + +@app.route('/about/') +def about(): + return '

This is a Flask web application made by Caroline Sanicola.

' + +# creates a 'contact' page and function and runs the phrase through it + + +@app.route('/contact/') +def contact(): + return '

If you would like to contact us, please don\'t.

' + + +if __name__ == '__main__': + app.run(debug=True, host='0.0.0.0', port=80) diff --git a/.history/app_20220831172024.py b/.history/app_20220831172024.py new file mode 100644 index 0000000..9c14229 --- /dev/null +++ b/.history/app_20220831172024.py @@ -0,0 +1,33 @@ +# the below imports the Flask object from the flask package +from flask import Flask, abort + +# creating the Flask application instance and give it the name app +app = Flask(__name__) + +# the decorator, @app.route, is being told with '/' that the function will respond to web requests for the URL '/' + + +@app.route('/') +# creates the 'index' page and the ability to navigate between pages +@app.route('/index/') +# creates the 'hello' function and then runs the phrase 'Hello, World!' through it +def hello(): + return '

Hello, World!

' + +# creates an 'about' page and function and runs the phrase through it + + +@app.route('/about/') +def about(): + return '

This is a Flask web application made by Caroline Sanicola.

' + +# creates a 'contact' page and function and runs the phrase through it + + +@app.route('/contact/') +def contact(): + return '

If you would like to contact us, please don\'t.

' + + +if __name__ == '__main__': + app.run(debug=True, host='0.0.0.0', port=80) diff --git a/__pycache__/app.cpython-310.pyc b/__pycache__/app.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3302b11a576f138d80cb22e4bb68c546068cb635 GIT binary patch literal 827 zcma))&u`N(6vyKvZqm|@ADR#n7jr_DwuWg3I7Agv5sb@()FGr^A~*JEs1rxFqtRYC zj4S^GJMsr{$(7U2yG=syY$~l61a{uD{k5F;dC!)ELC=Hs^V3fLJ@C9AcCp zXZ@wGp7G#A%m!?S-DY>b1ju7|r_P4=E+MivL@j#Sn!D0e- z6@p`E>J9zl_5E~lFh1f!$UX8-D#0G52`Jw@Ws|#c*J<)rbET7;q(zlwC+q0R$o0!NurUl;%=o-{--ZjRO&iuynd4!%#qL6sP0SvyXvwpz z4WMu>R#1KJ?!smKCqkf_YO6x-A-FQdX(?GF_}D%r{Qz7a#X*c?zwgJL9$qVU&m DQ@pyR literal 0 HcmV?d00001 diff --git a/app.py b/app.py index c4769b3..9c14229 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,5 @@ # the below imports the Flask object from the flask package -from flask import Flask +from flask import Flask, abort # creating the Flask application instance and give it the name app app = Flask(__name__) diff --git a/app2.py b/app2.py new file mode 100644 index 0000000..bc00e2d --- /dev/null +++ b/app2.py @@ -0,0 +1,34 @@ +from markupsafe import escape +from flask import Flask, abort + +app = Flask(__name__) + + +@app.route('/') +@app.route('/index/') +def hello(): + return '

Hello, World!

' + + +@app.route('/about/') +def about(): + return '

This is a Flask web application.

' + + +@app.route('/capitalize//') +def capitalize(word): + return '

{}

'.format(escape(word.capitalize())) + + +@app.route('/add///') +def add(n1, n2): + return '

{}

'.format(n1 + n2) + + +@app.route('/users//') +def greet_user(user_id): + users = ['Bob', 'Jane', 'Adam'] + try: + return '

Hi {}

'.format(users[user_id]) + except IndexError: + abort(404) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0befa39 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,194 @@ +autopep8==1.6.0 +beautifulsoup4==4.11.1 +cachetools==5.2.0 +certifi==2022.6.15 +charset-normalizer==2.1.1 +click==8.1.3 +cycler==0.11.0 +db-dtypes==1.0.3 +docopt==0.6.2 +Flask==2.2.2 +fonttools==4.37.1 +google-api-core==2.8.2 +google-auth==2.11.0 +google-cloud==0.34.0 +google-cloud-bigquery==3.3.2 +google-cloud-bigquery-storage==2.14.2 +google-cloud-core==2.3.2 +google-cloud-storage==2.5.0 +google-crc32c==1.3.0 +google-resumable-media==2.3.3 +googleapis-common-protos==1.56.4 +grpcio==1.47.0 +grpcio-status==1.47.0 +idna==3.3 +itsdangerous==2.1.2 +Jinja2==3.1.2 +kiwisolver==1.4.4 +MarkupSafe==2.1.1 +matplotlib==3.5.3 +numpy==1.23.2 +packaging==21.3 +pandas==1.4.3 +Pillow==9.2.0 +pipreqs==0.4.11 +playsound==1.3.0 +proto-plus==1.22.0 +protobuf==4.21.5 +pyarrow==9.0.0 +pyasn1==0.4.8 +pyasn1-modules==0.2.8 +pycodestyle==2.9.1 +pydub==0.25.1 +pyobjc==8.5 +pyobjc-core==8.5 +pyobjc-framework-Accessibility==8.5 +pyobjc-framework-Accounts==8.5 +pyobjc-framework-AddressBook==8.5 +pyobjc-framework-AdServices==8.5 +pyobjc-framework-AdSupport==8.5 +pyobjc-framework-AppleScriptKit==8.5 +pyobjc-framework-AppleScriptObjC==8.5 +pyobjc-framework-ApplicationServices==8.5 +pyobjc-framework-AppTrackingTransparency==8.5 +pyobjc-framework-AudioVideoBridging==8.5 +pyobjc-framework-AuthenticationServices==8.5 +pyobjc-framework-AutomaticAssessmentConfiguration==8.5 +pyobjc-framework-Automator==8.5 +pyobjc-framework-AVFoundation==8.5 +pyobjc-framework-AVKit==8.5 +pyobjc-framework-BusinessChat==8.5 +pyobjc-framework-CalendarStore==8.5 +pyobjc-framework-CallKit==8.5 +pyobjc-framework-CFNetwork==8.5 +pyobjc-framework-ClassKit==8.5 +pyobjc-framework-CloudKit==8.5 +pyobjc-framework-Cocoa==8.5 +pyobjc-framework-Collaboration==8.5 +pyobjc-framework-ColorSync==8.5 +pyobjc-framework-Contacts==8.5 +pyobjc-framework-ContactsUI==8.5 +pyobjc-framework-CoreAudio==8.5 +pyobjc-framework-CoreAudioKit==8.5 +pyobjc-framework-CoreBluetooth==8.5 +pyobjc-framework-CoreData==8.5 +pyobjc-framework-CoreHaptics==8.5 +pyobjc-framework-CoreLocation==8.5 +pyobjc-framework-CoreMedia==8.5 +pyobjc-framework-CoreMediaIO==8.5 +pyobjc-framework-CoreMIDI==8.5 +pyobjc-framework-CoreML==8.5 +pyobjc-framework-CoreMotion==8.5 +pyobjc-framework-CoreServices==8.5 +pyobjc-framework-CoreSpotlight==8.5 +pyobjc-framework-CoreText==8.5 +pyobjc-framework-CoreWLAN==8.5 +pyobjc-framework-CryptoTokenKit==8.5 +pyobjc-framework-DataDetection==8.5 +pyobjc-framework-DeviceCheck==8.5 +pyobjc-framework-DictionaryServices==8.5 +pyobjc-framework-DiscRecording==8.5 +pyobjc-framework-DiscRecordingUI==8.5 +pyobjc-framework-DiskArbitration==8.5 +pyobjc-framework-DVDPlayback==8.5 +pyobjc-framework-EventKit==8.5 +pyobjc-framework-ExceptionHandling==8.5 +pyobjc-framework-ExecutionPolicy==8.5 +pyobjc-framework-ExternalAccessory==8.5 +pyobjc-framework-FileProvider==8.5 +pyobjc-framework-FileProviderUI==8.5 +pyobjc-framework-FinderSync==8.5 +pyobjc-framework-FSEvents==8.5 +pyobjc-framework-GameCenter==8.5 +pyobjc-framework-GameController==8.5 +pyobjc-framework-GameKit==8.5 +pyobjc-framework-GameplayKit==8.5 +pyobjc-framework-ImageCaptureCore==8.5 +pyobjc-framework-IMServicePlugIn==8.5 +pyobjc-framework-InputMethodKit==8.5 +pyobjc-framework-InstallerPlugins==8.5 +pyobjc-framework-InstantMessage==8.5 +pyobjc-framework-Intents==8.5 +pyobjc-framework-IntentsUI==8.5 +pyobjc-framework-IOSurface==8.5 +pyobjc-framework-iTunesLibrary==8.5 +pyobjc-framework-KernelManagement==8.5 +pyobjc-framework-LatentSemanticMapping==8.5 +pyobjc-framework-LaunchServices==8.5 +pyobjc-framework-libdispatch==8.5 +pyobjc-framework-LinkPresentation==8.5 +pyobjc-framework-LocalAuthentication==8.5 +pyobjc-framework-LocalAuthenticationEmbeddedUI==8.5 +pyobjc-framework-MailKit==8.5 +pyobjc-framework-MapKit==8.5 +pyobjc-framework-MediaAccessibility==8.5 +pyobjc-framework-MediaLibrary==8.5 +pyobjc-framework-MediaPlayer==8.5 +pyobjc-framework-MediaToolbox==8.5 +pyobjc-framework-Metal==8.5 +pyobjc-framework-MetalKit==8.5 +pyobjc-framework-MetalPerformanceShaders==8.5 +pyobjc-framework-MetalPerformanceShadersGraph==8.5 +pyobjc-framework-MetricKit==8.5 +pyobjc-framework-MLCompute==8.5 +pyobjc-framework-ModelIO==8.5 +pyobjc-framework-MultipeerConnectivity==8.5 +pyobjc-framework-NaturalLanguage==8.5 +pyobjc-framework-NetFS==8.5 +pyobjc-framework-Network==8.5 +pyobjc-framework-NetworkExtension==8.5 +pyobjc-framework-NotificationCenter==8.5 +pyobjc-framework-OpenDirectory==8.5 +pyobjc-framework-OSAKit==8.5 +pyobjc-framework-OSLog==8.5 +pyobjc-framework-PassKit==8.5 +pyobjc-framework-PencilKit==8.5 +pyobjc-framework-Photos==8.5 +pyobjc-framework-PhotosUI==8.5 +pyobjc-framework-PreferencePanes==8.5 +pyobjc-framework-PushKit==8.5 +pyobjc-framework-Quartz==8.5 +pyobjc-framework-QuickLookThumbnailing==8.5 +pyobjc-framework-ReplayKit==8.5 +pyobjc-framework-SafariServices==8.5 +pyobjc-framework-SceneKit==8.5 +pyobjc-framework-ScreenCaptureKit==8.5 +pyobjc-framework-ScreenSaver==8.5 +pyobjc-framework-ScreenTime==8.5 +pyobjc-framework-ScriptingBridge==8.5 +pyobjc-framework-SearchKit==8.5 +pyobjc-framework-Security==8.5 +pyobjc-framework-SecurityFoundation==8.5 +pyobjc-framework-SecurityInterface==8.5 +pyobjc-framework-ServiceManagement==8.5 +pyobjc-framework-ShazamKit==8.5 +pyobjc-framework-Social==8.5 +pyobjc-framework-SoundAnalysis==8.5 +pyobjc-framework-Speech==8.5 +pyobjc-framework-SpriteKit==8.5 +pyobjc-framework-StoreKit==8.5 +pyobjc-framework-SyncServices==8.5 +pyobjc-framework-SystemConfiguration==8.5 +pyobjc-framework-SystemExtensions==8.5 +pyobjc-framework-UniformTypeIdentifiers==8.5 +pyobjc-framework-UserNotifications==8.5 +pyobjc-framework-UserNotificationsUI==8.5 +pyobjc-framework-VideoSubscriberAccount==8.5 +pyobjc-framework-VideoToolbox==8.5 +pyobjc-framework-Virtualization==8.5 +pyobjc-framework-Vision==8.5 +pyobjc-framework-WebKit==8.5 +pyparsing==3.0.9 +PyPDF2==2.10.4 +python-dateutil==2.8.2 +pytz==2022.2.1 +requests==2.28.1 +rsa==4.9 +six==1.16.0 +soupsieve==2.3.2.post1 +SQLAlchemy==1.4.40 +toml==0.10.2 +urllib3==1.26.12 +Werkzeug==2.2.2 +xlrd==2.0.1 +yarg==0.1.9