Add license and package level import

This commit is contained in:
Daniil Fajnberg 2022-08-06 10:59:55 +02:00
parent a613c3edcd
commit ee9a0de334
3 changed files with 22 additions and 0 deletions

View File

@ -13,6 +13,7 @@ project_urls =
classifiers = classifiers =
Development Status :: 3 - Alpha Development Status :: 3 - Alpha
Intended Audience :: Developers Intended Audience :: Developers
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Operating System :: OS Independent Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.9

View File

@ -0,0 +1 @@
from .sqla import from_sqla

View File

@ -1,3 +1,23 @@
__author__ = "Daniil Fajnberg"
__copyright__ = "Copyright © 2022 Daniil Fajnberg"
__license__ = """GNU LGPLv3.0
This file is part of orm2pydantic.
orm2pydantic is free software: you can redistribute it and/or modify it under the terms of
version 3.0 of the GNU Lesser General Public License as published by the Free Software Foundation.
orm2pydantic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with orm2pydantic.
If not, see <https://www.gnu.org/licenses/>."""
__doc__ = """
Functions for turning SQLAlchemy objects into corresponding Pydantic objects.
"""
from typing import Container, Type from typing import Container, Type
from pydantic import create_model, BaseConfig, BaseModel, Field from pydantic import create_model, BaseConfig, BaseModel, Field