Repository: startupmillio/alchql (language: python)

Issue:
Lint



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/python-black.yml b/.github/workflows/python-black.yml
new file mode 100644
index 0000000..b697a46
--- /dev/null
+++ b/.github/workflows/python-black.yml
@@ -0,0 +1,14 @@
+name: Lint
+
+on: [push, pull_request]
+
+jobs:
+  lint:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: psf/black@stable
+        with:
+          options: "--check --verbose"
+          src: "./alchql"
+          version: "22.3"
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index b568b63..fc5c35b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -24,7 +24,7 @@ tox -e pre-commit
 
 ## Release Process
 
-1. Update the version number in graphene_sqlalchemy_core/__init__.py via a PR.
+1. Update the version number in alchql/__init__.py via a PR.
 
 2. Once the PR is merged, tag the commit on master with the new version (only maintainers of the repo can do this). For example, "v2.1.2". Travis will then automatically build this tag and release it to Pypi.
 
diff --git a/README.md b/README.md
index c2d5d61..5e3d90d 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ to learn how to upgrade to Graphene `2.0`.
 
 ---
 
-# ![Graphene Logo](http://graphene-python.org/favicon.png) Graphene-SQLAlchemy [![Build Status](https://travis-ci.org/graphql-python/graphene-sqlalchemy.svg?branch=master)](https://travis-ci.org/graphql-python/graphene-sqlalchemy) [![PyPI version](https://badge.fury.io/py/graphene-sqlalchemy.svg)](https://badge.fury.io/py/graphene-sqlalchemy) [![Coverage Status](https://coveralls.io/repos/graphql-python/graphene-sqlalchemy/badge.svg?branch=master&service=github)](https://coveralls.io/github/graphql-python/graphene-sqlalchemy?branch=master)
+# AlchQL
 
 
 A [SQLAlchemy](http://www.sqlalchemy.org/) integration for [Graphene](http://graphene-python.org/).
@@ -13,7 +13,7 @@ A [SQLAlchemy](http://www.sqlalchemy.org/) integration for [Graphene](http://gra
 For instaling graphene, just run this command in your shell
 
 ```bash
-pip install "graphene-sqlalchemy-core>=2.0"
+pip install "alchql>=2.0"
 ```
 
 ## Examples
@@ -38,7 +38,8 @@ To create a GraphQL schema for it you simply have to write the following:
 
 ```python
 import graphene
-from graphene_sqlalchemy_core import SQLAlchemyObjectType
+from alchql import SQLAlchemyObjectType
+
 
 class User(SQLAlchemyObjectType):
     class Meta:
@@ -48,6 +49,7 @@ class User(SQLAlchemyObjectType):
         # use `exclude_fields` to exclude specific fields ie "last_name"
         # exclude_fields = ("last_name",)
 
+
 class Query(graphene.ObjectType):
     users = graphene.List(User)
 
@@ -55,6 +57,7 @@ class Query(graphene.ObjectType):
         query = User.get_query(info)  # SQLAlchemy query
         return query.all()
 
+
 schema = graphene.Schema(query=Query)
 ```
 
@@ -74,8 +77,10 @@ result = schema.execute(query, context_value={'session': db_session})
 
 You may also subclass SQLAlchemyObjectType by providing `abstract = True` in
 your subclasses Meta:
+
 ```python
-from graphene_sqlalchemy_core import SQLAlchemyObjectType
+from alchql import SQLAlchemyObjectType
+
 
 class ActiveSQLAlchemyObjectType(SQLAlchemyObjectType):
     class Meta:
@@ -84,14 +89,18 @@ class ActiveSQLAlchemyObjectType(SQLAlchemyObjectType):
     @classmethod
     def get_node(cls, info, id):
         return cls.get_query(info).filter(
-            and_(cls._meta.model.deleted_at==None,
-                 cls._meta.model.id==id)
-            ).first()
+            and_(
+                cls._meta.model.deleted_at == None,
+                cls._meta.model.id == id
+            )
+        ).first()
+
 
 class User(ActiveSQLAlchemyObjectType):
     class Meta:
         model = UserModel
 
+
 class Query(graphene.ObjectType):
     users = graphene.List(User)
 
@@ -99,6 +108,7 @@ class Query(graphene.ObjectType):
         query = User.get_query(info)  # SQLAlchemy query
         return query.all()
 
+
 schema = graphene.Schema(query=Query)
 ```
 
diff --git a/graphene_sqlalchemy_core/__init__.py b/alchql/__init__.py
similarity index 100%
rename from graphene_sqlalchemy_core/__init__.py
rename to alchql/__init__.py
diff --git a/graphene_sqlalchemy_core/app.py b/alchql/app.py
similarity index 100%
rename from graphene_sqlalchemy_core/app.py
rename to alchql/app.py
diff --git a/graphene_sqlalchemy_core/batching.py b/alchql/batching.py
similarity index 100%
rename from graphene_sqlalchemy_core/batching.py
rename to alchql/batching.py
diff --git a/graphene_sqlalchemy_core/consts.py b/alchql/consts.py
similarity index 100%
rename from graphene_sqlalchemy_core/consts.py
rename to alchql/consts.py
diff --git a/graphene_sqlalchemy_core/converter.py b/alchql/converter.py
similarity index 100%
rename from graphene_sqlalchemy_core/converter.py
rename to alchql/converter.py
diff --git a/graphene_sqlalchemy_core/enums.py b/alchql/enums.py
similarity index 100%
rename from graphene_sqlalchemy_core/enums.py
rename to alchql/enums.py
diff --git a/graphene_sqlalchemy_core/extensions/__init__.py b/alchql/extensions/__init__.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/__init__.py
rename to alchql/extensions/__init__.py
diff --git a/graphene_sqlalchemy_core/extensions/extension.py b/alchql/extensions/extension.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/extension.py
rename to alchql/extensions/extension.py
diff --git a/graphene_sqlalchemy_core/extensions/extension_manager.py b/alchql/extensions/extension_manager.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/extension_manager.py
rename to alchql/extensions/extension_manager.py
diff --git a/graphene_sqlalchemy_core/extensions/tracing/InlineTraceExtension.py b/alchql/extensions/tracing/InlineTraceExtension.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/InlineTraceExtension.py
rename to alchql/extensions/tracing/InlineTraceExtension.py
diff --git a/graphene_sqlalchemy_core/extensions/tracing/TraceTreeBuilder.py b/alchql/extensions/tracing/TraceTreeBuilder.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/TraceTreeBuilder.py
rename to alchql/extensions/tracing/TraceTreeBuilder.py
diff --git a/graphene_sqlalchemy_core/extensions/tracing/__init__.py b/alchql/extensions/tracing/__init__.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/__init__.py
rename to alchql/extensions/tracing/__init__.py
diff --git a/graphene_sqlalchemy_core/extensions/tracing/generated/__init__.py b/alchql/extensions/tracing/generated/__init__.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/generated/__init__.py
rename to alchql/extensions/tracing/generated/__init__.py
diff --git a/graphene_sqlalchemy_core/extensions/tracing/generated/reports.proto b/alchql/extensions/tracing/generated/reports.proto
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/generated/reports.proto
rename to alchql/extensions/tracing/generated/reports.proto
diff --git a/graphene_sqlalchemy_core/extensions/tracing/generated/reports_pb2.py b/alchql/extensions/tracing/generated/reports_pb2.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/generated/reports_pb2.py
rename to alchql/extensions/tracing/generated/reports_pb2.py
diff --git a/graphene_sqlalchemy_core/extensions/tracing/generated/update.sh b/alchql/extensions/tracing/generated/update.sh
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/generated/update.sh
rename to alchql/extensions/tracing/generated/update.sh
diff --git a/graphene_sqlalchemy_core/extensions/tracing/utils.py b/alchql/extensions/tracing/utils.py
similarity index 100%
rename from graphene_sqlalchemy_core/extensions/tracing/utils.py
rename to alchql/extensions/tracing/utils.py
diff --git a/graphene_sqlalchemy_core/fields.py b/alchql/fields.py
similarity index 100%
rename from graphene_sqlalchemy_core/fields.py
rename to alchql/fields.py
diff --git a/graphene_sqlalchemy_core/get_input_type.py b/alchql/get_input_type.py
similarity index 100%
rename from graphene_sqlalchemy_core/get_input_type.py
rename to alchql/get_input_type.py
diff --git a/graphene_sqlalchemy_core/gql_fields.py b/alchql/gql_fields.py
similarity index 100%
rename from graphene_sqlalchemy_core/gql_fields.py
rename to alchql/gql_fields.py
diff --git a/graphene_sqlalchemy_core/gql_id.py b/alchql/gql_id.py
similarity index 100%
rename from graphene_sqlalchemy_core/gql_id.py
rename to alchql/gql_id.py
diff --git a/graphene_sqlalchemy_core/gql_types.py b/alchql/gql_types.py
similarity index 100%
rename from graphene_sqlalchemy_core/gql_types.py
rename to alchql/gql_types.py
diff --git a/graphene_sqlalchemy_core/loader_fk.py b/alchql/loader_fk.py
similarity index 100%
rename from graphene_sqlalchemy_core/loader_fk.py
rename to alchql/loader_fk.py
diff --git a/graphene_sqlalchemy_core/middlewares/__init__.py b/alchql/middlewares/__init__.py
similarity index 100%
rename from graphene_sqlalchemy_core/middlewares/__init__.py
rename to alchql/middlewares/__init__.py
diff --git a/graphene_sqlalchemy_core/middlewares/debug_middleware.py b/alchql/middlewares/debug_middleware.py
similarity index 100%
rename from graphene_sqlalchemy_core/middlewares/debug_middleware.py
rename to alchql/middlewares/debug_middleware.py
diff --git a/graphene_sqlalchemy_core/middlewares/loaders_middleware.py b/alchql/middlewares/loaders_middleware.py
similarity index 97%
rename from graphene_sqlalchemy_core/middlewares/loaders_middleware.py
rename to alchql/middlewares/loaders_middleware.py
index 7b7d848..950852b 100644
--- a/graphene_sqlalchemy_core/middlewares/loaders_middleware.py
+++ b/alchql/middlewares/loaders_middleware.py
@@ -6,7 +6,7 @@
 from graphql import GraphQLResolveInfo
 from sqlalchemy.orm import DeclarativeMeta, Mapper
 
-from graphene_sqlalchemy_core.loader_fk import (
+from alchql.loader_fk import (
     generate_loader_by_foreign_key,
     generate_loader_by_relationship,
 )
diff --git a/graphene_sqlalchemy_core/node.py b/alchql/node.py
similarity index 100%
rename from graphene_sqlalchemy_core/node.py
rename to alchql/node.py
diff --git a/graphene_sqlalchemy_core/query_helper.py b/alchql/query_helper.py
similarity index 100%
rename from graphene_sqlalchemy_core/query_helper.py
rename to alchql/query_helper.py
diff --git a/graphene_sqlalchemy_core/registry.py b/alchql/registry.py
similarity index 100%
rename from graphene_sqlalchemy_core/registry.py
rename to alchql/registry.py
diff --git a/graphene_sqlalchemy_core/resolvers.py b/alchql/resolvers.py
similarity index 100%
rename from graphene_sqlalchemy_core/resolvers.py
rename to alchql/resolvers.py
diff --git a/graphene_sqlalchemy_core/slice.py b/alchql/slice.py
similarity index 100%
rename from graphene_sqlalchemy_core/slice.py
rename to alchql/slice.py
diff --git a/graphene_sqlalchemy_core/sql_mutation.py b/alchql/sql_mutation.py
similarity index 100%
rename from graphene_sqlalchemy_core/sql_mutation.py
rename to alchql/sql_mutation.py
diff --git a/graphene_sqlalchemy_core/sqlalchemy_converter.py b/alchql/sqlalchemy_converter.py
similarity index 100%
rename from graphene_sqlalchemy_core/sqlalchemy_converter.py
rename to alchql/sqlalchemy_converter.py
diff --git a/graphene_sqlalchemy_core/types.py b/alchql/types.py
similarity index 100%
rename from graphene_sqlalchemy_core/types.py
rename to alchql/types.py
diff --git a/graphene_sqlalchemy_core/utils.py b/alchql/utils.py
similarity index 100%
rename from graphene_sqlalchemy_core/utils.py
rename to alchql/utils.py
diff --git a/bin/autolinter b/bin/autolinter
deleted file mode 100755
index 8d77db4..0000000
--- a/bin/autolinter
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-# Install the required scripts with
-# pip install autoflake autopep8 isort
-autoflake ./examples/ ./graphene_sqlalchemy_core/ -r --remove-unused-variables --remove-all-unused-imports --in-place
-autopep8 ./examples/ ./graphene_sqlalchemy_core/ -r --in-place --experimental --aggressive --max-line-length 120
-isort -rc ./examples/ ./graphene_sqlalchemy_core/
diff --git a/docs/tutorial.rst b/docs/tutorial.rst
index a0e6faf..670e7fa 100644
--- a/docs/tutorial.rst
+++ b/docs/tutorial.rst
@@ -25,7 +25,7 @@ We will setup the project, execute the following:
 
     # SQLAlchemy and Graphene with SQLAlchemy support
     pip install SQLAlchemy
-    pip install graphene_sqlalchemy_core
+    pip install alchql
 
     # Install Flask and GraphQL Flask for exposing the schema through HTTP
     pip install Flask
@@ -92,7 +92,7 @@ Create ``flask_sqlalchemy/schema.py`` and type the following:
     # flask_sqlalchemy/schema.py
     import graphene
     from graphene import relay
-    from graphene_sqlalchemy_core import SQLAlchemyObjectType, SQLAlchemyConnectionField
+    from alchql import SQLAlchemyObjectType, SQLAlchemyConnectionField
     from .models import db_session, Department as DepartmentModel, Employee as EmployeeModel
 
 
diff --git a/examples/fastapi_sqlalchemy/app.py b/examples/fastapi_sqlalchemy/app.py
index 3ca303c..f2e22af 100755
--- a/examples/fastapi_sqlalchemy/app.py
+++ b/examples/fastapi_sqlalchemy/app.py
@@ -4,8 +4,8 @@
 from fastapi import FastAPI
 
 from database import Base, db_session, engine, init_db
-from graphene_sqlalchemy_core.app import SessionQLApp
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
+from alchql.app import SessionQLApp
+from alchql.middlewares import LoaderMiddleware
 from schema import schema
 
 app = FastAPI()
diff --git a/examples/fastapi_sqlalchemy/schema.py b/examples/fastapi_sqlalchemy/schema.py
index f4af311..a960bb9 100644
--- a/examples/fastapi_sqlalchemy/schema.py
+++ b/examples/fastapi_sqlalchemy/schema.py
@@ -1,8 +1,8 @@
 import graphene
 from graphene import relay
 
-from graphene_sqlalchemy_core import SQLAlchemyConnectionField, SQLAlchemyObjectType
-from graphene_sqlalchemy_core.node import AsyncNode
+from alchql import SQLAlchemyConnectionField, SQLAlchemyObjectType
+from alchql.node import AsyncNode
 from models import (
     Department as DepartmentModel,
     Employee as EmployeeModel,
diff --git a/examples/flask_sqlalchemy/app.py b/examples/flask_sqlalchemy/app.py
index cc62a08..50f7082 100755
--- a/examples/flask_sqlalchemy/app.py
+++ b/examples/flask_sqlalchemy/app.py
@@ -4,7 +4,7 @@
 from graphene import Context
 
 from database import Base, db_session, init_db
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
+from alchql.middlewares import LoaderMiddleware
 from schema import schema
 
 app = Flask(__name__)
diff --git a/examples/flask_sqlalchemy/schema.py b/examples/flask_sqlalchemy/schema.py
index d12d7f8..ee94590 100644
--- a/examples/flask_sqlalchemy/schema.py
+++ b/examples/flask_sqlalchemy/schema.py
@@ -4,7 +4,7 @@
 
 import graphene
 from graphene import relay
-from graphene_sqlalchemy_core import SQLAlchemyConnectionField, SQLAlchemyObjectType
+from alchql import SQLAlchemyConnectionField, SQLAlchemyObjectType
 
 
 class Department(SQLAlchemyObjectType):
diff --git a/examples/nameko_sqlalchemy/schema.py b/examples/nameko_sqlalchemy/schema.py
index fdc84c8..3c55f00 100644
--- a/examples/nameko_sqlalchemy/schema.py
+++ b/examples/nameko_sqlalchemy/schema.py
@@ -4,7 +4,7 @@
 
 import graphene
 from graphene import relay
-from graphene_sqlalchemy_core import SQLAlchemyConnectionField, SQLAlchemyObjectType
+from alchql import SQLAlchemyConnectionField, SQLAlchemyObjectType
 
 
 class Department(SQLAlchemyObjectType):
diff --git a/setup.py b/setup.py
index 078c7ab..c2c8cd1 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@
 
 _version_re = re.compile(r"__version__\s+=\s+(.*)")
 
-with open("graphene_sqlalchemy_core/__init__.py", "rb") as f:
+with open("alchql/__init__.py", "rb") as f:
     version = str(
         ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1))
     )
@@ -32,12 +32,12 @@
 ]
 
 setup(
-    name="graphene-sqlalchemy-core",
+    name="alchql",
     version=version,
     description="Graphene SQLAlchemy core integration",
     long_description=open("README.md").read(),
     long_description_content_type="text/markdown",
-    url="https://gitlab.com/live-art-project/graphene-sqlalchemy-core",
+    url="https://github.com/startupmillio/alchql",
     author="Yorsh Sergey",
     author_email="myrik260138@gmail.com",
     license="MIT",


Test patch:
diff --git a/.github/workflows/python-pytest.yml b/.github/workflows/python-pytest.yml
new file mode 100644
index 0000000..6500dba
--- /dev/null
+++ b/.github/workflows/python-pytest.yml
@@ -0,0 +1,27 @@
+# .github/workflows/app.yaml
+name: PyTest
+on: push
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+
+    steps:
+      - name: Check out repository code
+        uses: actions/checkout@v2
+
+      # Setup Python (faster than using Python container)
+      - name: Setup Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: "3.x"
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install .[test]
+
+      - name: Run test suite
+        run: |
+          pytest
\ No newline at end of file
diff --git a/tests/conftest.py b/tests/conftest.py
index f7b6472..6e4ee6f 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -6,8 +6,8 @@
 from graphql import ASTValidationRule, GraphQLError
 from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
 
-from graphene_sqlalchemy_core.converter import convert_sqlalchemy_composite
-from graphene_sqlalchemy_core.registry import reset_global_registry
+from alchql.converter import convert_sqlalchemy_composite
+from alchql.registry import reset_global_registry
 from .models import Base, CompositeFullName
 
 
diff --git a/tests/test_batching.py b/tests/test_batching.py
index 5e793be..b86d3ad 100644
--- a/tests/test_batching.py
+++ b/tests/test_batching.py
@@ -6,8 +6,8 @@
 import sqlalchemy as sa
 from graphene import Context, relay
 
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.middlewares import LoaderMiddleware
+from alchql.types import SQLAlchemyObjectType
 from .models import Article, HairKind, Pet, Reporter, association_table
 from .utils import to_std_dicts
 
diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py
index 5c78d06..791cc4f 100644
--- a/tests/test_benchmark.py
+++ b/tests/test_benchmark.py
@@ -4,10 +4,10 @@
 from graphene import Context
 
 from .models import Article, HairKind, Pet, Reporter
-from graphene_sqlalchemy_core.fields import BatchSQLAlchemyConnectionField
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.node import AsyncNode
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.fields import BatchSQLAlchemyConnectionField
+from alchql.middlewares import LoaderMiddleware
+from alchql.node import AsyncNode
+from alchql.types import SQLAlchemyObjectType
 
 
 def get_schema():
diff --git a/tests/test_camel_to_snake.py b/tests/test_camel_to_snake.py
index de6d308..ec8cf3f 100644
--- a/tests/test_camel_to_snake.py
+++ b/tests/test_camel_to_snake.py
@@ -1,4 +1,4 @@
-from graphene_sqlalchemy_core.gql_fields import camel_to_snake
+from alchql.gql_fields import camel_to_snake
 
 
 def test_camel_to_snake():
diff --git a/tests/test_converter.py b/tests/test_converter.py
index a842ca3..d2fc2a9 100644
--- a/tests/test_converter.py
+++ b/tests/test_converter.py
@@ -17,17 +17,17 @@
 from graphene.types.datetime import DateTime
 from graphene.types.json import JSONString
 
-from graphene_sqlalchemy_core.converter import (
+from alchql.converter import (
     convert_sqlalchemy_column,
     convert_sqlalchemy_composite,
     convert_sqlalchemy_relationship,
 )
-from graphene_sqlalchemy_core.fields import (
+from alchql.fields import (
     UnsortedSQLAlchemyConnectionField,
     default_connection_field_factory,
 )
-from graphene_sqlalchemy_core.registry import Registry, get_global_registry
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.registry import Registry, get_global_registry
+from alchql.types import SQLAlchemyObjectType
 from .models import Article, CompositeFullName, Pet, Reporter
 
 
diff --git a/tests/test_enums.py b/tests/test_enums.py
index 56dbfb4..28d85af 100644
--- a/tests/test_enums.py
+++ b/tests/test_enums.py
@@ -5,8 +5,8 @@
 from sqlalchemy.types import Enum as SQLAlchemyEnumType
 
 from .models import HairKind, Pet
-from graphene_sqlalchemy_core.enums import _convert_sa_to_graphene_enum, enum_for_field
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.enums import _convert_sa_to_graphene_enum, enum_for_field
+from alchql.types import SQLAlchemyObjectType
 
 
 def test_convert_sa_to_graphene_enum_bad_type():
diff --git a/tests/test_fields.py b/tests/test_fields.py
index fb9fa13..37da58b 100644
--- a/tests/test_fields.py
+++ b/tests/test_fields.py
@@ -3,8 +3,8 @@
 from graphene.relay import Connection, Node
 
 from .models import Editor as EditorModel, Pet as PetModel
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.types import SQLAlchemyObjectType
 
 
 class Pet(SQLAlchemyObjectType):
diff --git a/tests/test_mutations/test_base.py b/tests/test_mutations/test_base.py
index cd9dc8b..e812085 100644
--- a/tests/test_mutations/test_base.py
+++ b/tests/test_mutations/test_base.py
@@ -2,14 +2,14 @@
 import pytest
 from graphene import Context
 
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.node import AsyncNode
-from graphene_sqlalchemy_core.sql_mutation import (
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.middlewares import LoaderMiddleware
+from alchql.node import AsyncNode
+from alchql.sql_mutation import (
     SQLAlchemyCreateMutation,
     SQLAlchemyUpdateMutation,
 )
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.types import SQLAlchemyObjectType
 from tests.models import Pet
 
 
diff --git a/tests/test_mutations/test_create.py b/tests/test_mutations/test_create.py
index ed563a4..0f502f6 100644
--- a/tests/test_mutations/test_create.py
+++ b/tests/test_mutations/test_create.py
@@ -3,14 +3,14 @@
 import sqlalchemy as sa
 from graphene import Context
 
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.gql_id import ResolvedGlobalId
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.node import AsyncNode
-from graphene_sqlalchemy_core.sql_mutation import (
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.gql_id import ResolvedGlobalId
+from alchql.middlewares import LoaderMiddleware
+from alchql.node import AsyncNode
+from alchql.sql_mutation import (
     SQLAlchemyCreateMutation,
 )
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.types import SQLAlchemyObjectType
 from tests import models as m
 from tests.test_query import add_test_data
 
diff --git a/tests/test_mutations/test_delete.py b/tests/test_mutations/test_delete.py
index d589a54..2667a46 100644
--- a/tests/test_mutations/test_delete.py
+++ b/tests/test_mutations/test_delete.py
@@ -2,13 +2,13 @@
 import pytest
 from graphene import Context
 
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.node import AsyncNode
-from graphene_sqlalchemy_core.sql_mutation import (
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.middlewares import LoaderMiddleware
+from alchql.node import AsyncNode
+from alchql.sql_mutation import (
     SQLAlchemyDeleteMutation,
 )
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.types import SQLAlchemyObjectType
 from tests.models import Pet
 from tests.test_query import add_test_data
 
diff --git a/tests/test_mutations/test_update.py b/tests/test_mutations/test_update.py
index b4e1a8a..17f31e4 100644
--- a/tests/test_mutations/test_update.py
+++ b/tests/test_mutations/test_update.py
@@ -3,12 +3,12 @@
 import sqlalchemy as sa
 from graphene import Context
 
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.gql_id import ResolvedGlobalId, encode_gql_id
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.node import AsyncNode
-from graphene_sqlalchemy_core.sql_mutation import SQLAlchemyUpdateMutation
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.gql_id import ResolvedGlobalId, encode_gql_id
+from alchql.middlewares import LoaderMiddleware
+from alchql.node import AsyncNode
+from alchql.sql_mutation import SQLAlchemyUpdateMutation
+from alchql.types import SQLAlchemyObjectType
 from tests.models import Pet
 from tests.test_query import add_test_data
 
diff --git a/tests/test_pagination.py b/tests/test_pagination.py
index f8cb26b..009bba0 100644
--- a/tests/test_pagination.py
+++ b/tests/test_pagination.py
@@ -6,11 +6,11 @@
 from unittest import mock
 
 from .models import Editor
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.node import AsyncNode
-from graphene_sqlalchemy_core import fields
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
+from alchql.types import SQLAlchemyObjectType
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.node import AsyncNode
+from alchql import fields
+from alchql.middlewares import LoaderMiddleware
 
 
 async def add_test_data(session):
diff --git a/tests/test_query.py b/tests/test_query.py
index aec1cb5..99ed74d 100644
--- a/tests/test_query.py
+++ b/tests/test_query.py
@@ -5,11 +5,11 @@
 
 from .models import Article, Base, CompositeFullName, Editor, HairKind, Pet, Reporter
 from .utils import to_std_dicts
-from graphene_sqlalchemy_core.converter import convert_sqlalchemy_composite
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.node import AsyncNode
-from graphene_sqlalchemy_core.types import ORMField, SQLAlchemyObjectType
+from alchql.converter import convert_sqlalchemy_composite
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.middlewares import LoaderMiddleware
+from alchql.node import AsyncNode
+from alchql.types import ORMField, SQLAlchemyObjectType
 
 
 async def add_test_data(session):
diff --git a/tests/test_query_enums.py b/tests/test_query_enums.py
index 503586d..6ebb78d 100644
--- a/tests/test_query_enums.py
+++ b/tests/test_query_enums.py
@@ -5,8 +5,8 @@
 
 from .models import HairKind, Pet, Reporter
 from .test_query import add_test_data, to_std_dicts
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.middlewares import LoaderMiddleware
+from alchql.types import SQLAlchemyObjectType
 
 
 @pytest.mark.asyncio
diff --git a/tests/test_reflected.py b/tests/test_reflected.py
index cd1515b..4a99faa 100644
--- a/tests/test_reflected.py
+++ b/tests/test_reflected.py
@@ -1,8 +1,8 @@
 from graphene import ObjectType
 
 from .models import ReflectedEditor
-from graphene_sqlalchemy_core.registry import Registry
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
+from alchql.registry import Registry
+from alchql.types import SQLAlchemyObjectType
 
 registry = Registry()
 
diff --git a/tests/test_registry.py b/tests/test_registry.py
index 76ec508..30d3d67 100644
--- a/tests/test_registry.py
+++ b/tests/test_registry.py
@@ -3,9 +3,9 @@
 from sqlalchemy.types import Enum as SQLAlchemyEnum
 
 from .models import Pet
-from graphene_sqlalchemy_core.registry import Registry
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
-from graphene_sqlalchemy_core.utils import EnumValue
+from alchql.registry import Registry
+from alchql.types import SQLAlchemyObjectType
+from alchql.utils import EnumValue
 
 
 def test_register_object_type():
diff --git a/tests/test_sort_enums.py b/tests/test_sort_enums.py
index 85b19dc..edcafa1 100644
--- a/tests/test_sort_enums.py
+++ b/tests/test_sort_enums.py
@@ -5,10 +5,10 @@
 
 from .models import Base, HairKind, Pet
 from .test_query import to_std_dicts
-from graphene_sqlalchemy_core.fields import SQLAlchemyConnectionField
-from graphene_sqlalchemy_core.middlewares import LoaderMiddleware
-from graphene_sqlalchemy_core.types import SQLAlchemyObjectType
-from graphene_sqlalchemy_core.utils import to_type_name
+from alchql.fields import SQLAlchemyConnectionField
+from alchql.middlewares import LoaderMiddleware
+from alchql.types import SQLAlchemyObjectType
+from alchql.utils import to_type_name
 
 
 async def add_pets(session):
diff --git a/tests/test_types.py b/tests/test_types.py
index e379a59..751ebb0 100644
--- a/tests/test_types.py
+++ b/tests/test_types.py
@@ -16,13 +16,13 @@
 from graphene.relay import Connection
 from sqlalchemy.orm import relationship
 
-from graphene_sqlalchemy_core import gql_types
-from graphene_sqlalchemy_core.converter import convert_sqlalchemy_composite
-from graphene_sqlalchemy_core.fields import (
+from alchql import gql_types
+from alchql.converter import convert_sqlalchemy_composite
+from alchql.fields import (
     SQLAlchemyConnectionField,
     UnsortedSQLAlchemyConnectionField,
 )
-from graphene_sqlalchemy_core.types import (
+from alchql.types import (
     ORMField,
     SQLAlchemyObjectType,
     SQLAlchemyObjectTypeOptions,
diff --git a/tests/test_utils.py b/tests/test_utils.py
index b8edb6b..9ef1159 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,8 +1,8 @@
 import pytest
 from graphene import Context, ObjectType, Schema, String
 
-from graphene_sqlalchemy_core.gql_fields import camel_to_snake
-from graphene_sqlalchemy_core.utils import (
+from alchql.gql_fields import camel_to_snake
+from alchql.utils import (
     to_enum_value_name,
     to_type_name,
 )