diff --git a/Aptfile b/Aptfile new file mode 100644 index 0000000..a90b7ec --- /dev/null +++ b/Aptfile @@ -0,0 +1 @@ +https://github.com/iterative/dvc/releases/download/2.0.18/dvc_2.0.18_amd64.deb diff --git a/requirements.txt b/requirements.txt index 0d7447f..2cdeba4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,186 +1,182 @@ -aiobotocore==1.4.1 -aiohttp==3.8.1 -aiohttp-retry==2.4.6 -aioitertools==0.8.0 -aiosignal==1.2.0 -anyio==3.4.0 -appdirs==1.4.4 -argon2-cffi==21.3.0 -argon2-cffi-bindings==21.2.0 -asgiref==3.4.1 -async-generator==1.10 -async-timeout==4.0.2 -asyncssh==2.8.1 -atpublic==2.3 -attrs==21.4.0 -Babel==2.9.1 -backcall==0.2.0 -backports.functools-lru-cache==1.6.4 -bleach==4.1.0 -boto3==1.17.49 -botocore==1.20.106 -brotlipy==0.7.0 -cached-property==1.5.2 -certifi==2021.10.8 -cffi==1.15.0 -charset-normalizer==2.0.9 -click==8.0.3 -colorama==0.4.4 -commonmark==0.9.1 -configobj==5.0.6 -cryptography==36.0.1 -cycler==0.11.0 -# dataclasses==0.8 -debugpy==1.5.1 -decorator==5.1.0 -defusedxml==0.7.1 -dictdiffer==0.9.0 -diskcache==5.4.0 -distro==1.6.0 -dpath==2.0.5 -dulwich==0.20.26 -dvc==2.9.3 -entrypoints==0.3 -fastapi==0.70.1 -flatten-dict==0.4.2 -flit_core==3.6.0 -flufl.lock==6.0 -fonttools==4.28.5 -frozenlist==1.2.0 -fsspec==2021.10.1 -ftfy==6.0.3 -funcy==1.17 -future==0.18.2 -gitdb==4.0.9 -GitPython==3.1.24 -grandalf==0.6 -# gssapi==1.7.2 -h11==0.12.0 -idna==3.1 -importlib-metadata==4.10.0 -importlib-resources==5.4.0 -iniconfig==1.1.1 -ipykernel==6.6.0 -ipython==7.30.1 -ipython-genutils==0.2.0 -ipywidgets==7.6.5 -jedi==0.18.1 -Jinja2==3.0.3 -jmespath==0.10.0 -joblib==1.1.0 -json5==0.9.5 -jsonschema==4.3.2 -jupyter==1.0.0 -jupyter-client==7.1.0 -jupyter-console==6.4.0 -jupyter-core==4.9.1 -jupyter-server==1.13.1 -jupyterlab==3.2.5 -jupyterlab-pygments==0.1.2 -jupyterlab-server==2.10.2 -jupyterlab-widgets==1.0.2 -kiwisolver==1.3.2 -mailchecker==4.1.7 -MarkupSafe==2.0.1 -matplotlib==3.5.1 -matplotlib-inline==0.1.3 -mistune==0.8.4 -more-itertools==8.12.0 -multidict==5.2.0 -munkres==1.1.4 -nanotime==0.5.2 -nbclassic==0.3.4 -nbclient==0.5.9 -nbconvert==6.3.0 -nbformat==5.1.3 -nest-asyncio==1.5.4 -networkx==2.6.3 -notebook==6.4.6 -numpy==1.21.5 -olefile==0.46 -packaging==21.3 -pandas==1.3.5 -pandocfilters==1.5.0 -parso==0.8.3 -pathlib2==2.3.6 -pathspec==0.9.0 -pexpect==4.8.0 -phonenumbers==8.12.40 -pickleshare==0.7.5 -Pillow==8.4.0 -pip==21.3.1 -pluggy==1.0.0 -ply==3.11 -prometheus-client==0.12.0 -prompt-toolkit==3.0.24 -psutil==5.9.0 -ptyprocess==0.7.0 -py==1.11.0 -pyasn1==0.4.8 -pycparser==2.21 -pydantic==1.9.0 -pydot==1.2.4 -pygit2==1.7.2 -Pygments==2.11.1 -pygtrie==2.4.2 -pyOpenSSL==21.0.0 -pyparsing==2.4.7 -# PyQt5==5.12.3 -# PyQt5_sip==4.19.18 -# PyQtChart==5.12 -# PyQtWebEngine==5.12.1 -pyrsistent==0.18.0 -PySocks==1.7.1 -pytest==6.2.5 -python-benedict==0.24.3 -python-dateutil==2.8.2 -python-fsutil==0.5.0 -python-slugify==5.0.2 -pytz==2021.3 -PyYAML==6.0 -pyzmq==22.3.0 -qtconsole==5.2.2 -QtPy==2.0.0 -requests==2.26.0 -rich==10.16.1 -ruamel.yaml==0.17.19 -ruamel.yaml.clib==0.2.6 -s3fs==2021.10.1 -s3transfer==0.3.3 -scikit-learn==1.0.2 -scipy==1.7.3 -scmrepo==0.0.7 -Send2Trash==1.8.0 -setuptools==60.2.0 -shortuuid==1.0.8 -shtab==1.5.2 -six==1.16.0 -smmap==3.0.5 -sniffio==1.2.0 -starlette==0.16.0 -tabulate==0.8.9 -terminado==0.12.1 -testpath==0.5.0 -text-unidecode==1.3 -threadpoolctl==3.0.0 -toml==0.10.2 -tornado==6.1 -tqdm==4.62.3 -traitlets==5.1.1 -typing_extensions==4.0.1 -unicodedata2==14.0.0 -Unidecode==1.3.2 -urllib3==1.26.7 -uvicorn==0.16.0 -voluptuous==0.12.2 -wcwidth==0.2.5 -webencodings==0.5.1 -websocket-client==1.2.3 -wheel==0.37.1 -widgetsnbextension==3.5.2 -wrapt==1.13.3 -xmltodict==0.12.0 -yarl==1.7.2 -zc.lockfile==2.0 -zipp==3.6.0 -gunicorn +aiobotocore==1.4.1 +aiohttp==3.8.1 +aiohttp-retry==2.4.6 +aioitertools==0.8.0 +aiosignal==1.2.0 +anyio==3.4.0 +appdirs==1.4.4 +argon2-cffi==21.3.0 +argon2-cffi-bindings==21.2.0 +asgiref==3.4.1 +async-generator==1.10 +async-timeout==4.0.2 +asyncssh==2.8.1 +atpublic==2.3 +attrs==21.4.0 +Babel==2.9.1 +backcall==0.2.0 +backports.functools-lru-cache==1.6.4 +bleach==4.1.0 +boto3==1.17.49 +botocore==1.20.106 +brotlipy==0.7.0 +cached-property==1.5.2 +certifi==2021.10.8 +cffi==1.15.0 +charset-normalizer==2.0.9 +click==8.0.3 +colorama==0.4.4 +commonmark==0.9.1 +configobj==5.0.6 +cryptography==36.0.1 +cycler==0.11.0 +# dataclasses==0.8 +debugpy==1.5.1 +decorator==5.1.0 +defusedxml==0.7.1 +dictdiffer==0.9.0 +diskcache==5.4.0 +distro==1.6.0 +dpath==2.0.5 +dulwich==0.20.26 +dvc==2.9.3 +entrypoints==0.3 +fastapi==0.70.1 +flatten-dict==0.4.2 +flit_core==3.6.0 +flufl.lock==6.0 +fonttools==4.28.5 +frozenlist==1.2.0 +fsspec==2021.10.1 +ftfy==6.0.3 +funcy==1.17 +future==0.18.2 +gitdb==4.0.9 +GitPython==3.1.24 +grandalf==0.6 +# gssapi==1.7.2 +h11==0.12.0 +idna==3.1 +importlib-metadata==4.10.0 +importlib-resources==5.4.0 +iniconfig==1.1.1 +ipykernel==6.6.0 +ipython==7.30.1 +ipython-genutils==0.2.0 +ipywidgets==7.6.5 +jedi==0.18.1 +Jinja2==3.0.3 +jmespath==0.10.0 +joblib==1.1.0 +json5==0.9.5 +jsonschema==4.3.2 +jupyter==1.0.0 +jupyter-client==7.1.0 +jupyter-console==6.4.0 +jupyter-core==4.9.1 +jupyter-server==1.13.1 +jupyterlab==3.2.5 +jupyterlab-pygments==0.1.2 +jupyterlab-server==2.10.2 +jupyterlab-widgets==1.0.2 +kiwisolver==1.3.2 +mailchecker==4.1.7 +MarkupSafe==2.0.1 +matplotlib==3.5.1 +matplotlib-inline==0.1.3 +mistune==0.8.4 +more-itertools==8.12.0 +multidict==5.2.0 +munkres==1.1.4 +nanotime==0.5.2 +nbclassic==0.3.4 +nbclient==0.5.9 +nbconvert==6.3.0 +nbformat==5.1.3 +nest-asyncio==1.5.4 +networkx==2.6.3 +notebook==6.4.6 +numpy==1.21.5 +olefile==0.46 +packaging==21.3 +pandas==1.3.5 +pandocfilters==1.5.0 +parso==0.8.3 +pathlib2==2.3.6 +pathspec==0.9.0 +pexpect==4.8.0 +phonenumbers==8.12.40 +pickleshare==0.7.5 +Pillow==8.4.0 +pip==21.3.1 +pluggy==1.0.0 +ply==3.11 +prometheus-client==0.12.0 +prompt-toolkit==3.0.24 +psutil==5.9.0 +ptyprocess==0.7.0 +py==1.11.0 +pyasn1==0.4.8 +pycparser==2.21 +pydantic==1.9.0 +pydot==1.2.4 +pygit2==1.7.2 +Pygments==2.11.1 +pygtrie==2.4.2 +pyOpenSSL==21.0.0 +pyparsing==2.4.7 +pyrsistent==0.18.0 +PySocks==1.7.1 +pytest==6.2.5 +python-benedict==0.24.3 +python-dateutil==2.8.2 +python-fsutil==0.5.0 +python-slugify==5.0.2 +pytz==2021.3 +PyYAML==6.0 +pyzmq==22.3.0 +qtconsole==5.2.2 +QtPy==2.0.0 +requests==2.26.0 +rich==10.16.1 +ruamel.yaml==0.17.19 +ruamel.yaml.clib==0.2.6 +s3fs==2021.10.1 +s3transfer==0.3.3 +scikit-learn==1.0.2 +scipy==1.7.3 +scmrepo==0.0.7 +Send2Trash==1.8.0 +setuptools==60.2.0 +shortuuid==1.0.8 +shtab==1.5.2 +six==1.16.0 +smmap==3.0.5 +sniffio==1.2.0 +starlette==0.16.0 +tabulate==0.8.9 +terminado==0.12.1 +testpath==0.5.0 +text-unidecode==1.3 +threadpoolctl==3.0.0 +toml==0.10.2 +tornado==6.1 +tqdm==4.62.3 +traitlets==5.1.1 +typing_extensions==4.0.1 +unicodedata2==14.0.0 +Unidecode==1.3.2 +urllib3==1.26.7 +uvicorn==0.16.0 +voluptuous==0.12.2 +wcwidth==0.2.5 +webencodings==0.5.1 +websocket-client==1.2.3 +wheel==0.37.1 +widgetsnbextension==3.5.2 +wrapt==1.13.3 +xmltodict==0.12.0 +yarl==1.7.2 +zc.lockfile==2.0 +zipp==3.6.0 +gunicorn diff --git a/starter/request_heroku_api.py b/starter/request_heroku_api.py new file mode 100644 index 0000000..69a4e39 --- /dev/null +++ b/starter/request_heroku_api.py @@ -0,0 +1,25 @@ +import requests + + +req_data = { + "age": 41, + "workclass": "Private", + "fnlgt": 45781, + "education": "Masters", + "education-num": 14, + "marital-status": "Married-civ-spouse", + "occupation": "Prof-specialty", + "relationship": "Not-in-family", + "race": "White", + "sex": "Male", + "capital-gain": 2020, + "capital-loss": 0, + "hours-per-week": 50, + "native-country": "United-States" +} +req = requests.post('https://mlop3-fastapi-app.herokuapp.com/', json=req_data) + +assert req.status_code == 200 + +print("Response code: ", req.status_code) +print("Response body: ", req.json()) diff --git a/starter/requirements.txt b/starter/requirements.txt index fc7fe03..1232ed4 100644 --- a/starter/requirements.txt +++ b/starter/requirements.txt @@ -1,9 +1,9 @@ -python==3.8 -numpy -pandas -scikit-learn -pytest -requests -fastapi==0.63.0 -uvicorn -gunicorn +python==3.8 +numpy +pandas +scikit-learn +pytest +requests +fastapi==0.63.0 +uvicorn +gunicorn diff --git a/starter/screenshots/continuous_deloyment.png b/starter/screenshots/continuous_deloyment.png new file mode 100644 index 0000000..244c87f Binary files /dev/null and b/starter/screenshots/continuous_deloyment.png differ