Pyramid has a very flexible security system <a href="http:&#x2F;&#x2F;docs.pylonsproject.org&#x2F;projects&#x2F;pyramid&#x2F;en&#x2F;latest&#x2F;narr&#x2F;security.html" rel="nofollow">http:&#x2F;&#x2F;docs.pylonsproject.org&#x2F;projects&#x2F;pyramid&#x2F;en&#x2F;latest&#x2F;nar...</a><p>You can define access control policies on a resource by resource basis. These can, where necessary, allow or deny permissions to individuals or roles based on the resource and request data.<p>There&#x27;s a nice demo &#x2F; walk through of capabilities here <a href="https:&#x2F;&#x2F;github.com&#x2F;mmerickel&#x2F;pyramid_auth_demo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mmerickel&#x2F;pyramid_auth_demo</a>