]>
git.ipfire.org Git - thirdparty/starlette.git/log
Tom Christie [Wed, 17 Oct 2018 15:54:02 +0000 (16:54 +0100)]
Add WSGI middleware (#120)
* Add WSGI middleware
* Fix for WSGI middleware tests
Tom Christie [Wed, 17 Oct 2018 13:01:26 +0000 (14:01 +0100)]
Fix Headers repr
Tom Christie [Wed, 17 Oct 2018 12:33:36 +0000 (13:33 +0100)]
Add QueryParams(items=...)
Tom Christie [Wed, 17 Oct 2018 12:07:03 +0000 (13:07 +0100)]
Version 0.5.0
Tom Christie [Wed, 17 Oct 2018 11:31:53 +0000 (12:31 +0100)]
Add scope=... arguments to Headers, QueryParams, URL (#118)
Jeff Buttars [Wed, 17 Oct 2018 11:31:20 +0000 (05:31 -0600)]
Add http and websocket status codes with descriptive variables (#43)
* Add status.py for http and websocket status code with descriptive
variable names.
* Fix import of status
* Add status usage to tests
* change wsconnect to websocket_connect
* Update with master
Tom Christie [Wed, 17 Oct 2018 10:17:07 +0000 (11:17 +0100)]
Tweak to cookie docs
Alexander Botello [Wed, 17 Oct 2018 10:15:32 +0000 (05:15 -0500)]
Add documentation for cookies (#116)
* Add cookies to request docs
* Add cookies to response docs
* Reformat the postion of methods
gfeun [Wed, 17 Oct 2018 10:08:06 +0000 (12:08 +0200)]
Fix typo in README example (#117)
Tom Christie [Wed, 17 Oct 2018 08:00:45 +0000 (09:00 +0100)]
Note zero hard dependencies
Tom Christie [Tue, 16 Oct 2018 15:10:34 +0000 (16:10 +0100)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Tue, 16 Oct 2018 15:10:24 +0000 (16:10 +0100)]
Add feature list to README/docs
Tom Christie [Tue, 16 Oct 2018 14:56:28 +0000 (15:56 +0100)]
Add final missing annotations, and enable '--disallow-untyped-defs' (#115)
* fix(dataStructures): missing annotations added
* fix(requests.py): annotations added
* fix(Annotations): wrong annotations fixed on datastructures and requests modules.
* fix(Missing annotation): missing annotations added on testclient module.
* fix(testclient): annotations fixed
* minor tweaks
* fix(testclient): Session request method fixed. WIP _ASGIAdapter send method
* fix(testclient): small tweaks
* Switch on --disallow-untyped-defs when testing with mypy
Tom Christie [Tue, 16 Oct 2018 12:20:10 +0000 (13:20 +0100)]
Add missing type annotations (#113)
* Add missing type annotations
* Type annotation tweak
Tom Christie [Tue, 16 Oct 2018 09:28:11 +0000 (10:28 +0100)]
Type annotation tweaks
Marcos Schroh [Tue, 16 Oct 2018 09:25:58 +0000 (11:25 +0200)]
Missing annotations added on responses module. (#67)
* fix(dataStructures): missing annotations added
* fix(requests.py): annotations added
* fix(Annotations): wrong annotations fixed on datastructures and requests modules.
* fix(Missing annotation): missing annotations added on responses module.
* fix(responses): annotations fixed
* fix(datastructures): missing annotations added
Tom Christie [Tue, 16 Oct 2018 09:22:55 +0000 (10:22 +0100)]
Adding type annotations (#112)
* Adding type annotations
* Add missing import
Marcos Schroh [Tue, 16 Oct 2018 08:26:37 +0000 (10:26 +0200)]
Missing annotations added on applications module (#73)
* fix(dataStructures): missing annotations added
* fix(requests.py): annotations added
* fix(Annotations): wrong annotations fixed on datastructures and requests modules.
* fix(Missing annotation): missing annotations added on applications module.
* fix(): ASGIApp annotation type should be used.
* fix(): Optional typing should be avoided when we have default values.
* fix(applications): unnecessary comment for annotation deleted
* small tweaks
* fix(applications): annotations fixed
* fix: Methods should have None as default value on Path
* fix(applications): Unnecessary annotation removed.
Tom Christie [Mon, 15 Oct 2018 11:21:01 +0000 (12:21 +0100)]
Version 0.4.2
Tom Christie [Mon, 15 Oct 2018 11:08:10 +0000 (12:08 +0100)]
Add GZip middleware (#111)
Tom Christie [Mon, 15 Oct 2018 09:13:09 +0000 (10:13 +0100)]
Enable mypy in tests (#110)
Tom Christie [Mon, 15 Oct 2018 08:36:05 +0000 (09:36 +0100)]
Handle server: None and scheme: None cases in URL scope (#109)
Tom Christie [Fri, 12 Oct 2018 17:15:56 +0000 (18:15 +0100)]
Version 0.4.1
Tom Christie [Fri, 12 Oct 2018 17:15:04 +0000 (18:15 +0100)]
Form parsing (#102)
* Work towards MultiPartParser
* Work towards MultiPartParser
* Add test for multipart files
* MultiPart parsing
* Fix for large multipart messages
* Add python-multipart to docs
* Add python-multipart to 'pip install starlette[full]'
* Add FormParser
* Add docs for request.form()
* Drop mypy momentarily
Alex Botello [Fri, 12 Oct 2018 08:46:10 +0000 (03:46 -0500)]
Respond to credentialed requests with specific origin (#105)
* Respond with specific origin instead of wildcard for credentialed requests
* Add test case for credentialed standard request
* Add tests for setting vary header
Tom Christie [Wed, 10 Oct 2018 16:33:12 +0000 (17:33 +0100)]
Enable mypy in tests (#103)
* Enable mypy in tests
* Fix TestClient annotations
Tom Christie [Wed, 10 Oct 2018 16:12:58 +0000 (17:12 +0100)]
Version 0.4.0
Tom Christie [Wed, 10 Oct 2018 16:04:12 +0000 (17:04 +0100)]
Add explicit UJSONResponse (#99)
Tom Christie [Wed, 10 Oct 2018 08:01:01 +0000 (09:01 +0100)]
Version 0.3.7
Ben Fitzhardinge [Wed, 10 Oct 2018 08:00:09 +0000 (16:00 +0800)]
Added init file so autodetect will pick up middleware (#101)
Tom Christie [Tue, 9 Oct 2018 14:48:34 +0000 (15:48 +0100)]
Version 0.3.6
Tom Christie [Tue, 9 Oct 2018 14:47:51 +0000 (15:47 +0100)]
Add support for `app.on_event("startup")` and `app.on_event("cleanup")`. (#98)
* Push black linting into ./scripts/test Fix some annotations etc.
* Skip black on 3.7
* Fix script
* Blergh. Shell equality tests are weird
* Attempt to fix equality check
* Document 'allow_origin_regex'
* Support app.on_event('startup') and app.on_event('cleanup')
* Nicer decorator handling for on_event
* Add documentation for app.on_event()
Karan Suthar [Tue, 9 Oct 2018 11:41:53 +0000 (17:11 +0530)]
unicorn command correction in docs (#97)
Tom Christie [Tue, 9 Oct 2018 11:27:27 +0000 (12:27 +0100)]
Push black linting into ./scripts/test (#96)
* Push black linting into ./scripts/test Fix some annotations etc.
* Skip black on 3.7
* Fix script
* Blergh. Shell equality tests are weird
* Attempt to fix equality check
Tom Christie [Tue, 9 Oct 2018 09:07:51 +0000 (10:07 +0100)]
Don't partially enforce CORS server-side (#93)
* Don't partially enforce CORS server-side
* Comment on CORS enforcement
Alex Botello [Tue, 9 Oct 2018 08:35:08 +0000 (03:35 -0500)]
Support `allow_origin_regex` in CORSMiddleware (#92)
* Add tests for allow_origin_regex
* Add support for allow_origin_regex
* black linting
* refactor if statement on line 76
* Invert conditional to a more readable syntax
Tom Christie [Mon, 8 Oct 2018 09:39:43 +0000 (10:39 +0100)]
Extra guardrails for ensuring correct responses with TestClient (#91)
* Extra guardrails for ensuring correct responses with TestClient
* Black formatting
Tom Christie [Mon, 8 Oct 2018 07:56:23 +0000 (08:56 +0100)]
Version 0.3.5
Jordan Eremieff [Sat, 6 Oct 2018 12:08:16 +0000 (22:08 +1000)]
Cookies (#86)
* Initial cookies support for response/request classes
* Type hint
* Drop .get_cookie() from request class
Alex Botello [Sat, 6 Oct 2018 11:54:53 +0000 (06:54 -0500)]
Fix runtime error within CORSMiddleware (#88)
* Fix duplicate messages sent in CORSMiddleware.
Tom Christie [Fri, 5 Oct 2018 15:39:11 +0000 (16:39 +0100)]
Version 0.3.4
Tom Christie [Fri, 5 Oct 2018 15:38:02 +0000 (16:38 +0100)]
Middleware and CORS support (#83)
* Tweaks to URL datastructure
* Linting
* Add Middleware
* Type annotations
* CORS support
* Add CORS support
* Fix code example
Tom Christie [Fri, 5 Oct 2018 11:04:11 +0000 (12:04 +0100)]
Middleware (#82)
* Tweaks to URL datastructure
* Linting
* Add Middleware
Tom Christie [Fri, 5 Oct 2018 10:29:06 +0000 (11:29 +0100)]
Tweaks to URL datastructure (#81)
* Tweaks to URL datastructure
* Linting
Marcos Schroh [Tue, 2 Oct 2018 18:06:34 +0000 (20:06 +0200)]
Missing annotations added on staticfiles module (#70)
* fix(Missing annotation): missing annotations added on staticfiles module.
* fix(staticfiles annotations): annotations fixed.
* refactor(staticfiles): only instanciate a class when is necessary.
Tom Christie [Tue, 2 Oct 2018 12:31:09 +0000 (13:31 +0100)]
Version 0.3.3
Tom Christie [Tue, 2 Oct 2018 12:24:02 +0000 (13:24 +0100)]
Type hinting
Marcos Schroh [Tue, 2 Oct 2018 12:15:33 +0000 (14:15 +0200)]
Missing annotations on websockets module. (#69)
* fix(Missing annotation): missing annotations added on websockets module.
* fix(websockets annotations): implied optionals should be used.
Tom Christie [Tue, 2 Oct 2018 12:13:16 +0000 (13:13 +0100)]
replace -> replace_components (Avoid clashing with str builtin)
Marcos Schroh [Tue, 2 Oct 2018 11:31:05 +0000 (13:31 +0200)]
Missing annotations added datastructures & requests modules (#60)
* fix(dataStructures): missing annotations added
* fix(requests.py): annotations added
* fix(Annotations): wrong annotations fixed on datastructures and requests modules.
Tom Christie [Tue, 2 Oct 2018 11:29:44 +0000 (12:29 +0100)]
Update background task tests
Tom Christie [Tue, 2 Oct 2018 10:47:49 +0000 (11:47 +0100)]
Minor tweaks to background task docs
Alex Botello [Tue, 2 Oct 2018 10:40:08 +0000 (05:40 -0500)]
Add support for background tasks (#65)
* Build out a BackgroundTask class
* Integrate BackgroundTask into Response class
* Add test cases for background tasks
* Add documentation for background tasks
* Reformat files with black
* Make requested changes
* Improve documentation example
Tom Christie [Tue, 2 Oct 2018 10:30:54 +0000 (11:30 +0100)]
Minor tweaks to WS docs
Jordan Eremieff [Tue, 2 Oct 2018 10:26:19 +0000 (20:26 +1000)]
Class-based websocket handler (#62)
* WebSocketEndpoint class, docs, tests.
* Refactor WebSocketEndpoint class to only store scope. Update WebSocketEndpoint docs example and tests.
* Add decode method to WebSocketEndpoint, update docs, update tests
Marcos Schroh [Fri, 28 Sep 2018 09:41:22 +0000 (11:41 +0200)]
Missing annotations debug module (#68)
* fix(Missing annotation): missing annotations added on debug module.
* fix(debug.py): linting fixed.
* fix(debug annotations): annotations fixed.
* fix(): ASGIInstance annotation type should be used on return of _DebugResponder __call__ method.
* fix(): Exception type should be used instead of Any.
Marcos Schroh [Thu, 27 Sep 2018 09:19:21 +0000 (11:19 +0200)]
fix(Missing annotation): missing annotations added on endpoints module. (#72)
Marcos Schroh [Wed, 26 Sep 2018 14:30:38 +0000 (16:30 +0200)]
fix(Missing annotation): missing annotations added on routing module. (#71)
Tom Christie [Thu, 20 Sep 2018 09:00:25 +0000 (10:00 +0100)]
Add link to latest TechEmpower benchmarks (#61)
Tom Christie [Tue, 18 Sep 2018 10:03:18 +0000 (11:03 +0100)]
Black formatting
Tom Christie [Mon, 17 Sep 2018 13:59:21 +0000 (14:59 +0100)]
Version 0.3.2
Tom Christie [Mon, 17 Sep 2018 13:59:09 +0000 (14:59 +0100)]
Ensure TestClient sets HTTP reason phrase
Tom Christie [Fri, 14 Sep 2018 09:21:40 +0000 (10:21 +0100)]
Version 0.3.1
Tom Christie [Fri, 14 Sep 2018 09:19:26 +0000 (10:19 +0100)]
Add methods= to app.route
Tom Christie [Wed, 5 Sep 2018 12:45:39 +0000 (13:45 +0100)]
Minor changes to docs layout
Tom Christie [Wed, 5 Sep 2018 11:50:00 +0000 (12:50 +0100)]
Fix imports in docs
Tom Christie [Wed, 5 Sep 2018 10:44:54 +0000 (11:44 +0100)]
Tweak example: access logs on, port 8000
Tom Christie [Wed, 5 Sep 2018 10:39:38 +0000 (11:39 +0100)]
Version 0.3 (#57)
* Renamings
* Version 0.3.0
* Black formatting
* Update docs for 0.3
Jordan Eremieff [Wed, 5 Sep 2018 09:29:04 +0000 (19:29 +1000)]
Name changes (#55)
* Rename View -> HTTPEndpoint
* Rename views doc file -> endpoints
* Rename request/response files -> requests/responses, update imports, update docs
* Rename WebSocketSession -> WebSocket, rename session -> websocket in docs
* Full module imports in tests and source, removing imports from __init__ file
* Fix name in testclient doc
Tom Christie [Tue, 4 Sep 2018 10:54:04 +0000 (11:54 +0100)]
Version 0.2.3
Tom Christie [Tue, 4 Sep 2018 10:53:06 +0000 (11:53 +0100)]
Version 0.2.2
Tom Christie [Tue, 4 Sep 2018 10:52:29 +0000 (11:52 +0100)]
Exception handling (#54)
* Exception handling
* Black formatting
* Add exception handling to App
* Handle cases where exception raised but response already started
* Order exception handler lookup by class inheritance
* Handle 404/405 as responses without App, or exceptions with it.
* Only use TestClient(app, raise_exceptions=False) explicitly inside test cases
* Documentation for ExceptionMiddleware
* Drop error_handler/exception_handler distinction.
* Finesse and document TestClient(app, raise_server_exceptions=False)
* Refactoring to make debug responses easier to obtain from elsewhere in code
* Use named status_code argument in example
* Clean up raise_server_errors usage in tests
* Consistent title-casing in HTTP reason phrases
* Black formatting
* Add WebSocketClose close. Omit message-body on 204, 304 exception cases.
* Black formatting
* Add 'debug' flag to App and ExceptionMiddleware
* Support app.debug
* Document debug mode
* Documenting debug
Tom Christie [Thu, 30 Aug 2018 13:42:39 +0000 (14:42 +0100)]
Use 405 for Method Not Allowed (#53)
Tom Christie [Thu, 30 Aug 2018 12:54:24 +0000 (13:54 +0100)]
Version 0.2.1
Tom Christie [Thu, 30 Aug 2018 12:53:37 +0000 (13:53 +0100)]
Class based views (#52)
* Renaming asgi_application, implementing CBV pattern, add_route method on router
* Refactor view to allow both sync/async methods
* Type hints for CBV
* Implement asgi decorator method directly in view class, remove classmethod
* Refactor CBV, remove router add_route method in favor of App.add_route method, tests, documentation
* Include tests
* Add support for class-based views
Tom Christie [Wed, 29 Aug 2018 10:33:59 +0000 (11:33 +0100)]
Make docs link more prominent
Tom Christie [Wed, 29 Aug 2018 10:31:32 +0000 (11:31 +0100)]
Move documentation out of README
Tom Christie [Wed, 29 Aug 2018 10:31:08 +0000 (11:31 +0100)]
Drop licence footer from page content
Tom Christie [Wed, 29 Aug 2018 10:17:09 +0000 (11:17 +0100)]
Update docs
Tom Christie [Tue, 28 Aug 2018 15:25:32 +0000 (16:25 +0100)]
Add mkdocs
Tom Christie [Tue, 28 Aug 2018 15:24:18 +0000 (16:24 +0100)]
Fix typo
Jeff Buttars [Tue, 28 Aug 2018 14:18:17 +0000 (08:18 -0600)]
Update test_client doc from README.md
Jeff Buttars [Tue, 28 Aug 2018 14:11:53 +0000 (08:11 -0600)]
Add Applications docs to mkdocs
Jeff Buttars [Tue, 28 Aug 2018 14:09:42 +0000 (08:09 -0600)]
Merge branch 'master' into mkdocs
Jeff Buttars [Tue, 28 Aug 2018 13:58:03 +0000 (07:58 -0600)]
Initial conversion of README.md to mkdocs
Tom Christie [Tue, 28 Aug 2018 13:46:47 +0000 (14:46 +0100)]
Version 0.2
Tom Christie [Tue, 28 Aug 2018 13:45:50 +0000 (14:45 +0100)]
Black formatting
Tom Christie [Tue, 28 Aug 2018 13:45:23 +0000 (14:45 +0100)]
Fixes to TestClient websocket docs
Tom Christie [Tue, 28 Aug 2018 13:45:06 +0000 (14:45 +0100)]
client.wsconnect -> client.websocket_connect
Tom Christie [Tue, 28 Aug 2018 13:34:18 +0000 (14:34 +0100)]
Add App class (#42)
* Add App class
* Black formatting
* Support kwargs in App routes
* Black formatting
* Use protocol based routing in app
* WebSocket close when no route found
* session.send(...), session.receive(...) for test client
* Support app.mount(prefix, app)
* Black formatting
* Black formatting
* Minor tweaks to websocket test client
* Add 'App' to README
Tom Christie [Mon, 27 Aug 2018 14:42:05 +0000 (15:42 +0100)]
Update table of contents
Jeff Buttars [Mon, 27 Aug 2018 14:38:56 +0000 (14:38 +0000)]
Add a TOC to the repo README (#40)
Tom Christie [Mon, 27 Aug 2018 14:38:44 +0000 (15:38 +0100)]
Drop asgi_application decorator (#41)
Tom Christie [Mon, 27 Aug 2018 13:51:24 +0000 (14:51 +0100)]
Redirect response (#39)
* Minor Request cleanups
* Black formatting
* Add RedirectResponse
* Black formatting
* Clean up test_redirect_response test case
Tom Christie [Fri, 17 Aug 2018 16:20:17 +0000 (17:20 +0100)]
Minor Request cleanups (#38)
* Minor Request cleanups
* Black formatting
Tom Christie [Fri, 17 Aug 2018 15:40:40 +0000 (16:40 +0100)]
Version 0.1.16
Tom Christie [Fri, 17 Aug 2018 15:36:48 +0000 (16:36 +0100)]
WebSockets support (#37)
* WebSockets support
* WebSockets support
* WebSockets support
* Black formatting
* Add missing descriptions against websocket test session docs
* Add missing descriptions against websocket test session docs
* Add note on session.send() / session.receive()
Tom Christie [Thu, 26 Jul 2018 13:43:09 +0000 (14:43 +0100)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Thu, 26 Jul 2018 13:43:02 +0000 (14:43 +0100)]
Version 0.1.15
Simon Willison [Thu, 26 Jul 2018 13:41:05 +0000 (06:41 -0700)]
Correctly handle static files larger than 4096 bytes (#33)
* Fixed bug in FileResponse with files larger than 4096 bytes (single message chunk)
* Failing test for static file larger than 4096 bytes