]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
6 years agoAdd Third Parties section to docs 285/head
Sebastián Ramírez [Tue, 18 Dec 2018 20:31:01 +0000 (00:31 +0400)] 
Add Third Parties section to docs

6 years agoFix CommaSeparatedStrings code block (#282)
Pierre Vanliefland [Tue, 18 Dec 2018 13:29:19 +0000 (14:29 +0100)] 
Fix CommaSeparatedStrings code block (#282)

6 years agoAdd tests for fixed path handling and docs (#280)
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

6 years agoAdd on_error parameter to AuthenticationMiddleware (#281)
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

6 years agoFix mixed uploaded files and data (#277)
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

6 years agoAdd security flags to session cookie (#276)
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

6 years agoDocs for CommaSeparatedStrings 0.9.9
Tom Christie [Fri, 14 Dec 2018 16:23:26 +0000 (16:23 +0000)] 
Docs for CommaSeparatedStrings

6 years agoAdd `CommaSeparatedStrings` datatype (#274)
Tom Christie [Fri, 14 Dec 2018 16:22:31 +0000 (16:22 +0000)] 
Add `CommaSeparatedStrings` datatype (#274)

* Add CommaSeparatedStrings datatype

* Version 0.9.9

6 years agoAdd BackgroundTasks for multiple jobs. Support GraphQL background tasks. (#273)
Tom Christie [Fri, 14 Dec 2018 14:56:31 +0000 (14:56 +0000)] 
Add BackgroundTasks for multiple jobs. Support GraphQL background tasks. (#273)

6 years agoAdd request.client (#272)
Tom Christie [Fri, 14 Dec 2018 09:58:27 +0000 (09:58 +0000)] 
Add request.client (#272)

* Add request.client

* Docs for request.client

6 years agoRefactor LifespanHandler (#271)
Tom Christie [Fri, 14 Dec 2018 09:39:04 +0000 (09:39 +0000)] 
Refactor LifespanHandler (#271)

6 years agoAdd HTTPConnection. Base class for both Request and WebSocket. (#270)
Tom Christie [Thu, 13 Dec 2018 15:40:45 +0000 (15:40 +0000)] 
Add HTTPConnection. Base class for both Request and WebSocket. (#270)

6 years agoAdd TemplateResponse. (#269)
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

6 years agoSupport text json in decode method for websocket endpoints, handle malformed JSON...
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)

6 years agotests: skip test_database without DATABASE_URL (#263)
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

6 years agoFix grammar with assertion message (#266)
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)?!

6 years agoREADME: minor revisit [ci skip] (#265)
Daniel Hahler [Tue, 11 Dec 2018 13:07:16 +0000 (14:07 +0100)] 
README: minor revisit  [ci skip] (#265)

6 years agosetup.py: add asyncpg to "full" extras_require (#264)
Daniel Hahler [Tue, 11 Dec 2018 13:06:12 +0000 (14:06 +0100)] 
setup.py: add asyncpg to "full" extras_require (#264)

6 years agoRemove _TestClient indirection (#262)
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.

6 years agoUpdate authentication.md (#260)
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

6 years agoAdd executemany (#259) 0.9.8
Tom Christie [Mon, 10 Dec 2018 14:37:30 +0000 (14:37 +0000)] 
Add executemany (#259)

6 years agoVersion 0.9.7 0.9.7
Tom Christie [Fri, 7 Dec 2018 14:57:18 +0000 (14:57 +0000)] 
Version 0.9.7

6 years agoFix SQLAlchemy link
Tom Christie [Fri, 7 Dec 2018 13:07:12 +0000 (13:07 +0000)] 
Fix SQLAlchemy link

6 years agoAuthentication (#256) 0.9.6
Tom Christie [Fri, 7 Dec 2018 13:05:31 +0000 (13:05 +0000)] 
Authentication (#256)

* Authentication

* Fleshing out authentication support

* Version 0.9.6

6 years agoFix file path argument (#255)
Raja Simon [Fri, 7 Dec 2018 12:45:36 +0000 (18:15 +0530)] 
Fix file path argument (#255)

6 years agoAdd py.typed marker to setup.py (#253)
Sebastián Ramírez [Fri, 7 Dec 2018 09:15:06 +0000 (13:15 +0400)] 
Add py.typed marker to setup.py (#253)

6 years agoUpdate database docs
Tom Christie [Fri, 7 Dec 2018 08:59:06 +0000 (08:59 +0000)] 
Update database docs

6 years agoAdd scripts/clean
Tom Christie [Thu, 6 Dec 2018 10:52:38 +0000 (10:52 +0000)] 
Add scripts/clean

6 years agoVersion 0.9.5 0.9.5
Tom Christie [Thu, 6 Dec 2018 10:46:06 +0000 (10:46 +0000)] 
Version 0.9.5

6 years agoUpdate config docs
Tom Christie [Thu, 6 Dec 2018 09:55:09 +0000 (09:55 +0000)] 
Update config docs

6 years agoVersion 0.9.4 (#251) 0.9.4
Tom Christie [Wed, 5 Dec 2018 16:38:45 +0000 (16:38 +0000)] 
Version 0.9.4 (#251)

6 years agoUse Starlette 'environ' when reading config
Tom Christie [Wed, 5 Dec 2018 14:28:18 +0000 (14:28 +0000)] 
Use Starlette 'environ' when reading config

6 years agoAdd Secret
Tom Christie [Wed, 5 Dec 2018 12:38:54 +0000 (12:38 +0000)] 
Add Secret

6 years agoAdd Environ, DatabaseURL
Tom Christie [Wed, 5 Dec 2018 12:28:18 +0000 (12:28 +0000)] 
Add Environ, DatabaseURL

6 years agoVersion 0.9.3 0.9.3
Tom Christie [Wed, 5 Dec 2018 11:54:34 +0000 (11:54 +0000)] 
Version 0.9.3

6 years agoAdd Config() (#250)
Tom Christie [Wed, 5 Dec 2018 11:53:38 +0000 (11:53 +0000)] 
Add Config() (#250)

* Add Config()

* Fix STARLETTE_TEST_DATABASE in tests

6 years agoFix 'postgresql:' database URL check
Tom Christie [Wed, 5 Dec 2018 11:35:30 +0000 (11:35 +0000)] 
Fix 'postgresql:' database URL check

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Wed, 5 Dec 2018 10:15:39 +0000 (10:15 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoTweak database docs
Tom Christie [Wed, 5 Dec 2018 10:15:32 +0000 (10:15 +0000)] 
Tweak database docs

6 years agoTypo (#249)
Simon Willison [Tue, 4 Dec 2018 20:21:36 +0000 (12:21 -0800)] 
Typo (#249)

6 years agoVersion 0.9.2 0.9.2
Tom Christie [Tue, 4 Dec 2018 16:45:44 +0000 (16:45 +0000)] 
Version 0.9.2

6 years agoDatabase, not Databases
Tom Christie [Tue, 4 Dec 2018 16:25:27 +0000 (16:25 +0000)] 
Database, not Databases

6 years agoHide password in URL.__repr__ (#247)
Tom Christie [Tue, 4 Dec 2018 16:05:33 +0000 (16:05 +0000)] 
Hide password in URL.__repr__ (#247)

6 years agoAdd DatabaseMiddleware (#243)
Tom Christie [Tue, 4 Dec 2018 16:05:16 +0000 (16:05 +0000)] 
Add DatabaseMiddleware (#243)

* Add `DatabaseMiddleware`

6 years agoAdd context with request when executing GraphQL query (#244)
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

6 years agodocs(schemas): fixed url to starlette-apispec (#246)
Santiago [Tue, 4 Dec 2018 11:34:42 +0000 (12:34 +0100)] 
docs(schemas): fixed url to starlette-apispec (#246)

6 years agoVersion 0.9.1 (#239) 0.9.1
Tom Christie [Wed, 28 Nov 2018 13:36:22 +0000 (13:36 +0000)] 
Version 0.9.1 (#239)

6 years agoLifespan as middleware (#225) 0.9.0
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.

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Wed, 28 Nov 2018 11:49:39 +0000 (11:49 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoVersion 0.9
Tom Christie [Wed, 28 Nov 2018 11:49:28 +0000 (11:49 +0000)] 
Version 0.9

6 years agodocs(schemas): added third party block (#237)
Santiago [Sat, 24 Nov 2018 15:48:27 +0000 (16:48 +0100)] 
docs(schemas): added third party block (#237)

6 years agoVersion 0.8.8 0.8.8
Tom Christie [Fri, 23 Nov 2018 16:29:03 +0000 (16:29 +0000)] 
Version 0.8.8

6 years agorefactor: schemas now have better support for third party packages (#197)
Santiago [Fri, 23 Nov 2018 15:20:07 +0000 (16:20 +0100)] 
refactor: schemas now have better support for third party packages (#197)

6 years agoDisable deprecation warnings (triggered by third party packages)
Tom Christie [Fri, 23 Nov 2018 13:02:20 +0000 (13:02 +0000)] 
Disable deprecation warnings (triggered by third party packages)

6 years agoVersion 0.8.7 0.8.7
Tom Christie [Fri, 23 Nov 2018 11:14:39 +0000 (11:14 +0000)] 
Version 0.8.7

6 years agoAsyncio cleanups (#236)
Tom Christie [Fri, 23 Nov 2018 11:11:16 +0000 (11:11 +0000)] 
Asyncio cleanups (#236)

6 years agoadd tests for chunked requests (#235)
Shen Li [Fri, 23 Nov 2018 08:56:37 +0000 (03:56 -0500)] 
add tests for chunked requests (#235)

6 years agoVersion 0.8.6 0.8.6
Tom Christie [Thu, 22 Nov 2018 16:13:01 +0000 (16:13 +0000)] 
Version 0.8.6

6 years agoUse path=/ for session cookies (#232)
Tom Christie [Thu, 22 Nov 2018 16:11:06 +0000 (16:11 +0000)] 
Use path=/ for session cookies (#232)

6 years agoremove unused imports (#228)
Alexander Botello [Wed, 21 Nov 2018 19:12:44 +0000 (13:12 -0600)] 
remove unused imports (#228)

6 years agodelete print statement (#227)
Alexander Botello [Wed, 21 Nov 2018 16:25:45 +0000 (10:25 -0600)] 
delete print statement (#227)

6 years agoUpdate broken link (#224)
Taoufik [Sun, 18 Nov 2018 18:26:47 +0000 (18:26 +0000)] 
Update broken link (#224)

* Update broken link

* Update broken link

6 years agofix typo (#219)
Roman [Fri, 16 Nov 2018 17:56:15 +0000 (20:56 +0300)] 
fix typo (#219)

6 years agoVersion 0.8.5 0.8.5
Tom Christie [Fri, 16 Nov 2018 14:04:08 +0000 (14:04 +0000)] 
Version 0.8.5

6 years agoTweak test case
Tom Christie [Fri, 16 Nov 2018 13:52:05 +0000 (13:52 +0000)] 
Tweak test case

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Fri, 16 Nov 2018 13:51:22 +0000 (13:51 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoFix incorrect decoding of application/x-www-form-urlencoded request body (#217)
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.

6 years agoURL convertors (#221)
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

6 years agoSuooprt HTTP 304 for static files. (#212)
赖信涛 [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

6 years agoDocumentation typo (#218)
David Larlet [Wed, 14 Nov 2018 10:58:05 +0000 (05:58 -0500)] 
Documentation typo (#218)

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Mon, 12 Nov 2018 10:58:18 +0000 (10:58 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoInclude Jinja2 in the [full] optional package (#213)
Jesse Braham [Sun, 11 Nov 2018 01:54:21 +0000 (01:54 +0000)] 
Include Jinja2 in the [full] optional package (#213)

6 years agoMove arg (#210)
Jordan Eremieff [Sat, 10 Nov 2018 08:02:51 +0000 (19:02 +1100)] 
Move  arg (#210)

6 years agoVersion 0.8.4 0.8.4
Tom Christie [Fri, 9 Nov 2018 18:03:35 +0000 (18:03 +0000)] 
Version 0.8.4

6 years agoDefault to empty body on responses (#208)
Tom Christie [Fri, 9 Nov 2018 17:59:58 +0000 (17:59 +0000)] 
Default to empty body on responses (#208)

6 years agoVersion 0.8.3 0.8.3
Tom Christie [Fri, 9 Nov 2018 13:41:49 +0000 (13:41 +0000)] 
Version 0.8.3

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Fri, 9 Nov 2018 13:40:24 +0000 (13:40 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoURL reconstruction fix (#204)
Tom Christie [Fri, 9 Nov 2018 13:39:51 +0000 (13:39 +0000)] 
URL reconstruction fix (#204)

* Version 0.8.2

* Fix URL reconstruction

6 years agoAdd name to app routes (#205)
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(...)

6 years agoVersion 0.8.2 0.8.2
Tom Christie [Thu, 8 Nov 2018 17:00:24 +0000 (17:00 +0000)] 
Version 0.8.2

6 years agoDo not read file for HEAD method on StaticFiles (#176)
赖信涛 [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

6 years agoAdd Jinja2 link
Tom Christie [Thu, 8 Nov 2018 16:36:39 +0000 (16:36 +0000)] 
Add Jinja2 link

6 years agoJinja2 (#198) 0.8.1
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

6 years agoMerge branch 'master' of https://github.com/encode/starlette
Tom Christie [Thu, 8 Nov 2018 13:12:46 +0000 (13:12 +0000)] 
Merge branch 'master' of https://github.com/encode/starlette

6 years agoLink to example repo
Tom Christie [Thu, 8 Nov 2018 13:12:37 +0000 (13:12 +0000)] 
Link to example repo

6 years agoRemove redundant test cases
Tom Christie [Thu, 8 Nov 2018 12:33:58 +0000 (12:33 +0000)] 
Remove redundant test cases

6 years agoVersion 0.8.0 0.8.0
Tom Christie [Thu, 8 Nov 2018 12:07:17 +0000 (12:07 +0000)] 
Version 0.8.0

6 years agoAdd SessionMiddleware's max_age to docs
Tom Christie [Thu, 8 Nov 2018 12:00:51 +0000 (12:00 +0000)] 
Add SessionMiddleware's max_age to docs

6 years agoImplement session expiry with configurable maximum age (#186)
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)

6 years agoRejig ExceptionMiddleware and ServerErrorMiddleware (#193)
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

6 years agofixed issue 188,trailing spaces not allowed in header (#194)
Witekkq [Thu, 8 Nov 2018 09:34:06 +0000 (10:34 +0100)] 
fixed issue 188,trailing spaces not allowed in header (#194)

6 years agoStaticFiles will check if directory exists upon instantiation (#195)
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

6 years agoVersion 0.7.4 0.7.4
Tom Christie [Wed, 7 Nov 2018 13:42:26 +0000 (13:42 +0000)] 
Version 0.7.4

6 years agoAdd `async run_in_threadpool(func, *args, **kwargs)` (#192)
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

6 years agoAdd template snippet
Tom Christie [Tue, 6 Nov 2018 17:03:34 +0000 (17:03 +0000)] 
Add template snippet

6 years agoVersion 0.7.3 0.7.3
Tom Christie [Tue, 6 Nov 2018 16:59:54 +0000 (16:59 +0000)] 
Version 0.7.3

6 years agoAdd support for name to mount points. (#184)
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

6 years agoAdd docs for third party middleware classes
Tom Christie [Tue, 6 Nov 2018 14:06:25 +0000 (14:06 +0000)] 
Add docs for third party middleware classes

6 years agoVersion 0.7.2 0.7.2
Tom Christie [Tue, 6 Nov 2018 12:21:54 +0000 (12:21 +0000)] 
Version 0.7.2

6 years agoAdd `@app.middleware(...)` decorator (#183)
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