]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
5 years agoApplication state 618/head
Tom Christie [Tue, 27 Aug 2019 08:41:04 +0000 (09:41 +0100)] 
Application state

6 years agoMerge pull request #601 from abersheeran/master
Tom Christie [Mon, 19 Aug 2019 10:32:43 +0000 (11:32 +0100)] 
Merge pull request #601 from abersheeran/master

Fix html escape

6 years agoFix html escape 601/head
abersheeran [Fri, 16 Aug 2019 16:40:27 +0000 (00:40 +0800)] 
Fix html escape

6 years agoFix html escape 600/head
云中君 [Fri, 16 Aug 2019 16:12:12 +0000 (00:12 +0800)] 
Fix html escape

6 years agoVersion 0.12.8 0.12.8
Tom Christie [Fri, 16 Aug 2019 09:42:51 +0000 (10:42 +0100)] 
Version 0.12.8

6 years agoMerge pull request #597 from taoufik07/patch-8
Tom Christie [Fri, 16 Aug 2019 09:42:09 +0000 (10:42 +0100)] 
Merge pull request #597 from taoufik07/patch-8

Parse scope with HTTPConnection instead of Request in SessionMiddleware

6 years agoFix #483 parse scope with HTTPConnection in sessions 597/head
Taoufik [Thu, 15 Aug 2019 18:32:51 +0000 (20:32 +0200)] 
Fix #483 parse scope with HTTPConnection in sessions

6 years agoMerge pull request #541 from keakon/master
Tom Christie [Fri, 16 Aug 2019 09:11:01 +0000 (10:11 +0100)] 
Merge pull request #541 from keakon/master

remove unused code

6 years agoMerge pull request #596 from mdawar/patch-1
Tom Christie [Fri, 16 Aug 2019 09:09:41 +0000 (10:09 +0100)] 
Merge pull request #596 from mdawar/patch-1

Remove LifespanContext import

6 years agoMerge branch 'master' of https://github.com/encode/starlette 541/head
keakon [Thu, 15 Aug 2019 07:16:21 +0000 (15:16 +0800)] 
Merge branch 'master' of https://github.com/encode/starlette

* 'master' of https://github.com/encode/starlette: (56 commits)
  Version 0.12.7
  Version 0.12.6
  multipart: fallback to latin-1 on decode error
  utf-8 is better for default multipart encoding
  Version 0.12.5
  Version 0.12.4
  Black-ify
  Setting a finish size to SpooledTemporaryFile.
  Fix test case for https redirects
  Update httpsredirect.py
  Version 0.12.3
  ci: Travis: re-add py38
  Move assignments to help mypy
  Linting
  Fix collapse button control initial states
  Tweak exception debug HTML
  Removed rogue newline
  Added datasette-auth-github to third party middleware
  Version 0.12.2
  Version 0.12.1
  ...

6 years agoRemove LifespanContext import 596/head
Pierre Mdawar [Wed, 14 Aug 2019 12:20:56 +0000 (15:20 +0300)] 
Remove LifespanContext import

6 years agoVersion 0.12.7 0.12.7
Tom Christie [Thu, 1 Aug 2019 16:38:14 +0000 (17:38 +0100)] 
Version 0.12.7

6 years agoMerge pull request #488 from florimondmanca/fix/startup-error-handling
Tom Christie [Thu, 1 Aug 2019 16:17:51 +0000 (17:17 +0100)] 
Merge pull request #488 from florimondmanca/fix/startup-error-handling

Send lifespan.startup.failed if exception occurs during startup

6 years agoVersion 0.12.6 0.12.6
Tom Christie [Mon, 29 Jul 2019 13:21:49 +0000 (14:21 +0100)] 
Version 0.12.6

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Mon, 29 Jul 2019 13:21:11 +0000 (14:21 +0100)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoMerge pull request #589 from ciscorn/fix-multipart-encoding
Tom Christie [Mon, 29 Jul 2019 13:20:59 +0000 (14:20 +0100)] 
Merge pull request #589 from ciscorn/fix-multipart-encoding

Default multipart encoding should be utf-8 instead of latin-1

