Commit Graph

18 Commits

Author SHA1 Message Date
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
Tom Christie e8dff17ed4
Move to 'databases' instead of built-in DatabaseMiddleware (#390) 2019-02-14 16:01:51 +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
Tom Christie 6cd0b2b787
Remove unused imports, with 'autoflake' (#313) 2019-01-10 14:35:32 +00:00
Tom Christie 0b7819b4b2
Add DatabaseMiddleware (#243)
* Add `DatabaseMiddleware`
2018-12-04 16:05:16 +00:00
Tom Christie 2ef21f49c9
Jinja2 (#198)
* Use jinja2 for a default template configuration

* Add release notes
2018-11-08 16:14:14 +00:00
Tom Christie de010e7796
Return strings from `url_path_for` (#169)
Schema generation & return strings from `url_path_for`
2018-11-01 10:40:08 +00:00
Tom Christie 87da226f1c
Session middleware (#157)
* Use isort for consistent import ordering

* Add SessionMmiddleware support

* Add SessionMiddleware support
2018-10-29 16:16:51 +00:00
Tom Christie bcf876c686
Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
Tom Christie 315a21be85
GraphQL support (#126)
* GraphQL support

* GraphQL support

* Run GraphQL queries inside a threadpool

* Support AsyncioExecutor

* GraphQL error formatting

* Docs for GraphQL support
2018-10-18 14:45:18 +01:00
Tom Christie c43a070eed
Form parsing (#102)
* Work towards MultiPartParser

* Work towards MultiPartParser

* Add test for multipart files

* MultiPart parsing

* Fix for large multipart messages

* Add python-multipart to docs

* Add python-multipart to 'pip install starlette[full]'

* Add FormParser

* Add docs for request.form()

* Drop mypy momentarily
2018-10-12 18:15:04 +01:00
Tom Christie cc09042c1c
Enable mypy in tests (#103)
* Enable mypy in tests

* Fix TestClient annotations
2018-10-10 17:33:12 +01:00
Tom Christie 78d1829758
Version 0.3 (#57)
* Renamings

* Version 0.3.0

* Black formatting

* Update docs for 0.3
2018-09-05 11:39:38 +01:00
Tom Christie 25990db22e Add mkdocs 2018-08-28 16:25:32 +01:00
Tom Christie 5f194f73bf Add FileResponse 2018-07-11 16:08:51 +01:00
Tom Christie 8efc4af842 Requires 3.6+ (To support async generators) 2018-06-25 14:50:22 +01:00
Tom Christie a2a2a2968c Only install black on Python >= 3.6 2018-06-25 14:42:38 +01:00
Tom Christie 5a9fe3f048 Initial commit 2018-06-25 14:15:32 +01:00