Commit Graph

428 Commits

Author SHA1 Message Date
Jordan Eremieff ff8336fb6b Disable graphiql by default (#375)
* Disable graphiql by default

* Default to graphiql enabled
2019-02-19 13:14:42 +00:00
Tom Christie e396f079a5
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
2019-02-19 12:54:57 +00:00
Jose Eduardo 590c77e03d Improvements to schema generation (#336)
* Include mounted paths in schemas (part of #172)

* Remove unnecessary indirection

* Refactor: cleaner interface, return a dict always
2019-02-19 12:49:30 +00:00
Jose Eduardo 2544762512 Apply linting to setup.py (#403) 2019-02-19 11:30:33 +00:00
Tom Christie 06adecd6ed
Lifespan route instance (#401)
* Add Mount(routes=...)
* Lifespan as a standard routing component
* Linting
2019-02-19 10:55:45 +00:00
Tom Christie 933d786627 Version 0.10.5 2019-02-18 19:33:30 +00:00
Tom Christie a28c0e70b1 Docs tweak 2019-02-18 18:31:19 +00:00
Santiago abf7f1ccf9 fix: jinja annotations when jinja not installed (#399) 2019-02-18 18:29:30 +00:00
Tom Christie e3543aa08e
Add `routes` argument to Mount (#400)
* Add Mount(routes=...)

* Tweaks
2019-02-18 18:28:31 +00:00
Tom Christie 47a810ece8 Update schema docs 2019-02-18 16:18:41 +00:00
Tom Christie 879bbcd41a Seperate SchemaGenerator from Application 2019-02-18 15:48:19 +00:00
Tom Christie 50cd5b93bf Minor tweak 2019-02-18 15:36:44 +00:00
Tom Christie 1fdafe69eb Add Starlette(routes=...) 2019-02-18 15:36:20 +00:00
Tom Christie bfb95667a8 Add request.app 2019-02-18 15:35:42 +00:00
Tom Christie 8983508990 Version 0.10.4 2019-02-18 13:43:47 +00:00
Tom Christie 7872bea4f9 Version 0.10.4 2019-02-18 13:41:25 +00:00
Tom Christie 9b57e516cc Docs and version bump 2019-02-18 13:38:04 +00:00
Tom Christie b3ad311bbc
Template component (#398)
* Add Jinja2Templates component

* Fix imports

* Prevent code formatters from moving deliberatly late import
2019-02-18 13:28:18 +00:00
Tom Christie 78ff55dde3 Prevent code formatters from moving deliberatly late import 2019-02-18 13:23:33 +00:00
Tom Christie 5abdc2e4fb Fix imports 2019-02-18 13:14:53 +00:00
Tom Christie 37ee43efc2 Add Jinja2Templates component 2019-02-18 13:12:55 +00:00
Taoufik 1db98c7c2f tiny typo (#397) 2019-02-18 12:05:06 +00:00
Santiago c1c768f916 docs: typo in databases + better links in third party (#394) 2019-02-17 18:19:19 +00:00
Sebastián Ramírez abb8c14a10 Update FastAPI example to make style/difference explicit (#393) 2019-02-16 19:11:00 +00:00
Tom Christie e8dff17ed4
Move to 'databases' instead of built-in DatabaseMiddleware (#390) 2019-02-14 16:01:51 +00:00
Eugene Molotov 69a0e80292 Add python version restriction (#387) 2019-02-13 12:24:58 +00:00
Taoufik 639bfe459b Add Nejma to third party packages (#385) 2019-02-12 08:57:21 +00:00
Tom Christie cdff748cea Version 0.10.2 2019-02-11 12:14:54 +00:00
Tom Christie 204d1b596f
Don't drop explict port on HTTPS redirects (#382) 2019-02-11 10:26:18 +00:00
Pradip Caulagi 208b4aa207 Python 3.8 requires openssl support which is available in xenial (#359) 2019-02-11 08:59:53 +00:00
José Antonio Perdiguero 37782e7a55 Update Starlette API section in third-party docs (#377) 2019-02-05 16:09:09 +00:00
Hiroyuki Tanaka 96d50862e4 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
2019-02-01 09:06:33 +00:00
Tom Christie 7e1bfa8c01 Version 0.10.1 2019-01-30 15:24:17 +00:00
Tom Christie 84f3488f60
Routing for Hosts and Subdomains (#363)
* Routing for Hosts and Subdomains

* Linting
2019-01-30 15:15:59 +00:00
Tom Christie 3270762c16
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
2019-01-30 14:21:58 +00:00
Jordan Eremieff 82df72bdd7 Mangum dropped support for FaaS generally, updating third-party docs section (#368) 2019-01-30 09:16:30 +00:00
Florimond Manca 88b4d54f7d Add Bocadillo to third-party frameworks (#362)
* Add Bocadillo to third-party frameworks

* add missing comma
2019-01-28 14:44:25 +00:00
Jordan Eremieff c456ca4b4a Add section for Mangum to third-party plugins (#361)
* Add section for Mangum to third-party plugins

* Update middleware -> adapter
2019-01-28 10:26:29 +00:00
Henrik Ossipoff Hansen 678589b2de Default rollback_on_shutdown to false in DatabaseMiddleware (#357) 2019-01-26 13:02:11 +00:00
Taoufik d3a0a723a7 Update link to https (#356) 2019-01-25 23:12:32 +00:00
Tom Christie a4ebd7c474
Datastructure cleanups (#355)
* Version 0.10.0

* Datastructure cleanups

* Tweak release notes
2019-01-25 22:39:31 +00:00
Henrik Ossipoff Hansen 1f4338dc99 Use correct name for yaml.dump (#354)
This commit changes the incorrectly named yaml.dumps to yaml.dump.
2019-01-25 22:20:17 +00:00
Steinn Eldjárn Sigurðarson d06252e68a Pass on include_in_schema param (#352) 2019-01-25 20:27:40 +00:00
Tom Christie 439b4680f0
Add executor_class to GraphQLApp (#350) 2019-01-25 15:45:18 +00:00
Tom Christie 1ee194739f
WebSockets now default to sending JSON using text dataframes (#349) 2019-01-25 15:27:39 +00:00
Tom Christie d5c798e6b8
Example ASGI apps now ensure scope['type'] is expected message type. (#348) 2019-01-25 14:40:33 +00:00
Tom Christie 16db18f519
WebSocket support for auth (#347) 2019-01-25 14:00:35 +00:00
tchan09 88bd2a2ce9 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
2019-01-25 13:06:09 +00:00
Tom Christie 25cbba15c0
MultiDict (#345)
* Add MultiDict

* Add tests for MultiDict

* Ensure MultiDict behaves as discussed in #345

* Proper name for variable
2019-01-25 13:04:04 +00:00
Tom Christie 1f7d597c16 Don't force isort on tests 2019-01-25 13:00:28 +00:00