]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
5 years agotyping: remove unused "type: ignore" comments (#779)
Daniel Hahler [Tue, 7 Jan 2020 14:00:10 +0000 (15:00 +0100)] 
typing: remove unused "type: ignore" comments (#779)

* typing: remove unused "type: ignore" comments

Found via:

> mypy --warn-unused-ignores --ignore-missing-imports starlette

Using:

> mypy 0.770+dev.cdd91ba819646b0138b05a8e9180faba4ef0ff92.dirty

* fixup! typing: remove unused "type: ignore" comments

5 years agoci: Travis: use py38 (#781)
Daniel Hahler [Tue, 7 Jan 2020 09:40:30 +0000 (10:40 +0100)] 
ci: Travis: use py38 (#781)

5 years agoupdate 3rd packages: add spectree (#783)
Yang Keming [Mon, 6 Jan 2020 10:48:20 +0000 (18:48 +0800)] 
update 3rd packages: add spectree (#783)

5 years agoadd starlette-context to 'third party packages' docs (encode#420) (#770)
Tomasz Wójcik [Sun, 29 Dec 2019 15:11:12 +0000 (16:11 +0100)] 
add starlette-context to 'third party packages' docs (encode#420) (#770)

5 years agoAdd space so example is copy-pastable (#766)
Emil Stenström [Sat, 21 Dec 2019 21:49:27 +0000 (22:49 +0100)] 
Add space so example is copy-pastable (#766)

5 years agoIgnore gnarly type check in WSGI implementation (#756)
Tom Christie [Tue, 17 Dec 2019 11:14:57 +0000 (11:14 +0000)] 
Ignore gnarly type check in WSGI implementation (#756)

* Ignore gnarly type check in WSGI implementation

* Linting

5 years agosupport Path in Config (#755)
Trim21 [Tue, 17 Dec 2019 09:57:02 +0000 (17:57 +0800)] 
support Path in Config (#755)

* support Path in Config

* fix broken tests

5 years agoadd import Route (#752)
podhmo [Mon, 16 Dec 2019 16:58:33 +0000 (01:58 +0900)] 
add import Route (#752)

5 years agoDocument custom filters for Jinja2 (#737)
Eneko Illarramendi [Tue, 10 Dec 2019 14:58:44 +0000 (15:58 +0100)] 
Document custom filters for Jinja2 (#737)

5 years agoUpdate database.md
Tom Christie [Mon, 25 Nov 2019 09:13:12 +0000 (09:13 +0000)] 
Update database.md

5 years agoUpdate routing.md
Tom Christie [Fri, 22 Nov 2019 11:28:12 +0000 (11:28 +0000)] 
Update routing.md

5 years agoDrop double square brackets tests in install script (#718)
Fulvio Esposito [Fri, 22 Nov 2019 11:26:14 +0000 (12:26 +0100)] 
Drop double square brackets tests in install script (#718)

sh doesn't support double square brackets tests which are a bash feature.
This commit replace them with single square brackets tests

5 years agoShow nicer warning when `ujson` isn't installed (#728)
Jake Howard [Fri, 22 Nov 2019 11:22:15 +0000 (11:22 +0000)] 
Show nicer warning when `ujson` isn't installed (#728)

5 years agoTweak app signatures (#723)
Tom Christie [Wed, 20 Nov 2019 15:10:15 +0000 (15:10 +0000)] 
Tweak app signatures (#723)

5 years agoAdded support for publishing wheel files. Fixes #668 (#719)
Florian Apolloner [Fri, 15 Nov 2019 12:06:59 +0000 (13:06 +0100)] 
Added support for publishing wheel files. Fixes #668 (#719)

5 years ago:pencil: Fixes example typo in README (#717)
Jeff Triplett [Wed, 13 Nov 2019 18:56:47 +0000 (12:56 -0600)] 
:pencil: Fixes example typo in README (#717)

Thanks!

5 years agoVersion 0.13.0 0.13.0
Tom Christie [Wed, 13 Nov 2019 12:27:50 +0000 (12:27 +0000)] 
Version 0.13.0

5 years agoVersion 0.13 (#704)
Tom Christie [Wed, 13 Nov 2019 12:25:18 +0000 (12:25 +0000)] 
Version 0.13 (#704)

* Version 0.13

* Fix misnamed requirement

* Updating routing docs

* Update routing docs

* Update docs

* Simpler Middleware signature

* Update middleware docs

* Update exception docs

* Allow 'None' in middleware lists, for easy disabling of middleware.

* Update README

5 years agoList Scout APM as a third party package (#710)
Adam Johnson [Tue, 12 Nov 2019 13:47:35 +0000 (13:47 +0000)] 
List Scout APM as a third party package (#710)

5 years agoAdd Authlib into third party packages. (#712)
Hsiaoming Yang [Tue, 12 Nov 2019 13:43:15 +0000 (22:43 +0900)] 
Add Authlib into third party packages. (#712)

6 years agoFix a small typo in CORS middleware documentation (#708)
Grégoire Détrez [Thu, 7 Nov 2019 15:18:50 +0000 (16:18 +0100)] 
Fix a small typo in CORS middleware documentation (#708)

6 years agoHandle trailing slash redirects properly. (#707)
Tom Christie [Wed, 6 Nov 2019 21:16:41 +0000 (21:16 +0000)] 
Handle trailing slash redirects properly. (#707)

* Handle trailing slash redirects properly.

Currently we have behavior so that if:

* A `/some-path/`route exists.
* A `/some-path` route does not exist.

Then if a request to `/some-path` is made, we'll redirect to the trailing slash case.

We ought to also handle the converse case, so that if...

* A `/some-path`route exists.
* A `/some-path/` route does not exist.

Then if a request to `/some-path/` is made, we'll redirect to the no trailing slash case.

Closes #633

* Update routing.py

* Update routing.py

6 years agoStrip whitespace on response headers (#706)
Tom Christie [Wed, 6 Nov 2019 20:57:00 +0000 (20:57 +0000)] 
Strip whitespace on response headers (#706)

Strip leading/trailing whitespace on response headers.
Closes #664

6 years agoUpdate release-notes.md
Tom Christie [Wed, 6 Nov 2019 10:44:00 +0000 (10:44 +0000)] 
Update release-notes.md

6 years agoRemove Bocadillo from third party packages (#684)
Florimond Manca [Tue, 5 Nov 2019 16:12:53 +0000 (17:12 +0100)] 
Remove Bocadillo from third party packages (#684)

6 years agoVersion 0.12.13 0.12.13
Tom Christie [Mon, 4 Nov 2019 15:08:53 +0000 (15:08 +0000)] 
Version 0.12.13

6 years agoSupport app configuration on initialization. (#702)
Tom Christie [Mon, 4 Nov 2019 15:08:24 +0000 (15:08 +0000)] 
Support app configuration on initialization. (#702)

* Add on-app-init middleware definitions

* Support on_startup, on_shutdown args

6 years agoVersion 0.12.12 0.12.12
Tom Christie [Fri, 1 Nov 2019 15:30:20 +0000 (15:30 +0000)] 
Version 0.12.12

6 years agoFix url_for with double mounts (#701)
Tom Christie [Fri, 1 Nov 2019 15:19:07 +0000 (15:19 +0000)] 
Fix url_for with double mounts (#701)

6 years agoVersion 0.12.11 0.12.11
Tom Christie [Fri, 1 Nov 2019 14:13:11 +0000 (14:13 +0000)] 
Version 0.12.11

6 years agoInclude 'root_path' when returning URLs from request.url_for (#699)
Tom Christie [Fri, 1 Nov 2019 14:11:00 +0000 (14:11 +0000)] 
Include 'root_path' when returning URLs from request.url_for (#699)

* Include 'root_path' when returning URLs from request.url_for

* Preserve root_path for mounted apps

6 years agoResolve latest mypy issues (#700)
Tom Christie [Fri, 1 Nov 2019 13:27:42 +0000 (13:27 +0000)] 
Resolve latest mypy issues (#700)

* Resolve latest mypy issues

* Linting

6 years agotests: minor: use "test_" prefix (#636)
Daniel Hahler [Tue, 15 Oct 2019 14:18:44 +0000 (16:18 +0200)] 
tests: minor: use "test_" prefix (#636)

The test was run previously, but this is clearer.

6 years agoVersion 0.12.10
Tom Christie [Tue, 15 Oct 2019 12:44:00 +0000 (13:44 +0100)] 
Version 0.12.10

6 years ago[docs] update RedirectResponse status code (#634)
Aaron Gunderson [Tue, 15 Oct 2019 12:43:33 +0000 (08:43 -0400)] 
[docs] update RedirectResponse status code (#634)

The redirect response changed the status code it returns by default but the docs were not updated to reflect the change. Small fix to keep up to date.
https://github.com/encode/starlette/commit/3f702238247c99089eac76880965b32bd050f3cb

6 years agodon't return "error" in graphql response when no error occurs (#623)
Josha Inglis [Tue, 15 Oct 2019 12:41:35 +0000 (23:41 +1100)] 
don't return "error" in graphql response when no error occurs (#623)

Fixes #622

Signed-off-by: Josha Inglis <joshainglis@gmail.com>
6 years agoUpdate docs about html mode for static files (#624)
Mantas Zimnickas [Tue, 15 Oct 2019 12:40:56 +0000 (15:40 +0300)] 
Update docs about html mode for static files (#624)

6 years agofix typo (#621)
nwalsh1995 [Tue, 15 Oct 2019 12:40:30 +0000 (05:40 -0700)] 
fix typo (#621)

6 years agoAdded Documentation For Bugsnag Integration in Starlette (#638)
Ashin Abraham [Tue, 15 Oct 2019 12:39:56 +0000 (18:09 +0530)] 
Added Documentation For Bugsnag Integration in Starlette (#638)

6 years agoAdd link to EarlyDataMiddleware (#666)
Igor Nehoroshev [Tue, 15 Oct 2019 12:35:53 +0000 (15:35 +0300)] 
Add link to EarlyDataMiddleware (#666)

6 years agoFix __init__ code in custom HTTP middleware example (#665)
Igor Nehoroshev [Tue, 15 Oct 2019 12:35:37 +0000 (15:35 +0300)] 
Fix __init__ code in custom HTTP middleware example (#665)

6 years agoAdd HTTPException.__repr__ (#628)
Daniel Hahler [Tue, 15 Oct 2019 12:34:49 +0000 (14:34 +0200)] 
Add HTTPException.__repr__ (#628)

6 years agoEnable flag parameters (#672)
Dušan Josipović [Tue, 15 Oct 2019 12:33:51 +0000 (14:33 +0200)] 
Enable flag parameters (#672)

* Enable flag parameters

* Add tests for blank query param

6 years agoMerge pull request #674 from dmontagu/run_in_threadpool-type-hint
George Bogodukhov [Mon, 14 Oct 2019 09:49:42 +0000 (20:19 +1030)] 
Merge pull request #674 from dmontagu/run_in_threadpool-type-hint

Add type hint for run_in_threadpool return type

6 years agoAdd type hint for run_in_threadpool return type 674/head
David Montague [Mon, 14 Oct 2019 09:34:51 +0000 (02:34 -0700)] 
Add type hint for run_in_threadpool return type

6 years agoMerge pull request #673 from dmontagu/patch-6
George Bogodukhov [Mon, 14 Oct 2019 09:20:05 +0000 (19:50 +1030)] 
Merge pull request #673 from dmontagu/patch-6

Update datastructures.py

6 years agoUpdate datastructures.py 673/head
dmontagu [Mon, 14 Oct 2019 08:08:21 +0000 (01:08 -0700)] 
Update datastructures.py

Fix assert error message in `URL.__init__`

6 years agoAdd 425 Too Early status code (#660)
Igor Nehoroshev [Thu, 10 Oct 2019 09:07:30 +0000 (12:07 +0300)] 
Add 425 Too Early status code (#660)

6 years agoMerge pull request #653 from dmontagu/large-body-perf
Tom Christie [Wed, 2 Oct 2019 11:57:40 +0000 (12:57 +0100)] 
Merge pull request #653 from dmontagu/large-body-perf

Performantly build large request bodies

6 years agoUpdate for new mypy 653/head
David Montague [Wed, 2 Oct 2019 07:12:34 +0000 (00:12 -0700)] 
Update for new mypy

6 years agoPerformantly build the request body
David Montague [Wed, 2 Oct 2019 06:53:59 +0000 (23:53 -0700)] 
Performantly build the request body

6 years agoMerge pull request #620 from elyobo/document-request-app-prop
Tom Christie [Wed, 4 Sep 2019 08:36:35 +0000 (09:36 +0100)] 
Merge pull request #620 from elyobo/document-request-app-prop

Document the `request.app` property.

6 years agoAdd "accessing the app instance" to docs/application.md 620/head
Liam O'Boyle [Wed, 4 Sep 2019 01:56:26 +0000 (11:56 +1000)] 
Add "accessing the app instance" to docs/application.md

Along the lines of @tomchristie's suggestion in #620 but stressing the
use of `request.app`.

6 years agoVersion 0.12.9 0.12.9
Tom Christie [Mon, 2 Sep 2019 13:24:25 +0000 (14:24 +0100)] 
Version 0.12.9

6 years agoMerge pull request #629 from jlaine/send-push-promise
Tom Christie [Mon, 2 Sep 2019 13:23:36 +0000 (14:23 +0100)] 
Merge pull request #629 from jlaine/send-push-promise

Add support for server push

6 years agoAdd support for server push 629/head
Jeremy Lainé [Sun, 1 Sep 2019 22:36:19 +0000 (00:36 +0200)] 
Add support for server push

This adds support for HTTP/2 and HTTP/3 server push by adding a
Request.send_push_promise method, which signals to push-enabled
servers that a push should be sent.

6 years agoDocument the `request.app` property.
Liam O'Boyle [Tue, 27 Aug 2019 22:11:03 +0000 (08:11 +1000)] 
Document the `request.app` property.

* Mention it in the Request documentation
* Mention it in the Application documentation in the context of
  accessing the application state

6 years agoMerge pull request #618 from encode/app-state
Tom Christie [Tue, 27 Aug 2019 09:01:20 +0000 (10:01 +0100)] 
Merge pull request #618 from encode/app-state

Application state

6 years agoMerge pull request #613 from perdy/master
Tom Christie [Tue, 27 Aug 2019 08:53:50 +0000 (09:53 +0100)] 
Merge pull request #613 from perdy/master

Add Flama to frameworks docs

6 years agoMerge pull request #614 from perdy/starlette-prometheus-docs
Tom Christie [Tue, 27 Aug 2019 08:52:50 +0000 (09:52 +0100)] 
Merge pull request #614 from perdy/starlette-prometheus-docs

Add Starlette Prometheus to plugins and middlewares docs

6 years agoApplication state 618/head
Tom Christie [Tue, 27 Aug 2019 08:41:04 +0000 (09:41 +0100)] 
Application state

6 years agoAdd Starlette Prometheus to plugins and middlewares docs 614/head
José Antonio Perdiguero López [Fri, 23 Aug 2019 12:33:45 +0000 (14:33 +0200)] 
Add Starlette Prometheus to plugins and middlewares docs

6 years agoAdd Flama to frameworks docs 613/head
José Antonio Perdiguero López [Fri, 23 Aug 2019 11:40:24 +0000 (13:40 +0200)] 
Add Flama to frameworks docs

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