6 years agomultipart: fallback to latin-1 on decode error 589/head
Taku Fukada [Mon, 29 Jul 2019 12:56:29 +0000 (21:56 +0900)] 
multipart: fallback to latin-1 on decode error

6 years agoutf-8 is better for default multipart encoding
Taku Fukada [Sun, 28 Jul 2019 14:19:47 +0000 (23:19 +0900)] 
utf-8 is better for default multipart encoding

6 years agoVersion 0.12.5 0.12.5
Tom Christie [Thu, 25 Jul 2019 09:05:54 +0000 (10:05 +0100)] 
Version 0.12.5

6 years agoMerge pull request #562 from jaceksnet/multipart-encoding-fix
Tom Christie [Thu, 25 Jul 2019 09:04:27 +0000 (10:04 +0100)] 
Merge pull request #562 from jaceksnet/multipart-encoding-fix

allow use of characters out of latin-1 in multipart form values

6 years agoVersion 0.12.4 0.12.4
Tom Christie [Tue, 16 Jul 2019 11:58:05 +0000 (12:58 +0100)] 
Version 0.12.4

6 years agoMerge pull request #582 from haizaar/master
Tom Christie [Tue, 16 Jul 2019 11:57:37 +0000 (12:57 +0100)] 
Merge pull request #582 from haizaar/master

Setting a finite size to SpooledTemporaryFile.

6 years agoBlack-ify 582/head
Zaar Hai [Tue, 16 Jul 2019 11:36:19 +0000 (21:36 +1000)] 
Black-ify

6 years agoSetting a finish size to SpooledTemporaryFile.
Zaar Hai [Tue, 16 Jul 2019 11:31:47 +0000 (21:31 +1000)] 
Setting a finish size to SpooledTemporaryFile.

Fixes #579

6 years agoFix test case for https redirects
Tom Christie [Tue, 16 Jul 2019 08:21:31 +0000 (09:21 +0100)] 
Fix test case for https redirects

6 years agoUpdate httpsredirect.py
Tom Christie [Mon, 15 Jul 2019 12:16:14 +0000 (13:16 +0100)] 
Update httpsredirect.py

6 years agoVersion 0.12.3 0.12.3
Tom Christie [Mon, 15 Jul 2019 08:50:14 +0000 (09:50 +0100)] 
Version 0.12.3

6 years agoMerge pull request #535 from dmontagu/patch-1
Tom Christie [Mon, 15 Jul 2019 08:48:58 +0000 (09:48 +0100)] 
Merge pull request #535 from dmontagu/patch-1

Update staticfiles.py

6 years agoMerge pull request #575 from blueyed/travis-py38
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

6 years agoci: Travis: re-add py38 575/head
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

6 years agoMerge pull request #576 from blueyed/fix-mypy
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

6 years agoMove assignments to help mypy 576/head
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

6 years agoMerge pull request #572 from encode/tweak-exception-debug-html
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

6 years agoLinting 572/head
Tom Christie [Tue, 9 Jul 2019 13:49:47 +0000 (14:49 +0100)] 
Linting

6 years agoFix collapse button control initial states
Tom Christie [Tue, 9 Jul 2019 13:47:47 +0000 (14:47 +0100)] 
Fix collapse button control initial states

6 years agoTweak exception debug HTML
Tom Christie [Tue, 9 Jul 2019 13:28:24 +0000 (14:28 +0100)] 
Tweak exception debug HTML

6 years agoMerge pull request #571 from simonw/patch-2
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

6 years agoRemoved rogue newline 571/head
Simon Willison [Mon, 8 Jul 2019 16:06:47 +0000 (09:06 -0700)] 
Removed rogue newline

6 years agoAdded datasette-auth-github to third party middleware
Simon Willison [Mon, 8 Jul 2019 16:05:29 +0000 (09:05 -0700)] 
Added datasette-auth-github to third party middleware

6 years agoVersion 0.12.2 0.12.2
Tom Christie [Thu, 4 Jul 2019 15:53:23 +0000 (16:53 +0100)] 
Version 0.12.2

6 years agoVersion 0.12.1
Tom Christie [Thu, 4 Jul 2019 15:52:08 +0000 (16:52 +0100)] 
Version 0.12.1

