Code Monkey home page Code Monkey logo

calm's People

Contributors

haykd avatar mivade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

calm's Issues

Add security layer

Add a means to be able to define Calm Application security layer:

  • Add decorators and classes to define the security logic
  • Add security definitions to swagger.json

Update PyPI long description

PyPI does not support Markdown as the long_description format, thus we cannot use README.md for it.

Write up a brief description of Calm including all references for more information.

Add mechanism for setting default headers

Hi
Firstly, thank you for releasing Calm - I am having fun working with it.

I found that I needed to set a default header on all requests to enable CORS. I ended up using the following hack:

import calm.core
def set_default_headers(self, args, **kwargs):
self.set_header("Access-Control-Allow-Origin", "
")

calm.core.MainHandler.set_default_headers = set_default_headers

May be this is not the correct way to achieve this, but it would be great if there was a documented way to add a default header with out having to use custom request handler classes.

Many thanks

Richard

JSON-ify 404 page

When a URL is not found the Tornado 404 response is returned to the client, which happens to be HTML.

Make a custom JSON 404 response by configuring Tornado's default_handler application setting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.