This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import csv | |
import time | |
import pandas as pd | |
def clean_input(start, stop): | |
start = time.mktime(time.strptime(start, '%Y-%m-%d %H:%M:%S.%f')) | |
stop = float(int(stop)) | |
return stop, start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
import fcntl | |
import json | |
import sqlite3 | |
import time | |
import uuid | |
from typing import Any | |
from typing import Generator | |
from typing import Optional | |
from typing import Tuple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gunicorn 'wsgi:app' -b 127.0.0.1:5000 \ | |
--name wsgi_app \ | |
--workers 5 \ | |
--worker-class aiohttp.GunicornWebWorker \ | |
--access-logfile /dev/stdout | |
--enable-stdio-inheritance \ | |
--log-level debug \ | |
--reload \ | |
--access-logformat '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"' \ | |
--bind=unix:sock/wsgi_app.sock \ |