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
#!/usr/bin/env python | |
import os | |
from flask import Flask, abort, request, jsonify, g, url_for | |
from flask.ext.sqlalchemy import SQLAlchemy | |
from sqlalchemy.inspection import inspect | |
from flask.ext.httpauth import HTTPBasicAuth | |
from passlib.apps import custom_app_context as pwd_context | |
from itsdangerous import (TimedJSONWebSignatureSerializer | |
as Serializer, BadSignature, SignatureExpired) |
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 ctypes | |
import platform | |
import os | |
class HardDriveSpaceException(Exception): | |
def __init__(self, value): | |
self.parameter = value | |
def __str__(self): | |
return repr(self.parameter) |
OlderNewer