6 years agoMerge pull request #568 from encode/url-manipulation
Tom Christie [Thu, 4 Jul 2019 15:28:51 +0000 (16:28 +0100)] 
Merge pull request #568 from encode/url-manipulation

Query Params manipulatation

6 years agoMerge branch 'master' into url-manipulation 568/head
Tom Christie [Thu, 4 Jul 2019 14:59:35 +0000 (15:59 +0100)] 
Merge branch 'master' into url-manipulation

6 years agoMerge pull request #569 from encode/fix-pytest-raises-usage
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

6 years agoFix pytest.raises usage 569/head
Tom Christie [Thu, 4 Jul 2019 14:53:21 +0000 (15:53 +0100)] 
Fix pytest.raises usage

6 years agoinclude_query_params / replace_query_params / remove_query_params
Tom Christie [Thu, 4 Jul 2019 14:51:55 +0000 (15:51 +0100)] 
include_query_params / replace_query_params / remove_query_params

6 years agoURL.add_query_params and URL.replace_query_params
Tom Christie [Thu, 4 Jul 2019 09:30:50 +0000 (10:30 +0100)] 
URL.add_query_params and URL.replace_query_params

6 years agoMerge pull request #563 from tiangolo/redirect-with-308
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

6 years ago:recycle: Make 307 the default redirect status code 563/head
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)

6 years agoallow use of characters out of latin-1 in multipart form values and filename 562/head
jaceksnet [Mon, 24 Jun 2019 17:59:09 +0000 (19:59 +0200)] 
allow use of characters out of latin-1 in multipart form values and filename

6 years agoMerge pull request #561 from rafalp/update-readme-code-example
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

6 years agoUpdate framework example in readme 561/head
Rafał Pitoń [Mon, 24 Jun 2019 09:46:46 +0000 (11:46 +0200)] 
Update framework example in readme

6 years agoUpdate test_base.py
Tom Christie [Wed, 19 Jun 2019 14:30:29 +0000 (15:30 +0100)] 
Update test_base.py

6 years agoUpdate README.md
Tom Christie [Wed, 19 Jun 2019 11:54:26 +0000 (12:54 +0100)] 
Update README.md

6 years agoUpdate README.md
Tom Christie [Wed, 19 Jun 2019 11:54:13 +0000 (12:54 +0100)] 
Update README.md

6 years agoMerge pull request #557 from encode/request-state-and-scope
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

6 years agorequest.scope and request.state 557/head
Tom Christie [Wed, 19 Jun 2019 09:08:19 +0000 (10:08 +0100)] 
request.scope and request.state

6 years agoMerge branch 'persistent-state' of https://github.com/didip/starlette into didip...
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

6 years agoRemoved if block 552/head
Didip Kerabat [Mon, 17 Jun 2019 15:27:32 +0000 (08:27 -0700)] 
Removed if block

6 years agoMerge pull request #556 from sirex/json-none
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

6 years agoAddress some PR feedbacks.
Didip Kerabat [Mon, 17 Jun 2019 14:29:49 +0000 (07:29 -0700)] 
Address some PR feedbacks.

6 years agoAllow None fore JSONResponse 556/head
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.

6 years agoMerge pull request #544 from marcosschroh/feature/improve-debug-middleware
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

6 years agoMerge pull request #555 from erm/minor-doc-change-templates
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

6 years agoApplying linter.
Didip Kerabat [Mon, 17 Jun 2019 12:56:29 +0000 (05:56 -0700)] 
Applying linter.

6 years agoRemove staticfiles note 555/head
Jordan [Mon, 17 Jun 2019 12:52:43 +0000 (22:52 +1000)] 
Remove staticfiles note

6 years agofeat(ServerErrorMiddleware): Frames have been reverted. Style improved. Collapse... 544/head
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

6 years agoInclude import and note in docs
Jordan [Mon, 17 Jun 2019 02:28:04 +0000 (12:28 +1000)] 
Include  import and note in docs

6 years ago100% test coverage!
Didip Kerabat [Sun, 16 Jun 2019 16:27:17 +0000 (09:27 -0700)] 
100% test coverage!

6 years agoMore tests and yet it is still 99%.
Didip Kerabat [Sun, 16 Jun 2019 16:18:38 +0000 (09:18 -0700)] 
More tests and yet it is still 99%.

