Reformatted import paths
This commit is contained in:
@@ -1,12 +1,2 @@
|
||||
__all__ = ['commons', 'datalite_decorator', 'fetch', 'migrations', 'datalite', 'constraints']
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
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.
|
||||
"""
|
||||
from sqlite3.dbapi2 import IntegrityError
|
||||
from typing import Dict, Optional, List, Callable
|
||||
from dataclasses import Field, asdict
|
||||
from typing import Dict, Optional, Callable
|
||||
from dataclasses import asdict
|
||||
import sqlite3 as sql
|
||||
|
||||
from constraints import ConstraintFailedError
|
||||
from .constraints import ConstraintFailedError
|
||||
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(
|
||||
name="datalite", # Replace with your own username
|
||||
version="0.5.8",
|
||||
version="0.5.9",
|
||||
author="Ege Ozkan",
|
||||
author_email="egeemirozkan24@gmail.com",
|
||||
description="A small package that binds dataclasses to an sqlite database",
|
||||
|
||||
Reference in New Issue
Block a user