Reformatted import paths
This commit is contained in:
@@ -1,12 +1,2 @@
|
|||||||
__all__ = ['commons', 'datalite_decorator', 'fetch', 'migrations', 'datalite', 'constraints']
|
__all__ = ['commons', 'datalite_decorator', 'fetch', 'migrations', 'datalite', 'constraints']
|
||||||
|
|
||||||
from dataclasses import dataclass
|
|
||||||
|
|
||||||
|
|
||||||
from .datalite_decorator import datalite
|
from .datalite_decorator import datalite
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class Student:
|
|
||||||
id_: int
|
|
||||||
name: str
|
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ Defines the Datalite decorator that can be used to convert a dataclass to
|
|||||||
a class bound to a sqlite3 database.
|
a class bound to a sqlite3 database.
|
||||||
"""
|
"""
|
||||||
from sqlite3.dbapi2 import IntegrityError
|
from sqlite3.dbapi2 import IntegrityError
|
||||||
from typing import Dict, Optional, List, Callable
|
from typing import Dict, Optional, Callable
|
||||||
from dataclasses import Field, asdict
|
from dataclasses import asdict
|
||||||
import sqlite3 as sql
|
import sqlite3 as sql
|
||||||
|
|
||||||
from constraints import ConstraintFailedError
|
from .constraints import ConstraintFailedError
|
||||||
from .commons import _convert_sql_format, _convert_type, _create_table, type_table
|
from .commons import _convert_sql_format, _convert_type, _create_table, type_table
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="datalite", # Replace with your own username
|
name="datalite", # Replace with your own username
|
||||||
version="0.5.8",
|
version="0.5.9",
|
||||||
author="Ege Ozkan",
|
author="Ege Ozkan",
|
||||||
author_email="egeemirozkan24@gmail.com",
|
author_email="egeemirozkan24@gmail.com",
|
||||||
description="A small package that binds dataclasses to an sqlite database",
|
description="A small package that binds dataclasses to an sqlite database",
|
||||||
|
|||||||
Reference in New Issue
Block a user