6 years agoAdded more tests on State object.
Didip Kerabat [Sun, 16 Jun 2019 15:38:48 +0000 (08:38 -0700)] 
Added more tests on State object.

6 years agoGot the __setattr__, __getattr__, and __delattr__ working.
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__.

6 years agoMerge pull request #543 from rafalp/update-response-api
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

6 years agoBegin work in making sure `request.state` is preserved between middlewares.
Didip Kerabat [Sun, 16 Jun 2019 00:22:50 +0000 (17:22 -0700)] 
Begin work in making sure `request.state` is preserved between middlewares.

6 years agoSimplify example apps code to plain functions 543/head
Rafał Pitoń [Fri, 14 Jun 2019 10:53:17 +0000 (12:53 +0200)] 
Simplify example apps code to plain functions

6 years agoUpdate response() calls in docs for ASGI 3
rafalp [Thu, 13 Jun 2019 22:21:37 +0000 (00:21 +0200)] 
Update response() calls in docs for ASGI 3

6 years agoMerge pull request #547 from encode/pin-typed-ast
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

6 years agoDrop 3.8-dev from matrix 547/head
Tom Christie [Fri, 14 Jun 2019 10:22:59 +0000 (11:22 +0100)] 
Drop 3.8-dev from matrix

6 years agoDrop typed-ast pinning
Tom Christie [Fri, 14 Jun 2019 10:22:48 +0000 (11:22 +0100)] 
Drop typed-ast pinning

6 years agoPin typed-ast
Tom Christie [Fri, 14 Jun 2019 10:14:48 +0000 (11:14 +0100)] 
Pin typed-ast

6 years agoremove unused code
keakon [Thu, 13 Jun 2019 08:11:54 +0000 (16:11 +0800)] 
remove unused code

6 years agoUpdate staticfiles.py
Tom Christie [Mon, 10 Jun 2019 15:54:44 +0000 (16:54 +0100)] 
Update staticfiles.py

6 years agoUpdate WebSocket docs. Closes #536.
Tom Christie [Mon, 10 Jun 2019 08:18:08 +0000 (09:18 +0100)] 
Update WebSocket docs. Closes #536.

6 years agoUpdate staticfiles.py 535/head
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

6 years agoVersion 0.12.0 0.12.0
Tom Christie [Tue, 21 May 2019 14:39:28 +0000 (15:39 +0100)] 
Version 0.12.0

6 years agoUpdate image
Tom Christie [Tue, 21 May 2019 08:50:46 +0000 (09:50 +0100)] 
Update image

6 years agoMerge pull request #521 from koddr/patch-2
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

6 years agoUpdate logo <img> with new logo 521/head
Vic Shóstak [Mon, 20 May 2019 19:02:32 +0000 (22:02 +0300)] 
Update logo <img> with new logo

6 years agoUpdate starlette.png
Vic Shóstak [Mon, 20 May 2019 18:55:50 +0000 (21:55 +0300)] 
Update starlette.png

6 years agoMerge pull request #513 from blueyed/unused-cookie
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

6 years agoMerge pull request #518 from ekohl/patch-1
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

6 years agoUpdate setup.py
Tom Christie [Mon, 20 May 2019 14:57:51 +0000 (15:57 +0100)] 
Update setup.py

Closes #520

6 years agoAdd new Starlette logo
Vic Shóstak [Mon, 20 May 2019 14:53:52 +0000 (17:53 +0300)] 
Add new Starlette logo

6 years agoMerge pull request #506 from blueyed/doc-fix
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

6 years agoFix typo in api schema generation example 518/head
Ewoud Kohl van Wijngaarden [Fri, 17 May 2019 15:44:32 +0000 (15:44 +0000)] 
Fix typo in api schema generation example

6 years agoMerge pull request #455 from uranusjr/add-py-typed
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

6 years agoCORS: preflight_response: cookie is not used here 513/head
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

6 years agoMerge pull request #508 from jodal/patch-1
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

6 years agoFix CORS allowed origins (#511)
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

6 years agoflake8 fixes (#512)
Daniel Hahler [Mon, 13 May 2019 14:22:59 +0000 (16:22 +0200)] 
flake8 fixes (#512)