]>
git.ipfire.org Git - thirdparty/starlette.git/log
Sebastián Ramírez [Tue, 18 Dec 2018 20:31:01 +0000 (00:31 +0400)]
Add Third Parties section to docs
Pierre Vanliefland [Tue, 18 Dec 2018 13:29:19 +0000 (14:29 +0100)]
Fix CommaSeparatedStrings code block (#282)
Sebastián Ramírez [Tue, 18 Dec 2018 12:33:32 +0000 (16:33 +0400)]
Add tests for fixed path handling and docs (#280)
* Add tests for fixed path handling and docs
* Mark as not covered route made to never match
* Simplify docs -> routing: example for /users/me
Pierre Vanliefland [Tue, 18 Dec 2018 12:32:28 +0000 (13:32 +0100)]
Add on_error parameter to AuthenticationMiddleware (#281)
* Add on_error parameter to AuthenticationMiddleware to customise responses when auth fails
* Fine-tuning, type hints
Xavier Barbosa [Tue, 18 Dec 2018 10:26:06 +0000 (11:26 +0100)]
Fix mixed uploaded files and data (#277)
* Fix mixed uploaded files and data
* dropped requirement to requests_toolbelt
Igor Nehoroshev [Mon, 17 Dec 2018 16:33:41 +0000 (18:33 +0200)]
Add security flags to session cookie (#276)
* Add security flags to session cookie
Flags: Secure, HttpOnly and SameSite=lax
* Remove Secure flag
* Add options for security flags in SessionMiddleware
* Add tests for secure session
* Lint files that Travis would like to reformat
Only related to pull request
* Return space between imports
* Add documentation for session security flags options
* Format default values
Tom Christie [Fri, 14 Dec 2018 16:23:26 +0000 (16:23 +0000)]
Docs for CommaSeparatedStrings
Tom Christie [Fri, 14 Dec 2018 16:22:31 +0000 (16:22 +0000)]
Add `CommaSeparatedStrings` datatype (#274)
* Add CommaSeparatedStrings datatype
* Version 0.9.9
Tom Christie [Fri, 14 Dec 2018 14:56:31 +0000 (14:56 +0000)]
Add BackgroundTasks for multiple jobs. Support GraphQL background tasks. (#273)
Tom Christie [Fri, 14 Dec 2018 09:58:27 +0000 (09:58 +0000)]
Add request.client (#272)
* Add request.client
* Docs for request.client
Tom Christie [Fri, 14 Dec 2018 09:39:04 +0000 (09:39 +0000)]
Refactor LifespanHandler (#271)
Tom Christie [Thu, 13 Dec 2018 15:40:45 +0000 (15:40 +0000)]
Add HTTPConnection. Base class for both Request and WebSocket. (#270)
Tom Christie [Thu, 13 Dec 2018 15:16:25 +0000 (15:16 +0000)]
Add TemplateResponse. (#269)
* Add TemplateResponse. Expose .template and .context info to test client.
* Only send 'http.response.template' if the extension is include
* Add TemplateResponse to documentation
Jordan Eremieff [Thu, 13 Dec 2018 12:14:31 +0000 (23:14 +1100)]
Support text json in decode method for websocket endpoints, handle malformed JSON (#257)
Daniel Hahler [Tue, 11 Dec 2018 13:09:09 +0000 (14:09 +0100)]
tests: skip test_database without DATABASE_URL (#263)
* tests: skip test_database without DATABASE_URL
(instead of causing a collection error)
* fixup! tests: skip test_database without DATABASE_URL
Daniel Hahler [Tue, 11 Dec 2018 13:08:21 +0000 (14:08 +0100)]
Fix grammar with assertion message (#266)
It should probably also not be an `assert` in the first place (which
might be optimized out)?!
Daniel Hahler [Tue, 11 Dec 2018 13:07:16 +0000 (14:07 +0100)]
README: minor revisit [ci skip] (#265)
Daniel Hahler [Tue, 11 Dec 2018 13:06:12 +0000 (14:06 +0100)]
setup.py: add asyncpg to "full" extras_require (#264)
Daniel Hahler [Tue, 11 Dec 2018 13:05:09 +0000 (14:05 +0100)]
Remove _TestClient indirection (#262)
pytest can be instructed with `__test__ = False` to ignore the class
during discovery.
Pierre Vanliefland [Mon, 10 Dec 2018 16:51:43 +0000 (17:51 +0100)]
Update authentication.md (#260)
* Update authentication.md
Fixed imports and fixed except syntax
* Update authentication.md
AuthenticationMiddleware: backend parameter should be a backend instance, not a class
Tom Christie [Mon, 10 Dec 2018 14:37:30 +0000 (14:37 +0000)]
Add executemany (#259)
Tom Christie [Fri, 7 Dec 2018 14:57:18 +0000 (14:57 +0000)]
Version 0.9.7
Tom Christie [Fri, 7 Dec 2018 13:07:12 +0000 (13:07 +0000)]
Fix SQLAlchemy link
Tom Christie [Fri, 7 Dec 2018 13:05:31 +0000 (13:05 +0000)]
Authentication (#256)
* Authentication
* Fleshing out authentication support
* Version 0.9.6
Raja Simon [Fri, 7 Dec 2018 12:45:36 +0000 (18:15 +0530)]
Fix file path argument (#255)
Sebastián Ramírez [Fri, 7 Dec 2018 09:15:06 +0000 (13:15 +0400)]
Add py.typed marker to setup.py (#253)
Tom Christie [Fri, 7 Dec 2018 08:59:06 +0000 (08:59 +0000)]
Update database docs
Tom Christie [Thu, 6 Dec 2018 10:52:38 +0000 (10:52 +0000)]
Add scripts/clean
Tom Christie [Thu, 6 Dec 2018 10:46:06 +0000 (10:46 +0000)]
Version 0.9.5
Tom Christie [Thu, 6 Dec 2018 09:55:09 +0000 (09:55 +0000)]
Update config docs
Tom Christie [Wed, 5 Dec 2018 16:38:45 +0000 (16:38 +0000)]
Version 0.9.4 (#251)
Tom Christie [Wed, 5 Dec 2018 14:28:18 +0000 (14:28 +0000)]
Use Starlette 'environ' when reading config
Tom Christie [Wed, 5 Dec 2018 12:38:54 +0000 (12:38 +0000)]
Add Secret
Tom Christie [Wed, 5 Dec 2018 12:28:18 +0000 (12:28 +0000)]
Add Environ, DatabaseURL
Tom Christie [Wed, 5 Dec 2018 11:54:34 +0000 (11:54 +0000)]
Version 0.9.3
Tom Christie [Wed, 5 Dec 2018 11:53:38 +0000 (11:53 +0000)]
Add Config() (#250)
* Add Config()
* Fix STARLETTE_TEST_DATABASE in tests
Tom Christie [Wed, 5 Dec 2018 11:35:30 +0000 (11:35 +0000)]
Fix 'postgresql:' database URL check
Tom Christie [Wed, 5 Dec 2018 10:15:39 +0000 (10:15 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Wed, 5 Dec 2018 10:15:32 +0000 (10:15 +0000)]
Tweak database docs
Simon Willison [Tue, 4 Dec 2018 20:21:36 +0000 (12:21 -0800)]
Typo (#249)
Tom Christie [Tue, 4 Dec 2018 16:45:44 +0000 (16:45 +0000)]
Version 0.9.2
Tom Christie [Tue, 4 Dec 2018 16:25:27 +0000 (16:25 +0000)]
Database, not Databases
Tom Christie [Tue, 4 Dec 2018 16:05:33 +0000 (16:05 +0000)]
Hide password in URL.__repr__ (#247)
Tom Christie [Tue, 4 Dec 2018 16:05:16 +0000 (16:05 +0000)]
Add DatabaseMiddleware (#243)
* Add `DatabaseMiddleware`
Pierre Vanliefland [Tue, 4 Dec 2018 12:55:10 +0000 (13:55 +0100)]
Add context with request when executing GraphQL query (#244)
Add context with request when executing GraphQL query
Santiago [Tue, 4 Dec 2018 11:34:42 +0000 (12:34 +0100)]
docs(schemas): fixed url to starlette-apispec (#246)
Tom Christie [Wed, 28 Nov 2018 13:36:22 +0000 (13:36 +0000)]
Version 0.9.1 (#239)
Tom Christie [Wed, 28 Nov 2018 11:51:17 +0000 (11:51 +0000)]
Lifespan as middleware (#225)
* Lifespan as middleware
* 3.6 compat
* Add annotations
* Handle exceptions from applications within LifespanMiddleware
* Lifespan moves to middleware. TestClient can be used as a context manager.
Tom Christie [Wed, 28 Nov 2018 11:49:39 +0000 (11:49 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Wed, 28 Nov 2018 11:49:28 +0000 (11:49 +0000)]
Version 0.9
Santiago [Sat, 24 Nov 2018 15:48:27 +0000 (16:48 +0100)]
docs(schemas): added third party block (#237)
Tom Christie [Fri, 23 Nov 2018 16:29:03 +0000 (16:29 +0000)]
Version 0.8.8
Santiago [Fri, 23 Nov 2018 15:20:07 +0000 (16:20 +0100)]
refactor: schemas now have better support for third party packages (#197)
Tom Christie [Fri, 23 Nov 2018 13:02:20 +0000 (13:02 +0000)]
Disable deprecation warnings (triggered by third party packages)
Tom Christie [Fri, 23 Nov 2018 11:14:39 +0000 (11:14 +0000)]
Version 0.8.7
Tom Christie [Fri, 23 Nov 2018 11:11:16 +0000 (11:11 +0000)]
Asyncio cleanups (#236)
Shen Li [Fri, 23 Nov 2018 08:56:37 +0000 (03:56 -0500)]
add tests for chunked requests (#235)
Tom Christie [Thu, 22 Nov 2018 16:13:01 +0000 (16:13 +0000)]
Version 0.8.6
Tom Christie [Thu, 22 Nov 2018 16:11:06 +0000 (16:11 +0000)]
Use path=/ for session cookies (#232)
Alexander Botello [Wed, 21 Nov 2018 19:12:44 +0000 (13:12 -0600)]
remove unused imports (#228)
Alexander Botello [Wed, 21 Nov 2018 16:25:45 +0000 (10:25 -0600)]
delete print statement (#227)
Taoufik [Sun, 18 Nov 2018 18:26:47 +0000 (18:26 +0000)]
Update broken link (#224)
* Update broken link
* Update broken link
Roman [Fri, 16 Nov 2018 17:56:15 +0000 (20:56 +0300)]
fix typo (#219)
Tom Christie [Fri, 16 Nov 2018 14:04:08 +0000 (14:04 +0000)]
Version 0.8.5
Tom Christie [Fri, 16 Nov 2018 13:52:05 +0000 (13:52 +0000)]
Tweak test case
Tom Christie [Fri, 16 Nov 2018 13:51:22 +0000 (13:51 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
supriyo-biswas [Fri, 16 Nov 2018 13:51:14 +0000 (19:21 +0530)]
Fix incorrect decoding of application/x-www-form-urlencoded request body (#217)
* Fix incorrect decoding of application/x-www-form-urlencoded request body.
* Add test for URLencoded forms.
Tom Christie [Fri, 16 Nov 2018 13:50:55 +0000 (13:50 +0000)]
URL convertors (#221)
* Version 0.8.4
* Add support for path convertors
* Add to_string on convertors
赖信涛 [Wed, 14 Nov 2018 11:38:01 +0000 (19:38 +0800)]
Suooprt HTTP 304 for static files. (#212)
* feat: support HTTP 304
* test for staticfiles 304
* fix email.utils functions
* fix mypy test, just ignore parsedate result type
* not reparsing the FileResponse
* fix black check
* delete unused import and print
* fix type annotation
David Larlet [Wed, 14 Nov 2018 10:58:05 +0000 (05:58 -0500)]
Documentation typo (#218)
Tom Christie [Mon, 12 Nov 2018 10:58:18 +0000 (10:58 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Jesse Braham [Sun, 11 Nov 2018 01:54:21 +0000 (01:54 +0000)]
Include Jinja2 in the [full] optional package (#213)
Jordan Eremieff [Sat, 10 Nov 2018 08:02:51 +0000 (19:02 +1100)]
Move arg (#210)
Tom Christie [Fri, 9 Nov 2018 18:03:35 +0000 (18:03 +0000)]
Version 0.8.4
Tom Christie [Fri, 9 Nov 2018 17:59:58 +0000 (17:59 +0000)]
Default to empty body on responses (#208)
Tom Christie [Fri, 9 Nov 2018 13:41:49 +0000 (13:41 +0000)]
Version 0.8.3
Tom Christie [Fri, 9 Nov 2018 13:40:24 +0000 (13:40 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Fri, 9 Nov 2018 13:39:51 +0000 (13:39 +0000)]
URL reconstruction fix (#204)
* Version 0.8.2
* Fix URL reconstruction
Tom Christie [Fri, 9 Nov 2018 13:38:29 +0000 (13:38 +0000)]
Add name to app routes (#205)
* Version 0.8.2
* Add name argument to app.route(...)
Tom Christie [Thu, 8 Nov 2018 17:00:24 +0000 (17:00 +0000)]
Version 0.8.2
赖信涛 [Thu, 8 Nov 2018 16:59:00 +0000 (00:59 +0800)]
Do not read file for HEAD method on StaticFiles (#176)
* Do not read file for HEAD method on StaticFiles
* bugfix left in FileResponse
* add test for StaticFiles HEAD method
* restore aiofiles'open after testcase
* format code using black
* Send "http.response.body" instead of disconnect.
body default to b"";
more_body default to False;
fix testcase.
* rebase master, revert background task back
* update param name, send_header_only -> method
* No need to instantiate a new Request, just use scope
* style code using black
Tom Christie [Thu, 8 Nov 2018 16:36:39 +0000 (16:36 +0000)]
Add Jinja2 link
Tom Christie [Thu, 8 Nov 2018 16:14:14 +0000 (16:14 +0000)]
Jinja2 (#198)
* Use jinja2 for a default template configuration
* Add release notes
Tom Christie [Thu, 8 Nov 2018 13:12:46 +0000 (13:12 +0000)]
Merge branch 'master' of https://github.com/encode/starlette
Tom Christie [Thu, 8 Nov 2018 13:12:37 +0000 (13:12 +0000)]
Link to example repo
Tom Christie [Thu, 8 Nov 2018 12:33:58 +0000 (12:33 +0000)]
Remove redundant test cases
Tom Christie [Thu, 8 Nov 2018 12:07:17 +0000 (12:07 +0000)]
Version 0.8.0
Tom Christie [Thu, 8 Nov 2018 12:00:51 +0000 (12:00 +0000)]
Add SessionMiddleware's max_age to docs
Jesse Braham [Thu, 8 Nov 2018 11:59:27 +0000 (11:59 +0000)]
Implement session expiry with configurable maximum age (#186)
* Set a maximum age for sessions
* Test session expiry for full coverage
* Fix mypy error
* Handle old-style sessions (ie. no timestamp)
Tom Christie [Thu, 8 Nov 2018 11:59:15 +0000 (11:59 +0000)]
Rejig ExceptionMiddleware and ServerErrorMiddleware (#193)
* Rejig ExceptionMiddleware and ServerErrorMiddleware
* Tweak DebugMiddleware implementation
* Support custom 500 handlers
* Exception handling updates
Witekkq [Thu, 8 Nov 2018 09:34:06 +0000 (10:34 +0100)]
fixed issue 188,trailing spaces not allowed in header (#194)
Alexander Botello [Thu, 8 Nov 2018 09:33:20 +0000 (03:33 -0600)]
StaticFiles will check if directory exists upon instantiation (#195)
* Add check_dir parameter
* Add test coverage for check_dir
* Update documentation
* linting
* Remove extra space
Tom Christie [Wed, 7 Nov 2018 13:42:26 +0000 (13:42 +0000)]
Version 0.7.4
Tom Christie [Wed, 7 Nov 2018 13:38:29 +0000 (13:38 +0000)]
Add `async run_in_threadpool(func, *args, **kwargs)` (#192)
* Add run_in_threadpool
* Fix contextvars support with threadpools
Tom Christie [Tue, 6 Nov 2018 17:03:34 +0000 (17:03 +0000)]
Add template snippet
Tom Christie [Tue, 6 Nov 2018 16:59:54 +0000 (16:59 +0000)]
Version 0.7.3
Tom Christie [Tue, 6 Nov 2018 16:57:57 +0000 (16:57 +0000)]
Add support for name to mount points. (#184)
* Support name on app.mount(...)
* Add templating docs
* Remove erronous commit
* Linting
Tom Christie [Tue, 6 Nov 2018 14:06:25 +0000 (14:06 +0000)]
Add docs for third party middleware classes
Tom Christie [Tue, 6 Nov 2018 12:21:54 +0000 (12:21 +0000)]
Version 0.7.2
Tom Christie [Tue, 6 Nov 2018 12:19:52 +0000 (12:19 +0000)]
Add `@app.middleware(...)` decorator (#183)
* Add @app.middleware() decorator
* Linting
* Drop erronous check-in
* Type hinting for BaseHTTPMiddleware