for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# coding: utf-8
from schematics.models import Model
from schematics.types import StringType, IntType
from schematics.types.compound import ModelType
class Proxy(Model):
host = StringType(
default="",
required=True,
)
port = IntType(
default=1080,
user = StringType(
password = StringType(
class Connection(Model):
min_value=1000,
max_value=65000,
default=21000,
max_clients = IntType(
min_value=1,
max_value=128,
default=8,
throughput = IntType(
min_value=300,
max_value=1000000,
default=5000,
proxy = ModelType(
model_spec=Proxy,