]>
git.ipfire.org Git - thirdparty/starlette.git/log
Zaar Hai [Tue, 16 Jul 2019 11:36:19 +0000 (21:36 +1000)]
Black-ify
Zaar Hai [Tue, 16 Jul 2019 11:31:47 +0000 (21:31 +1000)]
Setting a finish size to SpooledTemporaryFile.
Fixes #579
Tom Christie [Tue, 16 Jul 2019 08:21:31 +0000 (09:21 +0100)]
Fix test case for https redirects
Tom Christie [Mon, 15 Jul 2019 12:16:14 +0000 (13:16 +0100)]
Update httpsredirect.py
Tom Christie [Mon, 15 Jul 2019 08:50:14 +0000 (09:50 +0100)]
Version 0.12.3
Tom Christie [Mon, 15 Jul 2019 08:48:58 +0000 (09:48 +0100)]
Merge pull request #535 from dmontagu/patch-1
Update staticfiles.py
Tom Christie [Sun, 14 Jul 2019 15:40:28 +0000 (16:40 +0100)]
Merge pull request #575 from blueyed/travis-py38
ci: Travis: re-add py38
Daniel Hahler [Sat, 13 Jul 2019 16:08:13 +0000 (18:08 +0200)]
ci: Travis: re-add py38
Ref: https://github.com/encode/starlette/pull/547
Tom Christie [Sun, 14 Jul 2019 07:26:00 +0000 (08:26 +0100)]
Merge pull request #576 from blueyed/fix-mypy
Move assignments to help mypy
Daniel Hahler [Sat, 13 Jul 2019 16:16:53 +0000 (18:16 +0200)]
Move assignments to help mypy
Fixes:
> error: No binding for nonlocal 'request_complete' found
mypy 0.720
Tom Christie [Tue, 9 Jul 2019 13:57:37 +0000 (14:57 +0100)]
Merge pull request #572 from encode/tweak-exception-debug-html
Tweak exception debug HTML
Tom Christie [Tue, 9 Jul 2019 13:49:47 +0000 (14:49 +0100)]
Linting
Tom Christie [Tue, 9 Jul 2019 13:47:47 +0000 (14:47 +0100)]
Fix collapse button control initial states
Tom Christie [Tue, 9 Jul 2019 13:28:24 +0000 (14:28 +0100)]
Tweak exception debug HTML
Tom Christie [Mon, 8 Jul 2019 16:14:23 +0000 (17:14 +0100)]
Merge pull request #571 from simonw/patch-2
Added datasette-auth-github to third party middleware
Simon Willison [Mon, 8 Jul 2019 16:06:47 +0000 (09:06 -0700)]
Removed rogue newline
Simon Willison [Mon, 8 Jul 2019 16:05:29 +0000 (09:05 -0700)]
Added datasette-auth-github to third party middleware
Tom Christie [Thu, 4 Jul 2019 15:53:23 +0000 (16:53 +0100)]
Version 0.12.2
Tom Christie [Thu, 4 Jul 2019 15:52:08 +0000 (16:52 +0100)]
Version 0.12.1
Tom Christie [Thu, 4 Jul 2019 15:28:51 +0000 (16:28 +0100)]
Merge pull request #568 from encode/url-manipulation
Query Params manipulatation
Tom Christie [Thu, 4 Jul 2019 14:59:35 +0000 (15:59 +0100)]
Merge branch 'master' into url-manipulation
Tom Christie [Thu, 4 Jul 2019 14:57:00 +0000 (15:57 +0100)]
Merge pull request #569 from encode/fix-pytest-raises-usage
Fix `pytest.raises` usage
Tom Christie [Thu, 4 Jul 2019 14:53:21 +0000 (15:53 +0100)]
Fix pytest.raises usage
Tom Christie [Thu, 4 Jul 2019 14:51:55 +0000 (15:51 +0100)]
include_query_params / replace_query_params / remove_query_params
Tom Christie [Thu, 4 Jul 2019 09:30:50 +0000 (10:30 +0100)]
URL.add_query_params and URL.replace_query_params
Tom Christie [Tue, 25 Jun 2019 09:45:41 +0000 (10:45 +0100)]
Merge pull request #563 from tiangolo/redirect-with-308
Make 307 the default redirect status code
Sebastián Ramírez [Mon, 24 Jun 2019 22:03:49 +0000 (00:03 +0200)]
:recycle: Make 307 the default redirect status code
respecting HTTP method, and use 308 for HTTPS redirects (equivalently for 301)
Tom Christie [Mon, 24 Jun 2019 10:04:29 +0000 (11:04 +0100)]
Merge pull request #561 from rafalp/update-readme-code-example
Update framework example in readme to use ASGI 3
Rafał Pitoń [Mon, 24 Jun 2019 09:46:46 +0000 (11:46 +0200)]
Update framework example in readme
Tom Christie [Wed, 19 Jun 2019 14:30:29 +0000 (15:30 +0100)]
Update test_base.py
Tom Christie [Wed, 19 Jun 2019 11:54:26 +0000 (12:54 +0100)]
Update README.md
Tom Christie [Wed, 19 Jun 2019 11:54:13 +0000 (12:54 +0100)]
Update README.md
Tom Christie [Wed, 19 Jun 2019 09:14:58 +0000 (10:14 +0100)]
Merge pull request #557 from encode/request-state-and-scope
Request state and scope
Tom Christie [Wed, 19 Jun 2019 09:08:19 +0000 (10:08 +0100)]
request.scope and request.state
Tom Christie [Wed, 19 Jun 2019 08:39:54 +0000 (09:39 +0100)]
Merge branch 'persistent-state' of https://github.com/didip/starlette into didip-persistent-state
Didip Kerabat [Mon, 17 Jun 2019 15:27:32 +0000 (08:27 -0700)]
Removed if block
Tom Christie [Mon, 17 Jun 2019 15:10:54 +0000 (16:10 +0100)]
Merge pull request #556 from sirex/json-none
Allow None for JSONResponse
Didip Kerabat [Mon, 17 Jun 2019 14:29:49 +0000 (07:29 -0700)]
Address some PR feedbacks.
Mantas [Mon, 17 Jun 2019 14:20:08 +0000 (17:20 +0300)]
Allow None fore JSONResponse
Previously `JSONResponse(None)` rendered empty string, but it should be
'null' instead.
This change fixes it.
Tom Christie [Mon, 17 Jun 2019 13:35:05 +0000 (14:35 +0100)]
Merge pull request #544 from marcosschroh/feature/improve-debug-middleware
feat: ServerErrorMiddleware improved
Tom Christie [Mon, 17 Jun 2019 13:34:23 +0000 (14:34 +0100)]
Merge pull request #555 from erm/minor-doc-change-templates
Include `StaticFiles` in template docs
Didip Kerabat [Mon, 17 Jun 2019 12:56:29 +0000 (05:56 -0700)]
Applying linter.
Jordan [Mon, 17 Jun 2019 12:52:43 +0000 (22:52 +1000)]
Remove staticfiles note
marcosschroh [Thu, 13 Jun 2019 22:57:54 +0000 (00:57 +0200)]
feat(ServerErrorMiddleware): Frames have been reverted. Style improved. Collapse added on every frame. Context added
Jordan [Mon, 17 Jun 2019 02:28:04 +0000 (12:28 +1000)]
Include import and note in docs
Didip Kerabat [Sun, 16 Jun 2019 16:27:17 +0000 (09:27 -0700)]
100% test coverage!
Didip Kerabat [Sun, 16 Jun 2019 16:18:38 +0000 (09:18 -0700)]
More tests and yet it is still 99%.
Didip Kerabat [Sun, 16 Jun 2019 15:38:48 +0000 (08:38 -0700)]
Added more tests on State object.
Didip Kerabat [Sun, 16 Jun 2019 15:27:27 +0000 (08:27 -0700)]
Got the __setattr__, __getattr__, and __delattr__ working.
But I am not sure if it is more elegant than simply
updating the inner __dict__.
Tom Christie [Sun, 16 Jun 2019 09:55:55 +0000 (10:55 +0100)]
Merge pull request #543 from rafalp/update-response-api
Update response() calls in docs for ASGI 3
Didip Kerabat [Sun, 16 Jun 2019 00:22:50 +0000 (17:22 -0700)]
Begin work in making sure `request.state` is preserved between middlewares.
Rafał Pitoń [Fri, 14 Jun 2019 10:53:17 +0000 (12:53 +0200)]
Simplify example apps code to plain functions
rafalp [Thu, 13 Jun 2019 22:21:37 +0000 (00:21 +0200)]
Update response() calls in docs for ASGI 3
Tom Christie [Fri, 14 Jun 2019 10:25:38 +0000 (11:25 +0100)]
Merge pull request #547 from encode/pin-typed-ast
Drop 3.8-dev from build matrix
Tom Christie [Fri, 14 Jun 2019 10:22:59 +0000 (11:22 +0100)]
Drop 3.8-dev from matrix
Tom Christie [Fri, 14 Jun 2019 10:22:48 +0000 (11:22 +0100)]
Drop typed-ast pinning
Tom Christie [Fri, 14 Jun 2019 10:14:48 +0000 (11:14 +0100)]
Pin typed-ast
Tom Christie [Mon, 10 Jun 2019 15:54:44 +0000 (16:54 +0100)]
Update staticfiles.py
Tom Christie [Mon, 10 Jun 2019 08:18:08 +0000 (09:18 +0100)]
Update WebSocket docs. Closes #536.
dmontagu [Fri, 7 Jun 2019 09:41:45 +0000 (02:41 -0700)]
Update staticfiles.py
Add the f for the f strings.
Noticed while investigating #534
Tom Christie [Tue, 21 May 2019 14:39:28 +0000 (15:39 +0100)]
Version 0.12.0
Tom Christie [Tue, 21 May 2019 08:50:46 +0000 (09:50 +0100)]
Update image
Tom Christie [Tue, 21 May 2019 08:44:30 +0000 (09:44 +0100)]
Merge pull request #521 from koddr/patch-2
Add new Starlette logo to Docs
Vic Shóstak [Mon, 20 May 2019 19:02:32 +0000 (22:02 +0300)]
Update logo <img> with new logo
Vic Shóstak [Mon, 20 May 2019 18:55:50 +0000 (21:55 +0300)]
Update starlette.png
Tom Christie [Mon, 20 May 2019 15:15:30 +0000 (16:15 +0100)]
Merge pull request #513 from blueyed/unused-cookie
CORS: preflight_response: cookie is not used here
Tom Christie [Mon, 20 May 2019 15:03:54 +0000 (16:03 +0100)]
Merge pull request #518 from ekohl/patch-1
Fix typo in api schema generation example
Tom Christie [Mon, 20 May 2019 14:57:51 +0000 (15:57 +0100)]
Update setup.py
Closes #520
Vic Shóstak [Mon, 20 May 2019 14:53:52 +0000 (17:53 +0300)]
Add new Starlette logo
Tom Christie [Mon, 20 May 2019 14:29:38 +0000 (15:29 +0100)]
Merge pull request #506 from blueyed/doc-fix
docs/config.md: fix DatabaseURL usage
Ewoud Kohl van Wijngaarden [Fri, 17 May 2019 15:44:32 +0000 (15:44 +0000)]
Fix typo in api schema generation example
Tom Christie [Mon, 13 May 2019 15:18:29 +0000 (16:18 +0100)]
Merge pull request #455 from uranusjr/add-py-typed
Add py.typed to package
Daniel Hahler [Mon, 13 May 2019 14:16:13 +0000 (16:16 +0200)]
CORS: preflight_response: cookie is not used here
Ref: https://github.com/encode/starlette/issues/510#issuecomment-
491836700
Tom Christie [Mon, 13 May 2019 14:24:57 +0000 (15:24 +0100)]
Merge pull request #508 from jodal/patch-1
docs: Add missing import
Tom Christie [Mon, 13 May 2019 14:24:28 +0000 (15:24 +0100)]
Fix CORS allowed origins (#511)
* Add test to expose CORSMiddleware.simple_headers access-control-allow-origin leak between requests
* Fix CORSMiddleware.simple_response to use self.simple_headers default before mutating headers based on request parameters
* lint: forgot to run black locally
Daniel Hahler [Mon, 13 May 2019 14:22:59 +0000 (16:22 +0200)]
flake8 fixes (#512)
秋葉 [Mon, 13 May 2019 13:54:46 +0000 (21:54 +0800)]
fix NotImplementedError (#509)
Steinn Eldjárn Sigurðarson [Mon, 13 May 2019 10:44:35 +0000 (10:44 +0000)]
lint: forgot to run black locally
Steinn Eldjárn Sigurðarson [Mon, 13 May 2019 10:26:27 +0000 (10:26 +0000)]
Fix CORSMiddleware.simple_response to use self.simple_headers default before mutating headers based on request parameters
Steinn Eldjárn Sigurðarson [Mon, 13 May 2019 10:25:51 +0000 (10:25 +0000)]
Add test to expose CORSMiddleware.simple_headers access-control-allow-origin leak between requests
Stein Magnus Jodal [Sun, 12 May 2019 09:14:14 +0000 (11:14 +0200)]
docs: Add missing import
Daniel Hahler [Fri, 10 May 2019 23:40:17 +0000 (01:40 +0200)]
docs/config.md: fix DatabaseURL usage
Daniel Hahler [Wed, 24 Apr 2019 21:25:44 +0000 (23:25 +0200)]
Fix typo in method name: generate_frame_html (#490)
Tom Christie [Wed, 17 Apr 2019 16:26:12 +0000 (17:26 +0100)]
Update config.md
Tom Christie [Wed, 10 Apr 2019 12:19:25 +0000 (14:19 +0200)]
Update third-party-packages.md
Daniel Hahler [Wed, 10 Apr 2019 12:18:28 +0000 (14:18 +0200)]
ci: Travis: sudo is deprecated (#475)
Daniel Hahler [Wed, 10 Apr 2019 12:14:24 +0000 (14:14 +0200)]
doc: fix middleware (#471)
David Baumgold [Wed, 10 Apr 2019 12:07:17 +0000 (14:07 +0200)]
GitHub has a capital H (#478)
Tzu-ping Chung [Tue, 2 Apr 2019 11:27:40 +0000 (19:27 +0800)]
Add zip_safe=False in setup.py
Tzu-ping Chung [Thu, 28 Mar 2019 14:20:54 +0000 (22:20 +0800)]
Add py.typed to package
This package would be installed along with the package (since it is
listed in package_data), to let mypy pick up type hints in the package
source.
Eugene Molotov [Mon, 8 Apr 2019 13:48:15 +0000 (18:48 +0500)]
Corrects usage of CommaSeparatedStrings in docs (#467)
Steinn Eldjárn Sigurðarson [Fri, 5 Apr 2019 10:59:22 +0000 (10:59 +0000)]
Adding a section on timing-asgi to 3rd party middleware (#465)
Tom Christie [Wed, 3 Apr 2019 09:29:00 +0000 (10:29 +0100)]
Make StreamingResponse compatible with normal iterators (#462)
* Add concurrency.iterator_to_async, tests and docs
* Make StreamingResponse compatible with normal iterators
* Format and typo in docs
* Rename helper function to iterate_in_threadpool
* Version 0.12.0.b3
Tom Christie [Tue, 2 Apr 2019 10:01:09 +0000 (11:01 +0100)]
Version 0.12.0.b2
Patryk Zawadzki [Tue, 2 Apr 2019 09:52:08 +0000 (11:52 +0200)]
Don't block the event loop in WebSocketTestSession (#459)
It's typical for event-loop-based servers to try to do a blocking
receive in a while loop. Queue.get() is blocking in a synchronous
way and it does not yield control back to the asyncio executor.
Let's explicitly yield control until the queue is no longer empty.
Phil Jones [Wed, 27 Mar 2019 22:14:13 +0000 (22:14 +0000)]
Remove warning about lifespan events (#451)
It is no longer new, and Hypercorn also supports it.
Alex Oleshkevich [Wed, 27 Mar 2019 09:23:07 +0000 (12:23 +0300)]
Replace mutable "allowed_hosts" argument of TrustedHostMiddleware with None (#448)
* Replace mutable "allowed_hosts" argument of starlette.middleware.trustedhost.TrustedHostMiddleware with None.
* Add unit test to cover case when TrustedHostMiddleware.allowed_hosts is None
* Fix style issues
* Code style fixes
* Fix unit tests for TrustedHostMiddleware
Konstantin Chernyshkov [Tue, 26 Mar 2019 14:19:32 +0000 (19:19 +0500)]
:bug: Adding a percent sign to redirect with quoted params (#449)
Tom Christie [Wed, 20 Mar 2019 10:34:22 +0000 (10:34 +0000)]
Version 0.12.0b1
Tom Christie [Wed, 20 Mar 2019 10:18:24 +0000 (10:18 +0000)]
Add `StaticFiles(html=True)` (#443)
Add StaticFiles(html=True)