]>
git.ipfire.org Git - thirdparty/starlette.git/log
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
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)
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)
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.
Mostafa Aitbrahim [Tue, 19 Mar 2019 09:17:39 +0000 (09:17 +0000)]
Fix README.md (#438)
Tom Christie [Mon, 18 Mar 2019 08:55:59 +0000 (08:55 +0000)]
Version 0.11.4
Tom Christie [Mon, 18 Mar 2019 08:55:20 +0000 (08:55 +0000)]
Fix for Mount('/', ...) (#439)
* Fix for Mount('/', ...)
* Linting
Tom Christie [Mon, 11 Mar 2019 14:41:22 +0000 (14:41 +0000)]
Populate SCRIPT_NAME in WSGIMiddleware (#434)
Tom Christie [Mon, 11 Mar 2019 14:35:30 +0000 (14:35 +0000)]
Docs tweaks
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
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
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 .
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
Ahti Kitsik [Mon, 4 Mar 2019 15:01:16 +0000 (16:01 +0100)]
Doc hint about enabling code reload support (#417)
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
Tom Christie [Mon, 25 Feb 2019 13:29:54 +0000 (13:29 +0000)]
Remove redundant newlines
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.
Eugene Molotov [Mon, 25 Feb 2019 10:55:14 +0000 (15:55 +0500)]
Adds python 3.5 port note to third party packages (#414)
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.
Jeffrey Gelens [Mon, 25 Feb 2019 10:52:00 +0000 (11:52 +0100)]
Fix lower case header value preflight request (#411)
FoxMaSk [Sun, 24 Feb 2019 18:40:09 +0000 (19:40 +0100)]
typo (#412)
Tom Christie [Sat, 23 Feb 2019 17:49:07 +0000 (17:49 +0000)]
Graceful error when using Jinja2Templates, but jinja2 is not installed
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
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.
Tom Christie [Tue, 19 Feb 2019 13:20:37 +0000 (13:20 +0000)]
Version 0.11.1
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
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
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
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
Jose Eduardo [Tue, 19 Feb 2019 11:30:33 +0000 (11:30 +0000)]
Apply linting to setup.py (#403)
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
Tom Christie [Mon, 18 Feb 2019 19:33:30 +0000 (19:33 +0000)]
Version 0.10.5
Tom Christie [Mon, 18 Feb 2019 18:31:19 +0000 (18:31 +0000)]
Docs tweak
Santiago [Mon, 18 Feb 2019 18:29:30 +0000 (19:29 +0100)]
fix: jinja annotations when jinja not installed (#399)
Tom Christie [Mon, 18 Feb 2019 18:28:31 +0000 (18:28 +0000)]
Add `routes` argument to Mount (#400)
* Add Mount(routes=...)
* Tweaks
Tom Christie [Mon, 18 Feb 2019 16:18:41 +0000 (16:18 +0000)]
Update schema docs
Tom Christie [Mon, 18 Feb 2019 15:48:19 +0000 (15:48 +0000)]
Seperate SchemaGenerator from Application
Tom Christie [Mon, 18 Feb 2019 15:36:44 +0000 (15:36 +0000)]
Minor tweak
Tom Christie [Mon, 18 Feb 2019 15:36:20 +0000 (15:36 +0000)]
Add Starlette(routes=...)
Tom Christie [Mon, 18 Feb 2019 15:35:42 +0000 (15:35 +0000)]
Add request.app
Tom Christie [Mon, 18 Feb 2019 13:43:47 +0000 (13:43 +0000)]
Version 0.10.4
Tom Christie [Mon, 18 Feb 2019 13:41:25 +0000 (13:41 +0000)]
Version 0.10.4
Tom Christie [Mon, 18 Feb 2019 13:38:04 +0000 (13:38 +0000)]
Docs and version bump
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
Tom Christie [Mon, 18 Feb 2019 13:23:33 +0000 (13:23 +0000)]
Prevent code formatters from moving deliberatly late import
Tom Christie [Mon, 18 Feb 2019 13:14:53 +0000 (13:14 +0000)]
Fix imports
Tom Christie [Mon, 18 Feb 2019 13:12:55 +0000 (13:12 +0000)]
Add Jinja2Templates component
Taoufik [Mon, 18 Feb 2019 12:05:06 +0000 (12:05 +0000)]
tiny typo (#397)
Santiago [Sun, 17 Feb 2019 18:19:19 +0000 (19:19 +0100)]
docs: typo in databases + better links in third party (#394)
Sebastián Ramírez [Sat, 16 Feb 2019 19:11:00 +0000 (23:11 +0400)]
Update FastAPI example to make style/difference explicit (#393)
Tom Christie [Thu, 14 Feb 2019 16:01:51 +0000 (16:01 +0000)]
Move to 'databases' instead of built-in DatabaseMiddleware (#390)
Eugene Molotov [Wed, 13 Feb 2019 12:24:58 +0000 (17:24 +0500)]
Add python version restriction (#387)
Taoufik [Tue, 12 Feb 2019 08:57:21 +0000 (08:57 +0000)]
Add Nejma to third party packages (#385)
Tom Christie [Mon, 11 Feb 2019 12:14:54 +0000 (12:14 +0000)]
Version 0.10.2
Tom Christie [Mon, 11 Feb 2019 10:26:18 +0000 (10:26 +0000)]
Don't drop explict port on HTTPS redirects (#382)
Pradip Caulagi [Mon, 11 Feb 2019 08:59:53 +0000 (09:59 +0100)]
Python 3.8 requires openssl support which is available in xenial (#359)
José Antonio Perdiguero [Tue, 5 Feb 2019 16:09:09 +0000 (17:09 +0100)]
Update Starlette API section in third-party docs (#377)
Hiroyuki Tanaka [Fri, 1 Feb 2019 09:06:33 +0000 (18:06 +0900)]
Add content_type attribute to UploadFile (#371)
* Add content_type attribute to UploadFile
* Linting
* Change: default value of UploadFile.content_type is from None to empty string
Tom Christie [Wed, 30 Jan 2019 15:24:17 +0000 (15:24 +0000)]
Version 0.10.1
Tom Christie [Wed, 30 Jan 2019 15:15:59 +0000 (15:15 +0000)]
Routing for Hosts and Subdomains (#363)
* Routing for Hosts and Subdomains
* Linting
Tom Christie [Wed, 30 Jan 2019 14:21:58 +0000 (14:21 +0000)]
MySQL driver support (#366)
* initial support for MySQL
* Work towards testing both MySQL and Postgres drivers
* Linting
* STARLETTE_TEST_DATABASE -> STARLETTE_TEST_DATABASES
* Parameterize the database tests
* Include the MySQL Database URL
* MySQL tests should create the database if it doesn't yet exist
* Explict port of MySQL database URL
* Debugging on Travis
* Pass 'args' as a single argument
* Fix query compilation for mysql
* Lookup record values for MySQL
* Coerce MySQL results to correct python_type
* cursor.fetchrow should be cursor.fetchone
* Fix call to cursor.fetchone()
* Fix for fetchval()
* Debugging
* Nested transaction for MySQL should use SAVEPOINTS
* Drop savepoint implementation
* Fix SAVEPOINT implementation for MySQL
* Coverage for MySQL
* Linting
* Tweak defaults for MySQL connections
Jordan Eremieff [Wed, 30 Jan 2019 09:16:30 +0000 (20:16 +1100)]
Mangum dropped support for FaaS generally, updating third-party docs section (#368)
Florimond Manca [Mon, 28 Jan 2019 14:44:25 +0000 (15:44 +0100)]
Add Bocadillo to third-party frameworks (#362)
* Add Bocadillo to third-party frameworks
* add missing comma
Jordan Eremieff [Mon, 28 Jan 2019 10:26:29 +0000 (21:26 +1100)]
Add section for Mangum to third-party plugins (#361)
* Add section for Mangum to third-party plugins
* Update middleware -> adapter
Henrik Ossipoff Hansen [Sat, 26 Jan 2019 13:02:11 +0000 (14:02 +0100)]
Default rollback_on_shutdown to false in DatabaseMiddleware (#357)
Taoufik [Fri, 25 Jan 2019 23:12:32 +0000 (23:12 +0000)]
Update link to https (#356)
Tom Christie [Fri, 25 Jan 2019 22:39:31 +0000 (22:39 +0000)]
Datastructure cleanups (#355)
* Version 0.10.0
* Datastructure cleanups
* Tweak release notes
Henrik Ossipoff Hansen [Fri, 25 Jan 2019 22:20:17 +0000 (23:20 +0100)]
Use correct name for yaml.dump (#354)
This commit changes the incorrectly named yaml.dumps to yaml.dump.
Steinn Eldjárn Sigurðarson [Fri, 25 Jan 2019 20:27:40 +0000 (20:27 +0000)]
Pass on include_in_schema param (#352)
Tom Christie [Fri, 25 Jan 2019 15:45:18 +0000 (15:45 +0000)]
Add executor_class to GraphQLApp (#350)
Tom Christie [Fri, 25 Jan 2019 15:27:39 +0000 (15:27 +0000)]
WebSockets now default to sending JSON using text dataframes (#349)
Tom Christie [Fri, 25 Jan 2019 14:40:33 +0000 (14:40 +0000)]
Example ASGI apps now ensure scope['type'] is expected message type. (#348)
Tom Christie [Fri, 25 Jan 2019 14:00:35 +0000 (14:00 +0000)]
WebSocket support for auth (#347)
tchan09 [Fri, 25 Jan 2019 13:06:09 +0000 (08:06 -0500)]
Fix typo in scope check for 'websocket' (#335)
* Fix typo in scope check for websocket
* Allow for websocket requests
* Let Requests be http specific
* Use HTTPConnection in place of Requests
* Update signature to work with websocket requests
* Formatter per black
Tom Christie [Fri, 25 Jan 2019 13:04:04 +0000 (13:04 +0000)]
MultiDict (#345)
* Add MultiDict
* Add tests for MultiDict
* Ensure MultiDict behaves as discussed in #345
* Proper name for variable
Tom Christie [Fri, 25 Jan 2019 13:00:28 +0000 (13:00 +0000)]
Don't force isort on tests
Tom Christie [Thu, 24 Jan 2019 15:44:23 +0000 (15:44 +0000)]
Add FormData.close() (#344)
Daniel Hahler [Thu, 24 Jan 2019 12:56:15 +0000 (13:56 +0100)]
minor: fix typo: s/fragement/fragment (#346)
Tom Christie [Wed, 23 Jan 2019 11:19:21 +0000 (11:19 +0000)]
Add ImmutableMultiDict (#343)
Tom Christie [Wed, 23 Jan 2019 09:04:33 +0000 (09:04 +0000)]
Version 0.9.11
Tom Christie [Tue, 22 Jan 2019 20:36:11 +0000 (20:36 +0000)]
Use urlsplit, not urlparse (#341)
Tom Christie [Tue, 22 Jan 2019 19:47:47 +0000 (19:47 +0000)]
Multi item form data (#339)
* Add a multidict FormData structure
Tom Christie [Tue, 22 Jan 2019 17:29:39 +0000 (17:29 +0000)]
Ensure query params behavior matches standard mappings. (#338)
* QueryParams behavior as standard mapping
Taoufik [Tue, 22 Jan 2019 16:24:46 +0000 (16:24 +0000)]
f-strings everywhere (#334)
* f-strings everywhere