Skip to content
Snippets Groups Projects
Commit 73298afa authored by rxd's avatar rxd
Browse files

initial setup

parents
No related branches found
No related tags found
No related merge requests found
# This is a sample .gitignore file that's useful for EECS 485 projects.
#
# Add this file to the root of your git repo. Name it .gitignore
#
# A .gitignore file will tell git which files and directories to ignore and
# not add to version control.
# EECS 485 All Projects
submit.tar.gz
submit.tar.xz
starter_files.tar.gz
starter_files.tar.xz
# EECS 485 Project 1
/insta485/html/
/hello/html/
/hello_css/html/
# EECS 485 Project 2
*.pem
*.db
var/
# EECS 485 Project 3
node_modules/
cookies.txt
bundle.js
# EECS 485 Project 4
tmp
output
# EECS 485 Project 5
output*
total_document_count.txt
*/hadoop/inverted_index/inverted_index.txt
# Python
*.pyc
__pycache__/
*.egg-info*
dist/
env/
venv/
venv3/
.venv/
.pytest_cache
# JavaScript
bundle.js
*node_modules*
files_for_autograder_io/
*/var/*
# Virtual Machines
.vagrant/
# Text editors and IDEs
*~
*.lock
*.swp
.vscode
.ropeproject/
.vscode/
# macOS system files
*.DS_Store
# Google Drive and Dropbox
Icon
.dropbox*
"""MemeGenerator initializer."""
import flask
# app is a single object used by all the code modules in this package
app = flask.Flask(__name__) # pylint: disable=invalid-name
# Read settings from config module (MemeGenerator/config.py)
app.config.from_object('MemeGenerator.config')
# Overlay settings read from a Python file whose path is set in the environment
# variable INSTA485_SETTINGS. Setting this environment variable is optional.
# Docs: http://flask.pocoo.org/docs/latest/config/
#
# EXAMPLE:
# $ export INSTA485_SETTINGS=secret_key_config.py
# app.config.from_envvar('INSTA485_SETTINGS', silent=True)
# Tell our app about views and model. This is dangerously close to a
# circular import, which is naughty, but Flask was designed that way.
# (Reference http://flask.pocoo.org/docs/patterns/packages/) We're
# going to tell pylint and pycodestyle to ignore this coding style violation.
import MemeGenerator.views # noqa: E402 pylint: disable=wrong-import-position
"""MemeGenerator development configuration."""
import pathlib
# Root of this application, useful if it doesn't occupy an entire domain
APPLICATION_ROOT = '/'
# Secret key for encrypting cookies
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
<head>
<title>MemGenerator</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<nav class="navbar navbar-light bg-light">
<span class="navbar-brand mb-0 h1">MemeGenerator</span>
</nav>
{% block body %}
{% endblock %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</body>
</html>
\ No newline at end of file
{% extends "base.html" %}
{% block body %}
<form action="/search" method="GET">
<input type="text" value="{{ query }}" name="q" />
<input type="submit" value="Search"/>
</form>
{% endblock %}
"""Views, one for each MemeGenerator page."""
from MemeGenerator.views.index import show_index
"""
MemeGenerator index (main) view.
URLs include:
/
"""
import hashlib
import logging
import os
import arrow
import flask
import MemeGenerator
@MemeGenerator.app.route('/')
def show_index():
return flask.render_template('index.html')
@MemeGenerator.app.route('/search')
def show_search():
query = flask.request.args.get('query')
\ No newline at end of file
arrow==1.2.1
astroid==2.9.3
attrs==21.4.0
beautifulsoup4==4.10.0
bs4==0.0.1
certifi==2021.10.8
chardet==4.0.0
charset-normalizer==2.0.10
click==8.0.3
Flask==2.0.2
html5validator==0.4.0
idna==3.3
importlib-metadata==1.7.0
iniconfig==1.1.1
isort==5.10.1
itsdangerous==2.0.1
Jinja2==3.0.3
lazy-object-proxy==1.7.1
MarkupSafe==2.0.1
mccabe==0.6.1
more-itertools==8.5.0
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
py==1.11.0
pycodestyle==2.8.0
pydocstyle==6.1.1
pylint==2.12.2
pyparsing==3.0.6
pytest==6.2.5
pytest-mock==3.6.1
python-dateutil==2.8.2
PyYAML==6.0
requests==2.27.1
six==1.16.0
snowballstemmer==2.2.0
soupsieve==2.3.1
toml==0.10.2
typed-ast==1.5.2
typing_extensions==4.0.1
urllib3==1.26.8
wcwidth==0.2.5
Werkzeug==2.0.2
wrapt==1.13.3
zipp==3.1.0
setup.py 0 → 100644
"""
Insta485 python package configuration.
Andrew DeOrio <awdeorio@umich.edu>
"""
from setuptools import setup
setup(
name='MemeGenerator',
version='0.1.0',
packages=['MemeGenerator'],
include_package_data=True,
install_requires=[
'arrow',
'bs4',
'Flask',
'html5validator',
'pycodestyle',
'pydocstyle',
'pylint',
'pytest',
'pytest-mock',
'requests',
],
python_requires='>=3.6',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment