klein icon indicating copy to clipboard operation
klein copied to clipboard

werkzeug + twisted.web

Results 167 klein issues
Sort by recently updated
recently updated
newest added

Django automatically restarts the server if something changes. Is there similar functionality in klein or a pattern that is often used in python3?

feature

[Tornado](https://technobeans.com/2012/09/17/tornado-file-uploads/), [Flask](http://flask.pocoo.org/docs/0.12/patterns/fileuploads/), [Django](https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/), and most current web frameworks allows for convenient functions for uploading files to the backend. Klein should handle file uploads in a similar fashion as well. Here's...

feature

The most common error I run into when rapidly making a little klein app is when I accidentally overwrite a function when I copy an existing route or accidentally name...

improvement

The following doesn't work, returning a file not found error. ``` python @app.route("/") def root(request): return File("index.html") ``` The following works ``` python @app.route("/index.html") def root(request): return File("index.html") ``` And...

bug

Branched routes don't handle errors of the "base" `Resource`. Hopefully an example to start things off will be beneficial. ``` python from klein import Klein from werkzeug.exceptions import NotFound app1...

bug

The `route` decorator should accept `URL` objects as well as strings.

feature

A use-case to set the stage: I want to generalize my approach to `handle_errors` and sub-routes. This means I want to do something like: ``` @attr.s class RootAPI: remoteErrorHandlerConfig =...

improvement

Following up on #174 : https://github.com/twisted/klein/pull/174#discussion_r108026332

improvement

In a properly REST application, the server should engage in [content negotiation](https://en.wikipedia.org/wiki/Content_negotiation) to deliver the client's preferred representation of a resource. I would love to make it possible, within klein,...

feature

Rather than be a mismatched PEP8-Twisted code standard mess, it should be moved to meet Twisted's standard, with the old ones throwing deprecation warnings if possible.

improvement