Hi, I just uploaded CorePost 0.0.5 to PyPi.<div><br></div><div>CorePost is a REST microframework built on top of the core twisted.web APIs, providing a Flask-inspired API for building REST applications.</div><div><br></div>
<div>Version 0.0.5 integrates FormEncode for integrated path/form/query argument validation,</div><div>similar to the way Pylons/TurboGears use it.</div><div><br></div><div>Example:</div><div><span class="Apple-style-span" style="font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; background-color: rgb(248, 248, 248); "><pre style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; font: normal normal normal 12px/normal &#39;Bitstream Vera Sans Mono&#39;, Courier, monospace; font-size: 12px; background-color: rgb(238, 238, 238); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); color: rgb(68, 68, 68); overflow-x: auto; overflow-y: auto; -webkit-box-shadow: rgba(0, 0, 0, 0.0664062) 0px 1px 2px inset; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; ">
<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; font: normal normal normal 12px/normal &#39;Bitstream Vera Sans Mono&#39;, Courier, monospace; font-size: 12px !important; background-color: rgb(238, 238, 238) !important; color: rgb(68, 68, 68) !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-top-style: none !important; border-right-style: none !important; border-bottom-style: none !important; border-left-style: none !important; border-top-color: rgb(222, 222, 222) !important; border-right-color: rgb(222, 222, 222) !important; border-bottom-color: rgb(222, 222, 222) !important; border-left-color: rgb(222, 222, 222) !important; border-width: initial !important; border-color: initial !important; ">from corepost.web import CorePost, validate
from corepost.enums import Http
from formencode import Schema, validators

app = CorePost()

class TestSchema(Schema):
    allow_extra_fields = True
    childId = validators.Regex(regex=&quot;^value1|value2$&quot;)

@app.route(&quot;/validate/&lt;int:rootId&gt;/schema&quot;,Http.POST)
@validate(schema=TestSchema)
def postValidateSchema(request,rootId,childId,**kwargs):
    &#39;&#39;&#39;Validate using a common schema&#39;&#39;&#39;
    return &quot;%s - %s - %s&quot; % (rootId,childId,kwargs)

@app.route(&quot;/validate/&lt;int:rootId&gt;/custom&quot;,Http.POST)
@validate(childId=validators.Regex(regex=&quot;^value1|value2$&quot;))
def postValidateCustom(request,rootId,childId,**kwargs):
    &#39;&#39;&#39;Validate using argument-specific validators&#39;
    return &quot;%s - %s - %s&quot; % (rootId,childId,kwargs)  </code></pre></span></div><div><br></div><div>More docs on our site:</div><div><a href="https://github.com/jacek99/corepost">https://github.com/jacek99/corepost</a></div>
<div><br></div><div>Any feedback is welcome</div><div><br></div><div>Cheers,</div><div>Jacek</div>