~minus/stewdio-api

5ca0ebe099ab7c7d729efa3f1059e8d71c9e6e60 — minus 6 years ago b07010f
Move code to a package
30 files changed, 11 insertions(+), 11 deletions(-)

M run.sh
A stewdio/__init__.py
R app.py => stewdio/app.py
R config.py => stewdio/config.py
R misc.py => stewdio/misc.py
R search/.gitignore => stewdio/search/.gitignore
R search/__init__.py => stewdio/search/__init__.py
R search/ast.py => stewdio/search/ast.py
R search/parse.py => stewdio/search/parse.py
R search/parse_test.py => stewdio/search/parse_test.py
R search/query.py => stewdio/search/query.py
R search/requirements.txt => stewdio/search/requirements.txt
R static/css/bootstrap-theme.css => stewdio/static/css/bootstrap-theme.css
R static/css/bootstrap-theme.css.map => stewdio/static/css/bootstrap-theme.css.map
R static/css/bootstrap-theme.min.css => stewdio/static/css/bootstrap-theme.min.css
R static/css/bootstrap.css => stewdio/static/css/bootstrap.css
R static/css/bootstrap.css.map => stewdio/static/css/bootstrap.css.map
R static/css/bootstrap.min.css => stewdio/static/css/bootstrap.min.css
R static/fonts/glyphicons-halflings-regular.eot => stewdio/static/fonts/glyphicons-halflings-regular.eot
R static/fonts/glyphicons-halflings-regular.svg => stewdio/static/fonts/glyphicons-halflings-regular.svg
R static/fonts/glyphicons-halflings-regular.ttf => stewdio/static/fonts/glyphicons-halflings-regular.ttf
R static/fonts/glyphicons-halflings-regular.woff => stewdio/static/fonts/glyphicons-halflings-regular.woff
R static/fonts/glyphicons-halflings-regular.woff2 => stewdio/static/fonts/glyphicons-halflings-regular.woff2
R static/js/bootstrap.js => stewdio/static/js/bootstrap.js
R static/js/bootstrap.min.js => stewdio/static/js/bootstrap.min.js
R static/js/jquery-2.1.3.js => stewdio/static/js/jquery-2.1.3.js
R static/js/jquery-2.1.3.min.js => stewdio/static/js/jquery-2.1.3.min.js
R static/js/npm.js => stewdio/static/js/npm.js
R tagging.py => stewdio/tagging.py
R templates/index.html => stewdio/templates/index.html
M run.sh => run.sh +1 -1
@@ 4,4 4,4 @@ cd "$(dirname "$0")"

source venv3/bin/activate

exec gunicorn -b 127.0.0.1:8011 --worker-class eventlet app:app
exec gunicorn -b 127.0.0.1:8011 --worker-class eventlet stewdio:app

A stewdio/__init__.py => stewdio/__init__.py +1 -0
@@ 0,0 1,1 @@
from .app import app

R app.py => stewdio/app.py +5 -5
@@ 1,8 1,8 @@
from config import redis
import config
import tagging
from misc import json_api, with_pg_cursor
from search import search as search_internal, search_by_hash, search_favorites, get_random
from .config import redis
from . import config
from . import tagging
from .misc import json_api, with_pg_cursor
from .search import search as search_internal, search_by_hash, search_favorites, get_random

import os
import json

R config.py => stewdio/config.py +0 -0
R misc.py => stewdio/misc.py +1 -1
@@ 1,4 1,4 @@
import config
from . import config

import json
import flask

R search/.gitignore => stewdio/search/.gitignore +0 -0
R search/__init__.py => stewdio/search/__init__.py +0 -0
R search/ast.py => stewdio/search/ast.py +0 -0
R search/parse.py => stewdio/search/parse.py +0 -0
R search/parse_test.py => stewdio/search/parse_test.py +0 -0
R search/query.py => stewdio/search/query.py +0 -0
R search/requirements.txt => stewdio/search/requirements.txt +0 -0
R static/css/bootstrap-theme.css => stewdio/static/css/bootstrap-theme.css +0 -0
R static/css/bootstrap-theme.css.map => stewdio/static/css/bootstrap-theme.css.map +0 -0
R static/css/bootstrap-theme.min.css => stewdio/static/css/bootstrap-theme.min.css +0 -0
R static/css/bootstrap.css => stewdio/static/css/bootstrap.css +0 -0
R static/css/bootstrap.css.map => stewdio/static/css/bootstrap.css.map +0 -0
R static/css/bootstrap.min.css => stewdio/static/css/bootstrap.min.css +0 -0
R static/fonts/glyphicons-halflings-regular.eot => stewdio/static/fonts/glyphicons-halflings-regular.eot +0 -0
R static/fonts/glyphicons-halflings-regular.svg => stewdio/static/fonts/glyphicons-halflings-regular.svg +0 -0
R static/fonts/glyphicons-halflings-regular.ttf => stewdio/static/fonts/glyphicons-halflings-regular.ttf +0 -0
R static/fonts/glyphicons-halflings-regular.woff => stewdio/static/fonts/glyphicons-halflings-regular.woff +0 -0
R static/fonts/glyphicons-halflings-regular.woff2 => stewdio/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
R static/js/bootstrap.js => stewdio/static/js/bootstrap.js +0 -0
R static/js/bootstrap.min.js => stewdio/static/js/bootstrap.min.js +0 -0
R static/js/jquery-2.1.3.js => stewdio/static/js/jquery-2.1.3.js +0 -0
R static/js/jquery-2.1.3.min.js => stewdio/static/js/jquery-2.1.3.min.js +0 -0
R static/js/npm.js => stewdio/static/js/npm.js +0 -0
R tagging.py => stewdio/tagging.py +3 -4
@@ 1,11 1,10 @@
from .misc import with_pg_cursor, json_api, song_hash2id

from flask import Blueprint
import psycopg2
import psycopg2.extras
import logging

from misc import with_pg_cursor, json_api, song_hash2id

from flask import Blueprint


L = logging.getLogger("stewdio.tagging")


R templates/index.html => stewdio/templates/index.html +0 -0