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 asyncio | |
from functools import wraps | |
import os | |
import subprocess | |
import time | |
class await_maybe: | |
def __init__(self, val): |
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
from functools import partial | |
import requests | |
class Variable(object): | |
required = False | |
default = None | |
def __init__(self, name, required=None, default=None): |
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
from copy import copy | |
from time import sleep | |
class OutOfSpace(Exception): | |
pass | |
class TapeNotFound(Exception): | |
pass | |
class Tape(object): |
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
""" | |
Utilities for working with ConfigurationModels. | |
""" | |
from __future__ import unicode_literals, absolute_import | |
from django.apps import apps | |
from django.contrib.auth.models import User | |
from rest_framework.parsers import JSONParser | |
from rest_framework.serializers import ModelSerializer |