Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace .ext. with _ #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The common usage looks like this:

```python
from starlette.applications import Starlette
from gino.ext.starlette import Gino
from gino_starlette import Gino

app = Starlette()
db = Gino(app, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from gino.ext.starlette import Gino
from gino_starlette import Gino

from .. import config

Expand Down
2 changes: 1 addition & 1 deletion examples/prod_fastapi_demo/tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_crud(client):
r.raise_for_status()

# retrieve
url = "/users/{}".format(r.json()['id'])
url = "/users/{}".format(r.json()["id"])
assert client.get(url).json()["nickname"] == nickname

# delete
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_fastapi_demo/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from fastapi import FastAPI
from gino.ext.starlette import Gino
from gino_starlette import Gino
from pydantic import BaseModel

app = FastAPI()
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_starlette_demo/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from gino.ext.starlette import Gino
from gino_starlette import Gino
from starlette.applications import Starlette
from starlette.responses import JSONResponse, PlainTextResponse

Expand Down
4 changes: 2 additions & 2 deletions src/gino_starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from starlette.exceptions import HTTPException
from starlette.types import Receive, Scope, Send

logger = logging.getLogger("gino.ext.starlette")
logger = logging.getLogger("gino_starlette")


class StarletteModelMixin:
Expand Down Expand Up @@ -92,7 +92,7 @@ class Gino(_Gino):
The common usage looks like this::

from starlette.applications import Starlette
from gino.ext.starlette import Gino
from gino_starlette import Gino

app = Starlette()
db = Gino(app, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import gino
import pytest
import requests
from gino.ext.starlette import Gino
from gino_starlette import Gino
from requests.adapters import HTTPAdapter
from starlette.applications import Starlette
from starlette.responses import JSONResponse, PlainTextResponse
Expand Down