]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
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 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 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 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 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 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)

6 years agofix NotImplementedError (#509)
秋葉 [Mon, 13 May 2019 13:54:46 +0000 (21:54 +0800)] 
fix NotImplementedError (#509)

6 years agolint: forgot to run black locally 511/head
Steinn Eldjárn Sigurðarson [Mon, 13 May 2019 10:44:35 +0000 (10:44 +0000)] 
lint: forgot to run black locally

6 years agoFix CORSMiddleware.simple_response to use self.simple_headers default before mutating...
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

6 years agoAdd test to expose CORSMiddleware.simple_headers access-control-allow-origin leak...
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

6 years agodocs: Add missing import 508/head
Stein Magnus Jodal [Sun, 12 May 2019 09:14:14 +0000 (11:14 +0200)] 
docs: Add missing import

6 years agodocs/config.md: fix DatabaseURL usage 506/head
Daniel Hahler [Fri, 10 May 2019 23:40:17 +0000 (01:40 +0200)] 
docs/config.md: fix DatabaseURL usage

6 years agoFix typo in method name: generate_frame_html (#490)
Daniel Hahler [Wed, 24 Apr 2019 21:25:44 +0000 (23:25 +0200)] 
Fix typo in method name: generate_frame_html (#490)

6 years agoUpdate config.md
Tom Christie [Wed, 17 Apr 2019 16:26:12 +0000 (17:26 +0100)] 
Update config.md

6 years agoUpdate third-party-packages.md
Tom Christie [Wed, 10 Apr 2019 12:19:25 +0000 (14:19 +0200)] 
Update third-party-packages.md

6 years agoci: Travis: sudo is deprecated (#475)
Daniel Hahler [Wed, 10 Apr 2019 12:18:28 +0000 (14:18 +0200)] 
ci: Travis: sudo is deprecated (#475)

6 years agodoc: fix middleware (#471)
Daniel Hahler [Wed, 10 Apr 2019 12:14:24 +0000 (14:14 +0200)] 
doc: fix middleware (#471)

6 years agoGitHub has a capital H (#478)
David Baumgold [Wed, 10 Apr 2019 12:07:17 +0000 (14:07 +0200)] 
GitHub has a capital H (#478)

6 years agoAdd zip_safe=False in setup.py 455/head
Tzu-ping Chung [Tue, 2 Apr 2019 11:27:40 +0000 (19:27 +0800)] 
Add zip_safe=False in setup.py

6 years agoAdd py.typed to package
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.

6 years agoCorrects usage of CommaSeparatedStrings in docs (#467)
Eugene Molotov [Mon, 8 Apr 2019 13:48:15 +0000 (18:48 +0500)] 
Corrects usage of CommaSeparatedStrings in docs (#467)

6 years agoAdding a section on timing-asgi to 3rd party middleware (#465)
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)

6 years agoMake StreamingResponse compatible with normal iterators (#462) 0.12.0.b3
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

6 years agoVersion 0.12.0.b2 0.12.0.b2
Tom Christie [Tue, 2 Apr 2019 10:01:09 +0000 (11:01 +0100)] 
Version 0.12.0.b2

6 years agoDon't block the event loop in WebSocketTestSession (#459)
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.

6 years agoRemove warning about lifespan events (#451)
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.

6 years agoReplace mutable "allowed_hosts" argument of TrustedHostMiddleware with None (#448)
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

6 years ago:bug: Adding a percent sign to redirect with quoted params (#449)
Konstantin Chernyshkov [Tue, 26 Mar 2019 14:19:32 +0000 (19:19 +0500)] 
:bug: Adding a percent sign to redirect with quoted params (#449)

6 years agoVersion 0.12.0b1 0.12.0.b1
Tom Christie [Wed, 20 Mar 2019 10:34:22 +0000 (10:34 +0000)] 
Version 0.12.0b1

6 years agoAdd `StaticFiles(html=True)` (#443)
Tom Christie [Wed, 20 Mar 2019 10:18:24 +0000 (10:18 +0000)] 
Add `StaticFiles(html=True)` (#443)

Add StaticFiles(html=True)

6 years agoASGI 3 (#435)
Tom Christie [Tue, 19 Mar 2019 16:03:19 +0000 (16:03 +0000)] 
ASGI 3 (#435)

* TestClient supports ASGI2 and ASGI3

* Starlette instances present ASGI3 interface

* ServerErrorMiddleware presents ASGI3 interface

* Use ASGI3 protocol throughout

* Response signatures match ASGI interface.

6 years agoFix README.md (#438)
Mostafa Aitbrahim [Tue, 19 Mar 2019 09:17:39 +0000 (09:17 +0000)] 
Fix README.md (#438)

6 years agoVersion 0.11.4 0.11.4
Tom Christie [Mon, 18 Mar 2019 08:55:59 +0000 (08:55 +0000)] 
Version 0.11.4

6 years agoFix for Mount('/', ...) (#439)
Tom Christie [Mon, 18 Mar 2019 08:55:20 +0000 (08:55 +0000)] 
Fix for Mount('/', ...) (#439)

* Fix for Mount('/', ...)

* Linting

6 years agoPopulate SCRIPT_NAME in WSGIMiddleware (#434)
Tom Christie [Mon, 11 Mar 2019 14:41:22 +0000 (14:41 +0000)] 
Populate SCRIPT_NAME in WSGIMiddleware (#434)

6 years agoDocs tweaks
Tom Christie [Mon, 11 Mar 2019 14:35:30 +0000 (14:35 +0000)] 
Docs tweaks

6 years agoconfig: cast=bool: handle "0" and "1" as False/True (#429)
Daniel Hahler [Fri, 8 Mar 2019 19:28:08 +0000 (20:28 +0100)] 
config: cast=bool: handle "0" and "1" as False/True (#429)

* config: cast=bool: handle "0" and "1" as False/True
* tests: use monkeypatch.setenv

6 years agoreqs: minor cleanup (#422)
Daniel Hahler [Wed, 6 Mar 2019 20:30:16 +0000 (21:30 +0100)] 
reqs: minor cleanup (#422)

* reqs: minor cleanup

- codecov is only required on CI/Travis, install it there then.
- databases is a requirement for testing.

* setup.py: remove sqlalchemy from (full) reqs

- it is only used for tests
- databases requires it already

6 years agoStarlette.__init__: remove template_directory arg (#421)
Daniel Hahler [Wed, 6 Mar 2019 20:11:09 +0000 (21:11 +0100)] 
Starlette.__init__: remove template_directory arg (#421)

This appears to be unused since 37ee43e.

6 years agoAdd documentation for UploadFile class in the Request section (#418)
Sebastián Ramírez [Mon, 4 Mar 2019 19:25:03 +0000 (23:25 +0400)] 
Add documentation for UploadFile class in the Request section (#418)

* Add documentation for UploadFile class in Request section

* Implement changes requested in code review

* Simplify upload file reading example

6 years agoDoc hint about enabling code reload support (#417)
Ahti Kitsik [Mon, 4 Mar 2019 15:01:16 +0000 (16:01 +0100)] 
Doc hint about enabling code reload support (#417)

6 years agoStaticfiles packages (#415) 0.11.3
Tom Christie [Tue, 26 Feb 2019 14:38:05 +0000 (14:38 +0000)] 
Staticfiles packages (#415)

* Support StaticFiles(packages=[...])

* Add StaticFiles(packages=...) support

* Add StaticFiles(packages=...) support

6 years agoRemove redundant newlines
Tom Christie [Mon, 25 Feb 2019 13:29:54 +0000 (13:29 +0000)] 
Remove redundant newlines

6 years agoUpdate Config docs/add settings endpoint example (#409)
William Hayes [Mon, 25 Feb 2019 13:28:50 +0000 (08:28 -0500)] 
Update Config docs/add settings endpoint example (#409)

Update Config docs, removing defunct DATABASE_URL references.

6 years agoAdds python 3.5 port note to third party packages (#414)
Eugene Molotov [Mon, 25 Feb 2019 10:55:14 +0000 (15:55 +0500)] 
Adds python 3.5 port note to third party packages (#414)

6 years agodocs: remove code from third party section (#395)
Santiago [Mon, 25 Feb 2019 10:52:41 +0000 (11:52 +0100)] 
docs: remove code from third party section (#395)

reason: code should not be present here, it's hard to mantain,
a short synopsis is enough.
Page is also smaller, more visibility to other packages.

6 years agoFix lower case header value preflight request (#411)
Jeffrey Gelens [Mon, 25 Feb 2019 10:52:00 +0000 (11:52 +0100)] 
Fix lower case header value preflight request (#411)

6 years agotypo (#412)
FoxMaSk [Sun, 24 Feb 2019 18:40:09 +0000 (19:40 +0100)] 
typo (#412)

6 years agoGraceful error when using Jinja2Templates, but jinja2 is not installed
Tom Christie [Sat, 23 Feb 2019 17:49:07 +0000 (17:49 +0000)] 
Graceful error when using Jinja2Templates, but jinja2 is not installed

6 years agoReinstate Lifespan Middleware, for Responder (#405) 0.11.2
Tom Christie [Wed, 20 Feb 2019 14:40:34 +0000 (14:40 +0000)] 
Reinstate Lifespan Middleware, for Responder (#405)

* Reinstate Lifespan Middleware, for Responder

* Ignore coverage of deprecated LifespanMiddleware

6 years agoDrop SQLAlchemy note, since we don't currently have any components that require it.
Tom Christie [Tue, 19 Feb 2019 13:45:10 +0000 (13:45 +0000)] 
Drop SQLAlchemy note, since we don't currently have any components that require it.

6 years agoVersion 0.11.1 0.11.1
Tom Christie [Tue, 19 Feb 2019 13:20:37 +0000 (13:20 +0000)] 
Version 0.11.1

6 years agoRequest state (#404)
Tom Christie [Tue, 19 Feb 2019 13:14:53 +0000 (13:14 +0000)] 
Request state (#404)

* Add Mount(routes=...)

* Lifespan route instance

* Lifespan as a standard routing component

* Linting

* Linting

* Version 0.10.6

* Release notes

* Version 0.11.0

* Drop redundant import

* Drop redundant database requirements

* Include htmlcov in scripts/clean

* Drop redundant import

* Release notes

* Linting

* Add request.state

6 years agoDisable graphiql by default (#375)
Jordan Eremieff [Tue, 19 Feb 2019 13:14:42 +0000 (00:14 +1100)] 
Disable graphiql by default (#375)

* Disable graphiql by default

* Default to graphiql enabled

6 years agoVersion 0.11 (#402)
Tom Christie [Tue, 19 Feb 2019 12:54:57 +0000 (12:54 +0000)] 
Version 0.11 (#402)

* Add Mount(routes=...)

* Lifespan route instance

* Lifespan as a standard routing component

* Linting

* Linting

* Version 0.10.6

* Release notes

* Version 0.11.0

* Drop redundant import

* Drop redundant database requirements

* Include htmlcov in scripts/clean

* Drop redundant import

* Release notes

* Linting

6 years agoImprovements to schema generation (#336)
Jose Eduardo [Tue, 19 Feb 2019 12:49:30 +0000 (12:49 +0000)] 
Improvements to schema generation (#336)

* Include mounted paths in schemas (part of #172)

* Remove unnecessary indirection

* Refactor: cleaner interface, return a dict always

6 years agoApply linting to setup.py (#403)
Jose Eduardo [Tue, 19 Feb 2019 11:30:33 +0000 (11:30 +0000)] 
Apply linting to setup.py (#403)

6 years agoLifespan route instance (#401)
Tom Christie [Tue, 19 Feb 2019 10:55:45 +0000 (10:55 +0000)] 
Lifespan route instance (#401)

* Add Mount(routes=...)
* Lifespan as a standard routing component
* Linting

6 years agoVersion 0.10.5
Tom Christie [Mon, 18 Feb 2019 19:33:30 +0000 (19:33 +0000)] 
Version 0.10.5

6 years agoDocs tweak
Tom Christie [Mon, 18 Feb 2019 18:31:19 +0000 (18:31 +0000)] 
Docs tweak

6 years agofix: jinja annotations when jinja not installed (#399)
Santiago [Mon, 18 Feb 2019 18:29:30 +0000 (19:29 +0100)] 
fix: jinja annotations when jinja not installed (#399)

6 years agoAdd `routes` argument to Mount (#400)
Tom Christie [Mon, 18 Feb 2019 18:28:31 +0000 (18:28 +0000)] 
Add `routes` argument to Mount (#400)

* Add Mount(routes=...)

* Tweaks

6 years agoUpdate schema docs
Tom Christie [Mon, 18 Feb 2019 16:18:41 +0000 (16:18 +0000)] 
Update schema docs

6 years agoSeperate SchemaGenerator from Application
Tom Christie [Mon, 18 Feb 2019 15:48:19 +0000 (15:48 +0000)] 
Seperate SchemaGenerator from Application

6 years agoMinor tweak
Tom Christie [Mon, 18 Feb 2019 15:36:44 +0000 (15:36 +0000)] 
Minor tweak

6 years agoAdd Starlette(routes=...)
Tom Christie [Mon, 18 Feb 2019 15:36:20 +0000 (15:36 +0000)] 
Add Starlette(routes=...)

6 years agoAdd request.app
Tom Christie [Mon, 18 Feb 2019 15:35:42 +0000 (15:35 +0000)] 
Add request.app

6 years agoVersion 0.10.4 0.10.4
Tom Christie [Mon, 18 Feb 2019 13:43:47 +0000 (13:43 +0000)] 
Version 0.10.4

6 years agoVersion 0.10.4
Tom Christie [Mon, 18 Feb 2019 13:41:25 +0000 (13:41 +0000)] 
Version 0.10.4

6 years agoDocs and version bump
Tom Christie [Mon, 18 Feb 2019 13:38:04 +0000 (13:38 +0000)] 
Docs and version bump

6 years agoTemplate component (#398)
Tom Christie [Mon, 18 Feb 2019 13:28:18 +0000 (13:28 +0000)] 
Template component (#398)

* Add Jinja2Templates component

* Fix imports

* Prevent code formatters from moving deliberatly late import

6 years agoPrevent code formatters from moving deliberatly late import 398/head
Tom Christie [Mon, 18 Feb 2019 13:23:33 +0000 (13:23 +0000)] 
Prevent code formatters from moving deliberatly late import

6 years agoFix imports
Tom Christie [Mon, 18 Feb 2019 13:14:53 +0000 (13:14 +0000)] 
Fix imports

6 years agoAdd Jinja2Templates component
Tom Christie [Mon, 18 Feb 2019 13:12:55 +0000 (13:12 +0000)] 
Add Jinja2Templates component

6 years agotiny typo (#397)
Taoufik [Mon, 18 Feb 2019 12:05:06 +0000 (12:05 +0000)] 
tiny typo (#397)