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

6 years agodocs: typo in databases + better links in third party (#394)
Santiago [Sun, 17 Feb 2019 18:19:19 +0000 (19:19 +0100)] 
docs: typo in databases + better links in third party (#394)

6 years agoUpdate FastAPI example to make style/difference explicit (#393)
Sebastián Ramírez [Sat, 16 Feb 2019 19:11:00 +0000 (23:11 +0400)] 
Update FastAPI example to make style/difference explicit (#393)

6 years agoMove to 'databases' instead of built-in DatabaseMiddleware (#390)
Tom Christie [Thu, 14 Feb 2019 16:01:51 +0000 (16:01 +0000)] 
Move to 'databases' instead of built-in DatabaseMiddleware (#390)

6 years agoAdd python version restriction (#387)
Eugene Molotov [Wed, 13 Feb 2019 12:24:58 +0000 (17:24 +0500)] 
Add python version restriction (#387)

6 years agoAdd Nejma to third party packages (#385)
Taoufik [Tue, 12 Feb 2019 08:57:21 +0000 (08:57 +0000)] 
Add Nejma to third party packages (#385)

6 years agoVersion 0.10.2
Tom Christie [Mon, 11 Feb 2019 12:14:54 +0000 (12:14 +0000)] 
Version 0.10.2

6 years agoDon't drop explict port on HTTPS redirects (#382)
Tom Christie [Mon, 11 Feb 2019 10:26:18 +0000 (10:26 +0000)] 
Don't drop explict port on HTTPS redirects (#382)

6 years agoPython 3.8 requires openssl support which is available in xenial (#359)
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)

6 years agoUpdate Starlette API section in third-party docs (#377)
José Antonio Perdiguero [Tue, 5 Feb 2019 16:09:09 +0000 (17:09 +0100)] 
Update Starlette API section in third-party docs (#377)

6 years agoAdd content_type attribute to UploadFile (#371)
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

6 years agoVersion 0.10.1 0.10.1
Tom Christie [Wed, 30 Jan 2019 15:24:17 +0000 (15:24 +0000)] 
Version 0.10.1

6 years agoRouting for Hosts and Subdomains (#363)
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

6 years agoMySQL driver support (#366)
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

6 years agoMangum dropped support for FaaS generally, updating third-party docs section (#368)
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)

6 years agoAdd Bocadillo to third-party frameworks (#362)
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

6 years agoAdd section for Mangum to third-party plugins (#361)
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

6 years agoDefault rollback_on_shutdown to false in DatabaseMiddleware (#357)
Henrik Ossipoff Hansen [Sat, 26 Jan 2019 13:02:11 +0000 (14:02 +0100)] 
Default rollback_on_shutdown to false in DatabaseMiddleware (#357)

6 years agoUpdate link to https (#356)
Taoufik [Fri, 25 Jan 2019 23:12:32 +0000 (23:12 +0000)] 
Update link to https (#356)

6 years agoDatastructure cleanups (#355) 0.10.0
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

6 years agoUse correct name for yaml.dump (#354)
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.

6 years agoPass on include_in_schema param (#352)
Steinn Eldjárn Sigurðarson [Fri, 25 Jan 2019 20:27:40 +0000 (20:27 +0000)] 
Pass on include_in_schema param (#352)

6 years agoAdd executor_class to GraphQLApp (#350)
Tom Christie [Fri, 25 Jan 2019 15:45:18 +0000 (15:45 +0000)] 
Add executor_class to GraphQLApp (#350)

6 years agoWebSockets now default to sending JSON using text dataframes (#349)
Tom Christie [Fri, 25 Jan 2019 15:27:39 +0000 (15:27 +0000)] 
WebSockets now default to sending JSON using text dataframes (#349)

6 years agoExample ASGI apps now ensure scope['type'] is expected message type. (#348)
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)

6 years agoWebSocket support for auth (#347)
Tom Christie [Fri, 25 Jan 2019 14:00:35 +0000 (14:00 +0000)] 
WebSocket support for auth (#347)

6 years agoFix typo in scope check for 'websocket' (#335)
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

6 years agoMultiDict (#345)
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

6 years agoDon't force isort on tests
Tom Christie [Fri, 25 Jan 2019 13:00:28 +0000 (13:00 +0000)] 
Don't force isort on tests

6 years agoAdd FormData.close() (#344)
Tom Christie [Thu, 24 Jan 2019 15:44:23 +0000 (15:44 +0000)] 
Add FormData.close() (#344)

6 years agominor: fix typo: s/fragement/fragment (#346)
Daniel Hahler [Thu, 24 Jan 2019 12:56:15 +0000 (13:56 +0100)] 
minor: fix typo: s/fragement/fragment (#346)

6 years agoAdd ImmutableMultiDict (#343)
Tom Christie [Wed, 23 Jan 2019 11:19:21 +0000 (11:19 +0000)] 
Add ImmutableMultiDict (#343)

6 years agoVersion 0.9.11 0.9.11
Tom Christie [Wed, 23 Jan 2019 09:04:33 +0000 (09:04 +0000)] 
Version 0.9.11

6 years agoUse urlsplit, not urlparse (#341)
Tom Christie [Tue, 22 Jan 2019 20:36:11 +0000 (20:36 +0000)] 
Use urlsplit, not urlparse (#341)

6 years agoMulti item form data (#339)
Tom Christie [Tue, 22 Jan 2019 19:47:47 +0000 (19:47 +0000)] 
Multi item form data (#339)

* Add a multidict FormData structure

6 years agoEnsure query params behavior matches standard mappings. (#338)
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

6 years agof-strings everywhere (#334)
Taoufik [Tue, 22 Jan 2019 16:24:46 +0000 (16:24 +0000)] 
f-strings everywhere (#334)

* f-strings everywhere

6 years agodoc: exceptions: keep original status_code (#331)
Daniel Hahler [Mon, 21 Jan 2019 09:29:34 +0000 (10:29 +0100)] 
doc: exceptions: keep original status_code (#331)

It is considered to be best practice for a not-found page to also use
status code 404.

This changes the examples for the 404 and 500 pages to keep the
exceptions status code.

6 years agoSession cookie expires (#326)
Pierre Vanliefland [Fri, 18 Jan 2019 12:59:27 +0000 (13:59 +0100)] 
Session cookie expires (#326)

* Set Max-Age on session cookies

* Format max-age as int

6 years agoMinor cleanups (#324)
Tom Christie [Wed, 16 Jan 2019 12:00:06 +0000 (12:00 +0000)] 
Minor cleanups (#324)

* Minor cleanups

* Linting

6 years agomerge DebugGenerator into ServerErrorMiddleware (#323)
Florimond Manca [Tue, 15 Jan 2019 12:36:19 +0000 (13:36 +0100)] 
merge DebugGenerator into ServerErrorMiddleware (#323)

6 years agoVersion 0.9.10 0.9.10
Tom Christie [Tue, 15 Jan 2019 11:16:02 +0000 (11:16 +0000)] 
Version 0.9.10

6 years agoAdd `request.is_disconnected()` (#320)
Tom Christie [Tue, 15 Jan 2019 09:59:59 +0000 (09:59 +0000)] 
Add `request.is_disconnected()` (#320)

* Add request.is_disconnected()

* Add request.is_disconnected

6 years agoIgnore database coverage if STARLETTE_TEST_DATABASE is unset (#319)
Tom Christie [Mon, 14 Jan 2019 12:39:40 +0000 (12:39 +0000)] 
Ignore database coverage if STARLETTE_TEST_DATABASE is unset (#319)

* Ignore database coverage if STARLETTE_TEST_DATABASE is unset

* Skip black on 3.7 :(

6 years agoApply URL escaping to form encoded key names. (#318)
Tom Christie [Mon, 14 Jan 2019 12:28:16 +0000 (12:28 +0000)] 
Apply URL escaping to form encoded key names. (#318)

6 years agoTweaks to CONTRIBUTING docs and install script
Tom Christie [Mon, 14 Jan 2019 11:22:43 +0000 (11:22 +0000)] 
Tweaks to CONTRIBUTING docs and install script

6 years agoInstall script (#300)
Florimond Manca [Mon, 14 Jan 2019 11:12:41 +0000 (12:12 +0100)] 
Install script (#300)

* add install script

* add -p option, include script in contributing notes, add script compatibility note

* fix dead links

* use debug mode, fix default python executable

* add comment on line selecting python executable

6 years agoSupport HEAD for GraphQL
Tom Christie [Mon, 14 Jan 2019 11:11:18 +0000 (11:11 +0000)] 
Support HEAD for GraphQL

6 years agoDrop body from responses on HEAD requests (#317)
Tom Christie [Mon, 14 Jan 2019 11:07:23 +0000 (11:07 +0000)] 
Drop body from responses on HEAD requests (#317)

* Drop body from responses on HEAD requests

* Linting

* Endpoints supporting HEAD should automatically support GET

6 years agoFlexible requires decorator (#314)
Tom Christie [Thu, 10 Jan 2019 15:37:50 +0000 (15:37 +0000)] 
Flexible requires decorator (#314)

* Remove unused imports, with 'autoflake'

* Flexible 'requires' decorator

* Linting

* Exclude coverage on uncalled line

* Merge master

6 years agoRemove unused imports, with 'autoflake' (#313)
Tom Christie [Thu, 10 Jan 2019 14:35:32 +0000 (14:35 +0000)] 
Remove unused imports, with 'autoflake' (#313)

6 years agoSupport `@requires` as a method decorator (#312)
Tom Christie [Thu, 10 Jan 2019 13:46:46 +0000 (13:46 +0000)] 
Support `@requires` as a method decorator (#312)

* Support requires method decorator

* Add annotation

* Update docs for requires as a method decorator

6 years agoFix several ResourceWarning: unclosed file (#310)
Mickaël Schoentgen [Tue, 8 Jan 2019 15:12:26 +0000 (16:12 +0100)] 
Fix several ResourceWarning: unclosed file (#310)

Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
6 years agoPass operationName to GraphQL executor (#309)
Taku Fukada [Tue, 8 Jan 2019 09:32:31 +0000 (18:32 +0900)] 
Pass operationName to GraphQL executor (#309)

6 years agotype of subprotocol is str, not List[str] (#308)
Tom Christie [Mon, 7 Jan 2019 14:21:39 +0000 (14:21 +0000)] 
type of subprotocol is str, not List[str] (#308)

* type of subprotocol is str, not List[str]

* Force upgrade cached requirements

* Attempt to force clean test re-run

* Always force latest requirements

6 years agoAdd webargs-starlette to Third Party Packages page (#306)
Steven Loria [Mon, 7 Jan 2019 10:11:34 +0000 (19:11 +0900)] 
Add webargs-starlette to Third Party Packages page (#306)

6 years agoFix multi field forms parsing after already having read the body (#287)
Sebastián Ramírez [Fri, 4 Jan 2019 09:44:42 +0000 (13:44 +0400)] 
Fix multi field forms parsing after already having read the body (#287)

* Fix multi field forms parsing after already having read the body

* Lint / Format additional tests

* Remove unused test app section in form tests

6 years agoFix documentation for Secret and DatabaseURL (#303)
Steven Loria [Thu, 3 Jan 2019 16:15:42 +0000 (11:15 -0500)] 
Fix documentation for Secret and DatabaseURL (#303)

6 years agoinclude license file (#299)
Carlo [Wed, 2 Jan 2019 12:44:20 +0000 (13:44 +0100)] 
include license file (#299)

6 years agoAdd contributing guidelines (#292)
Florimond Manca [Wed, 2 Jan 2019 11:47:36 +0000 (12:47 +0100)] 
Add contributing guidelines (#292)

* add draft for contribution guidelines

* recommend using the test script

* add linting guidelines

* add hint for new branch command, do not imply any branch naming convention

6 years agofix population of content-type and content-length headers (#291)
Florimond Manca [Wed, 26 Dec 2018 17:13:51 +0000 (18:13 +0100)] 
fix population of content-type and content-length headers (#291)

6 years agoMerge branch 'tiangolo-third-parties'
Tom Christie [Wed, 19 Dec 2018 10:16:20 +0000 (10:16 +0000)] 
Merge branch 'tiangolo-third-parties'

6 years agoMinor tweaks to third party package docs
Tom Christie [Wed, 19 Dec 2018 10:16:03 +0000 (10:16 +0000)] 
Minor tweaks to third party package docs

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