Skip to content

Instantly share code, notes, and snippets.

@dgnsrekt
dgnsrekt / flask_drive_example.py
Created June 23, 2018 11:53 — forked from prahladyeri/flask_drive_example.py
google drive api implementation in python-flask framework
##
# Flask Drive Example App
#
# @author Prahlad Yeri <prahladyeri@yahoo.com>
# @date 30-12-2016
# Dependency:
# 1. pip install flask google-api-python-client
# 2. make sure you have client_id.json in this same directory.
import os
@dgnsrekt
dgnsrekt / gb-parse.py
Created June 17, 2018 22:34
idea for parsing bags and estimated value from gunbot.
from pathlib import Path
import os
import json
import pandas as pd
from datetime import datetime
BASEPATH = Path(__file__).parent
exchange = 'binance'
tradepair_state_paths = sorted(BASEPATH.glob(f'{exchange}-BTC-*-state.json'), key=os.path.getmtime, reverse=True)
import dash
import dash_core_components as dcc
import dash_html_components as html
import flask
import os
app = dash.Dash()
app.layout = html.Div('Hello World')
import pandas as pd
class BB():
def __init__(self, df):
self.data = df
self.periods = 30
self.length = 30
self.mult = 2.0
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python