]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:art: Update main imports (and exports)
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 10 Dec 2018 01:53:46 +0000 (05:53 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Mon, 10 Dec 2018 03:59:17 +0000 (07:59 +0400)
fastapi/__init__.py
fastapi/openapi/utils.py
fastapi/security/__init__.py

index eef220e495c616d030d062e28c4033503551f324..326428564d75fc65e9547cc7c19e2cdc227a0eea 100644 (file)
@@ -1,3 +1,7 @@
-"""Fast API framework, high performance, fast to learn, fast to code, fast to production"""
+"""FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
 
-__version__ = "0.1.0"
+__version__ = "0.1.2"
+
+from .applications import FastAPI
+from .routing import APIRouter
+from .params import Body, Path, Query, Header, Cookie, Form, File, Security, Depends
index bb75a024ec7de15e98d31a635d2065f8b786310e..3e445d6150afdadd1dbc27001c3a9a73a7ed8258 100644 (file)
@@ -124,7 +124,7 @@ def generate_operation_id(*, route: routing.APIRoute, method: str) -> str:
 def generate_operation_summary(*, route: routing.APIRoute, method: str) -> str:
     if route.summary:
         return route.summary
-    return method.title() + " " + route.name.replace("_", " ").title()
+    return route.name.replace("_", " ").title() + " " + method.title()
 
 
 def get_openapi_operation_metadata(*, route: routing.APIRoute, method: str) -> Dict:
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ba66dd54e247cce5eae061ee44d680388eded946 100644 (file)
@@ -0,0 +1,4 @@
+from .api_key import APIKeyQuery, APIKeyHeader, APIKeyCookie
+from .http import HTTPBasic, HTTPBearer, HTTPDigest
+from .oauth2 import OAuth2PasswordRequestForm, OAuth2
+from .open_id_connect_url import OpenIdConnect