wiederverwendbar 0.8.3__py3-none-any.whl → 0.8.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wiederverwendbar/__init__.py +1 -1
- wiederverwendbar/examples/sqlalchemy/db.py +70 -12
- wiederverwendbar/functions/get_pretty_str.py +9 -0
- wiederverwendbar/sqlalchemy/base.py +31 -2
- wiederverwendbar/sqlalchemy/db.py +140 -14
- wiederverwendbar/sqlalchemy/settings.py +9 -0
- {wiederverwendbar-0.8.3.dist-info → wiederverwendbar-0.8.5.dist-info}/METADATA +14 -14
- {wiederverwendbar-0.8.3.dist-info → wiederverwendbar-0.8.5.dist-info}/RECORD +10 -9
- {wiederverwendbar-0.8.3.dist-info → wiederverwendbar-0.8.5.dist-info}/WHEEL +0 -0
- {wiederverwendbar-0.8.3.dist-info → wiederverwendbar-0.8.5.dist-info}/entry_points.txt +0 -0
wiederverwendbar/__init__.py
CHANGED
@@ -1,31 +1,89 @@
|
|
1
1
|
from pathlib import Path
|
2
|
+
from typing import Optional
|
2
3
|
|
3
|
-
from sqlalchemy import Column,
|
4
|
+
from sqlalchemy import Column, ForeignKey, Integer, Text
|
4
5
|
|
5
|
-
from
|
6
|
+
from sqlalchemy.orm import relationship
|
7
|
+
|
8
|
+
from wiederverwendbar.logger import LoggerSingleton, LoggerSettings, LogLevels
|
6
9
|
from wiederverwendbar.sqlalchemy import Base, SqlalchemySettings, SqlalchemyDbSingleton
|
7
10
|
|
8
|
-
LoggerSingleton(name="test", settings=LoggerSettings(log_level=
|
11
|
+
LoggerSingleton(name="test", settings=LoggerSettings(log_level=LogLevels.DEBUG), init=True)
|
12
|
+
SqlalchemyDbSingleton(settings=SqlalchemySettings(db_file=Path("test.db")), init=True)
|
9
13
|
|
10
14
|
|
11
|
-
class MyBase(Base, SqlalchemyDbSingleton(
|
15
|
+
class MyBase(Base, SqlalchemyDbSingleton().Base):
|
12
16
|
__abstract__ = True
|
13
17
|
|
14
18
|
|
15
|
-
class
|
16
|
-
__tablename__ = "
|
17
|
-
__str_columns__: list[str] = ["name"]
|
19
|
+
class Parent(MyBase):
|
20
|
+
__tablename__ = "parent"
|
21
|
+
__str_columns__: list[str] = ["id", "name"]
|
22
|
+
|
23
|
+
id: int = Column(Integer(), primary_key=True, autoincrement=True, name="parent_id")
|
24
|
+
name: str = Column(Text(50), nullable=False, unique=True)
|
25
|
+
children: list["Child"] = relationship("Child",
|
26
|
+
foreign_keys="Child.parent_id",
|
27
|
+
primaryjoin="Parent.id == Child.parent_id",
|
28
|
+
viewonly=True)
|
29
|
+
|
18
30
|
|
19
|
-
|
20
|
-
|
31
|
+
class Child(MyBase):
|
32
|
+
__tablename__ = "child"
|
33
|
+
__str_columns__: list[str] = ["id", "name"]
|
34
|
+
|
35
|
+
id: int = Column(Integer(), primary_key=True, autoincrement=True, name="parent_id")
|
36
|
+
name: str = Column(Text(50), nullable=False, unique=True)
|
37
|
+
parent_id: int = Column(Integer(), ForeignKey("parent.parent_id"), nullable=False, name="child_parent_id")
|
38
|
+
parent: Optional[Parent] = relationship("Parent",
|
39
|
+
foreign_keys="Parent.id",
|
40
|
+
primaryjoin="Child.parent_id == Parent.id")
|
21
41
|
|
22
42
|
|
23
43
|
if __name__ == '__main__':
|
24
44
|
SqlalchemyDbSingleton().create_all()
|
25
45
|
|
26
|
-
|
46
|
+
parent1 = Parent.get(name="parent1")
|
47
|
+
if parent1 is None:
|
48
|
+
parent1 = Parent(name="parent1")
|
49
|
+
parent1.save()
|
50
|
+
|
51
|
+
child1 = Child.get(name="child1")
|
52
|
+
if child1 is None:
|
53
|
+
child1 = Child(name="child1", parent_id=parent1.id)
|
54
|
+
child1.save()
|
55
|
+
|
56
|
+
child2 = Child.get(name="child2")
|
57
|
+
if child2 is None:
|
58
|
+
child2 = Child(name="child2", parent_id=parent1.id)
|
59
|
+
child2.save()
|
60
|
+
|
61
|
+
child3 = Child.get(name="child3")
|
62
|
+
if child3 is None:
|
63
|
+
child3 = Child(name="child3", parent_id=parent1.id)
|
64
|
+
child3.save()
|
65
|
+
|
66
|
+
parent2 = Parent.get(name="parent2")
|
67
|
+
if parent2 is None:
|
68
|
+
parent2 = Parent(name="parent2")
|
69
|
+
parent2.save()
|
70
|
+
|
71
|
+
child4 = Child.get(name="child4")
|
72
|
+
if child4 is None:
|
73
|
+
child4 = Child(name="child4", parent_id=parent2.id)
|
74
|
+
child4.save()
|
75
|
+
|
76
|
+
child5 = Child.get(name="child5")
|
77
|
+
if child5 is None:
|
78
|
+
child5 = Child(name="child5", parent_id=parent2.id)
|
79
|
+
child5.save()
|
80
|
+
|
81
|
+
child6 = Child.get(name="child6")
|
82
|
+
if child6 is None:
|
83
|
+
child6 = Child(name="child6", parent_id=parent2.id)
|
84
|
+
child6.save()
|
27
85
|
|
28
|
-
|
29
|
-
|
86
|
+
Parent.delete_all() # Should raise an IntegrityError --> FOREIGN KEY constraint failed
|
87
|
+
parent2.delete() # Should raise an IntegrityError --> FOREIGN KEY constraint failed
|
30
88
|
|
31
89
|
print()
|
@@ -1,11 +1,13 @@
|
|
1
|
+
import warnings
|
1
2
|
from typing import Any, Optional, Callable, Union, TYPE_CHECKING
|
2
3
|
|
3
4
|
from sqlalchemy import inspect
|
4
5
|
from sqlalchemy.sql import ColumnExpressionArgument
|
5
|
-
from sqlalchemy.orm import Session, QueryableAttribute
|
6
|
+
from sqlalchemy.orm import Session, QueryableAttribute
|
6
7
|
from sqlalchemy.orm.exc import DetachedInstanceError
|
7
8
|
|
8
9
|
from wiederverwendbar.default import Default
|
10
|
+
from wiederverwendbar.functions.get_pretty_str import get_pretty_str
|
9
11
|
from wiederverwendbar.sqlalchemy.raise_has_not_attr import raise_has_not_attr
|
10
12
|
|
11
13
|
if TYPE_CHECKING:
|
@@ -141,7 +143,18 @@ class Base:
|
|
141
143
|
super().__init__(*args, **kwargs)
|
142
144
|
|
143
145
|
def __str__(self):
|
144
|
-
|
146
|
+
out = f"{self.__class__.__name__}("
|
147
|
+
for attr_name in self.__str_columns__:
|
148
|
+
if type(attr_name) is tuple:
|
149
|
+
attr_view_name = attr_name[0]
|
150
|
+
attr_name = attr_name[1]
|
151
|
+
else:
|
152
|
+
attr_view_name = attr_name
|
153
|
+
if not hasattr(self, attr_name):
|
154
|
+
warnings.warn(f"Attribute '{attr_name}' is not set for {self}.")
|
155
|
+
out += f"{attr_view_name}={get_pretty_str(getattr(self, attr_name))}, "
|
156
|
+
out = out[:-2] + ")"
|
157
|
+
return out
|
145
158
|
|
146
159
|
def __repr__(self):
|
147
160
|
return self.__str__()
|
@@ -399,3 +412,19 @@ class Base:
|
|
399
412
|
session.commit()
|
400
413
|
|
401
414
|
self.session_close(session_created=session_created, session=session)
|
415
|
+
|
416
|
+
@classmethod
|
417
|
+
def delete_all(cls,
|
418
|
+
*criterion: Union[ColumnExpressionArgument[bool], bool],
|
419
|
+
session: Optional[Session] = None,
|
420
|
+
**kwargs: Any) -> None:
|
421
|
+
session_created, session = cls.session(session=session)
|
422
|
+
|
423
|
+
# delete rows
|
424
|
+
if criterion:
|
425
|
+
session.query(cls).filter(*criterion, **kwargs).delete()
|
426
|
+
else:
|
427
|
+
session.query(cls).filter_by(**kwargs).delete()
|
428
|
+
session.commit()
|
429
|
+
|
430
|
+
cls.session_close(session_created=session_created, session=session)
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import inspect
|
2
2
|
import logging
|
3
|
+
import sqlite3
|
3
4
|
from ipaddress import IPv4Address
|
4
5
|
from pathlib import Path
|
5
|
-
from typing import Any, Optional, Union, Sequence
|
6
|
+
from typing import Any, Optional, Union, Sequence, Callable
|
6
7
|
|
7
|
-
from sqlalchemy import create_engine, Table
|
8
|
+
from sqlalchemy import create_engine, Table, event
|
8
9
|
from sqlalchemy.orm import sessionmaker, declarative_base, DeclarativeMeta as _DeclarativeMeta, Session
|
9
10
|
from sqlalchemy.ext.declarative import declarative_base
|
10
11
|
|
@@ -41,6 +42,9 @@ class SqlalchemyDb:
|
|
41
42
|
username: Optional[str] = None,
|
42
43
|
password: Optional[str] = None,
|
43
44
|
echo: Optional[bool] = None,
|
45
|
+
test_on_startup: Optional[bool] = None,
|
46
|
+
sqlite_check_if_file_exist: Optional[bool] = None,
|
47
|
+
sqlite_handle_foreign_keys: Optional[bool] = None,
|
44
48
|
settings: Optional[SqlalchemySettings] = None):
|
45
49
|
"""
|
46
50
|
Create a new Sqlalchemy Database
|
@@ -52,29 +56,100 @@ class SqlalchemyDb:
|
|
52
56
|
:param username: User to connect to database
|
53
57
|
:param password: Password to connect to database
|
54
58
|
:param echo: Echo SQL queries to console
|
59
|
+
:param test_on_startup: Test the database connection on startup.
|
60
|
+
:param sqlite_check_if_file_exist: Check if SQLite file exists before connecting to it.
|
61
|
+
:param sqlite_handle_foreign_keys: Enable SQLite Foreign Keys
|
55
62
|
:param settings: Sqlalchemy Settings
|
56
63
|
"""
|
57
64
|
|
58
|
-
self.
|
59
|
-
self.
|
60
|
-
self.
|
61
|
-
self.
|
62
|
-
self.
|
63
|
-
self.
|
64
|
-
self.
|
65
|
-
self.
|
66
|
-
self.
|
65
|
+
self._settings: SqlalchemySettings = settings or SqlalchemySettings()
|
66
|
+
self._file: Optional[Path] = file or self.settings.db_file
|
67
|
+
self._host: Union[IPv4Address, str, None] = host or self.settings.db_host
|
68
|
+
self._port: Optional[int] = port or self.settings.db_port
|
69
|
+
self._protocol: Optional[str] = protocol or self.settings.db_protocol
|
70
|
+
self._name: Optional[str] = name or self.settings.db_name
|
71
|
+
self._username: Optional[str] = username or self.settings.db_username
|
72
|
+
self._password: Optional[str] = password or self.settings.db_password
|
73
|
+
self._echo: bool = echo or self.settings.db_echo
|
74
|
+
self._test_on_startup: bool = test_on_startup or self.settings.db_test_on_startup
|
75
|
+
self._sqlite_check_if_file_exist: bool = sqlite_check_if_file_exist or self.settings.db_sqlite_check_if_file_exist
|
76
|
+
self._sqlite_handle_foreign_keys: bool = sqlite_handle_foreign_keys or self.settings.db_sqlite_handle_foreign_keys
|
67
77
|
|
68
78
|
logger.debug(f"Create {self}")
|
69
79
|
|
70
80
|
self.engine = create_engine(self.connection_string, echo=self.echo)
|
71
|
-
self.
|
72
|
-
|
73
|
-
|
81
|
+
if self.protocol == "sqlite":
|
82
|
+
if self.sqlite_check_if_file_exist:
|
83
|
+
self.listen("connect", self._sqlite_check_if_file_exist_func)
|
84
|
+
if self.sqlite_handle_foreign_keys:
|
85
|
+
self.listen("connect", self._sqlite_handle_foreign_keys_func)
|
86
|
+
self._session_maker = sessionmaker(bind=self.engine)
|
87
|
+
self._Base: DeclarativeMeta = declarative_base(metaclass=DeclarativeMeta)
|
88
|
+
self.session_maker.configure(binds={self._Base: self.engine})
|
89
|
+
|
90
|
+
if self.test_on_startup:
|
91
|
+
self.test()
|
74
92
|
|
75
93
|
def __str__(self):
|
76
94
|
return f"{self.__class__.__name__}({self.connection_string_printable})"
|
77
95
|
|
96
|
+
@property
|
97
|
+
def settings(self) -> SqlalchemySettings:
|
98
|
+
return self._settings
|
99
|
+
|
100
|
+
@property
|
101
|
+
def file(self) -> Optional[Path]:
|
102
|
+
return self._file
|
103
|
+
|
104
|
+
@property
|
105
|
+
def host(self) -> Union[IPv4Address, str, None]:
|
106
|
+
return self._host
|
107
|
+
|
108
|
+
@property
|
109
|
+
def port(self) -> Optional[int]:
|
110
|
+
return self._port
|
111
|
+
|
112
|
+
@property
|
113
|
+
def protocol(self) -> Optional[str]:
|
114
|
+
return self._protocol
|
115
|
+
|
116
|
+
@property
|
117
|
+
def name(self) -> Optional[str]:
|
118
|
+
return self._name
|
119
|
+
|
120
|
+
@property
|
121
|
+
def username(self) -> Optional[str]:
|
122
|
+
return self._username
|
123
|
+
|
124
|
+
@property
|
125
|
+
def password(self) -> Optional[str]:
|
126
|
+
return self._password
|
127
|
+
|
128
|
+
@property
|
129
|
+
def echo(self) -> bool:
|
130
|
+
return self._echo
|
131
|
+
|
132
|
+
@property
|
133
|
+
def test_on_startup(self) -> bool:
|
134
|
+
return self._test_on_startup
|
135
|
+
|
136
|
+
@property
|
137
|
+
def sqlite_check_if_file_exist(self) -> bool:
|
138
|
+
return self._sqlite_check_if_file_exist
|
139
|
+
|
140
|
+
@property
|
141
|
+
def sqlite_handle_foreign_keys(self) -> bool:
|
142
|
+
return self._sqlite_handle_foreign_keys
|
143
|
+
|
144
|
+
@property
|
145
|
+
def session_maker(self) -> sessionmaker:
|
146
|
+
return self._session_maker
|
147
|
+
|
148
|
+
# noinspection PyPep8Naming
|
149
|
+
@property
|
150
|
+
def Base(self) -> Any:
|
151
|
+
return self._Base
|
152
|
+
|
78
153
|
def get_connection_string(self, printable: bool = False) -> str:
|
79
154
|
"""
|
80
155
|
Get the Connection String
|
@@ -127,6 +202,10 @@ class SqlalchemyDb:
|
|
127
202
|
|
128
203
|
return self.get_connection_string(printable=True)
|
129
204
|
|
205
|
+
def test(self):
|
206
|
+
self.engine.connect()
|
207
|
+
print()
|
208
|
+
|
130
209
|
def create_all(self,
|
131
210
|
tables: Optional[Sequence[Table]] = None,
|
132
211
|
check_first: bool = True) -> None:
|
@@ -150,3 +229,50 @@ class SqlalchemyDb:
|
|
150
229
|
|
151
230
|
logger.debug(f"Create Session for {self}")
|
152
231
|
return self.session_maker()
|
232
|
+
|
233
|
+
def listen(self,
|
234
|
+
identifier: str,
|
235
|
+
func: Callable[..., Any],
|
236
|
+
*args: Any,
|
237
|
+
**kwargs: Any) -> None:
|
238
|
+
"""
|
239
|
+
Register a listener function for the engine.
|
240
|
+
|
241
|
+
:param identifier: String name of the event.
|
242
|
+
:param func: Callable function.
|
243
|
+
:return: None
|
244
|
+
|
245
|
+
.. Seealso::
|
246
|
+
sqlalchemy.event.api.listen for more.
|
247
|
+
"""
|
248
|
+
|
249
|
+
event.listen(self.engine, identifier, func, *args, **kwargs)
|
250
|
+
|
251
|
+
def listens_for(self,
|
252
|
+
identifier: str,
|
253
|
+
*args: Any,
|
254
|
+
**kw: Any) -> Callable[[Callable[..., Any]], Callable[..., Any]]:
|
255
|
+
"""
|
256
|
+
Decorate a function as a listener for the engine.
|
257
|
+
|
258
|
+
:param identifier: String name of the event.
|
259
|
+
:return: Callable[[Callable[..., Any]], Callable[..., Any]]
|
260
|
+
|
261
|
+
.. Seealso::
|
262
|
+
sqlalchemy.event.api.listens_for for more.
|
263
|
+
"""
|
264
|
+
|
265
|
+
return event.listens_for(self.engine, identifier, *args, **kw)
|
266
|
+
|
267
|
+
def _sqlite_check_if_file_exist_func(self, connection, _connection_record):
|
268
|
+
if self.file is not None:
|
269
|
+
if not self.file.is_file():
|
270
|
+
raise FileNotFoundError(f"Database file does not exist: {self.file}")
|
271
|
+
|
272
|
+
# noinspection PyMethodMayBeStatic
|
273
|
+
def _sqlite_handle_foreign_keys_func(self, connection, _connection_record):
|
274
|
+
if not isinstance(connection, sqlite3.Connection):
|
275
|
+
raise RuntimeError(f"Connection is not a sqlite3.Connection: {connection}")
|
276
|
+
cursor = connection.cursor()
|
277
|
+
cursor.execute("PRAGMA foreign_keys=ON")
|
278
|
+
cursor.close()
|
@@ -34,3 +34,12 @@ class SqlalchemySettings(PrintableSettings):
|
|
34
34
|
db_echo: bool = Field(default=False,
|
35
35
|
title="Database echo.",
|
36
36
|
description="Echo SQL queries to console")
|
37
|
+
db_test_on_startup: bool = Field(default=True,
|
38
|
+
title="Test Database on Startup",
|
39
|
+
description="Test database connection on startup")
|
40
|
+
db_sqlite_check_if_file_exist: bool = Field(default=True,
|
41
|
+
title="Database SQLite Check If File Exist",
|
42
|
+
description="Check if file exists in SQLite")
|
43
|
+
db_sqlite_handle_foreign_keys: bool = Field(default=True,
|
44
|
+
title="Database SQLite Handle Foreign Keys",
|
45
|
+
description="Handle foreign keys in SQLite")
|
@@ -1,49 +1,49 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: wiederverwendbar
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.5
|
4
4
|
Summary: A collection of scripts, classes and tools they are \"wiederverwendbar\".
|
5
5
|
Author-Email: Julius Koenig <info@bastelquartier.de>
|
6
6
|
License: GPL-3.0
|
7
7
|
Requires-Python: >=3.9
|
8
|
-
Requires-Dist: pydantic>=2.11.
|
8
|
+
Requires-Dist: pydantic>=2.11.5
|
9
9
|
Requires-Dist: pydantic-settings>=2.9.1
|
10
10
|
Requires-Dist: devtools>=0.12.2
|
11
11
|
Provides-Extra: full
|
12
12
|
Requires-Dist: rich>=14.0.0; extra == "full"
|
13
|
-
Requires-Dist: typer>=0.
|
13
|
+
Requires-Dist: typer>=0.16.0; extra == "full"
|
14
14
|
Requires-Dist: pythonping>=1.1.4; extra == "full"
|
15
15
|
Requires-Dist: mongoengine>=0.29.1; extra == "full"
|
16
|
-
Requires-Dist: nicegui>=2.
|
17
|
-
Requires-Dist: uvicorn>=0.34.
|
16
|
+
Requires-Dist: nicegui>=2.19.0; extra == "full"
|
17
|
+
Requires-Dist: uvicorn>=0.34.3; extra == "full"
|
18
18
|
Requires-Dist: fastapi>=0.115.12; extra == "full"
|
19
|
-
Requires-Dist: starlette-admin[i18n]>=0.
|
19
|
+
Requires-Dist: starlette-admin[i18n]>=0.15.1; extra == "full"
|
20
20
|
Requires-Dist: pillow>=11.2.1; extra == "full"
|
21
21
|
Requires-Dist: blinker>=1.9.0; extra == "full"
|
22
|
-
Requires-Dist: kombu>=5.5.
|
22
|
+
Requires-Dist: kombu>=5.5.4; extra == "full"
|
23
23
|
Requires-Dist: nest-asyncio>=1.6.0; extra == "full"
|
24
|
-
Requires-Dist: sqlalchemy>=2.0.
|
24
|
+
Requires-Dist: sqlalchemy>=2.0.41; extra == "full"
|
25
25
|
Provides-Extra: rich
|
26
26
|
Requires-Dist: rich>=14.0.0; extra == "rich"
|
27
27
|
Provides-Extra: typer
|
28
|
-
Requires-Dist: typer>=0.
|
28
|
+
Requires-Dist: typer>=0.16.0; extra == "typer"
|
29
29
|
Provides-Extra: mongoengine
|
30
30
|
Requires-Dist: mongoengine>=0.29.1; extra == "mongoengine"
|
31
31
|
Requires-Dist: blinker>=1.9.0; extra == "mongoengine"
|
32
32
|
Provides-Extra: uvicorn
|
33
|
-
Requires-Dist: uvicorn>=0.34.
|
33
|
+
Requires-Dist: uvicorn>=0.34.3; extra == "uvicorn"
|
34
34
|
Provides-Extra: fastapi
|
35
35
|
Requires-Dist: fastapi>=0.115.12; extra == "fastapi"
|
36
36
|
Provides-Extra: nicegui
|
37
|
-
Requires-Dist: nicegui>=2.
|
37
|
+
Requires-Dist: nicegui>=2.19.0; extra == "nicegui"
|
38
38
|
Provides-Extra: starlette-admin
|
39
|
-
Requires-Dist: starlette-admin[i18n]>=0.
|
39
|
+
Requires-Dist: starlette-admin[i18n]>=0.15.1; extra == "starlette-admin"
|
40
40
|
Requires-Dist: pillow>=11.2.1; extra == "starlette-admin"
|
41
|
-
Requires-Dist: kombu>=5.5.
|
41
|
+
Requires-Dist: kombu>=5.5.4; extra == "starlette-admin"
|
42
42
|
Requires-Dist: nest-asyncio>=1.6.0; extra == "starlette-admin"
|
43
43
|
Provides-Extra: fuctions
|
44
44
|
Requires-Dist: pythonping>=1.1.4; extra == "fuctions"
|
45
45
|
Provides-Extra: sqlalchemy
|
46
|
-
Requires-Dist: sqlalchemy>=2.0.
|
46
|
+
Requires-Dist: sqlalchemy>=2.0.41; extra == "sqlalchemy"
|
47
47
|
Description-Content-Type: text/markdown
|
48
48
|
|
49
49
|
# wiederverwendbar
|
@@ -1,7 +1,7 @@
|
|
1
|
-
wiederverwendbar-0.8.
|
2
|
-
wiederverwendbar-0.8.
|
3
|
-
wiederverwendbar-0.8.
|
4
|
-
wiederverwendbar/__init__.py,sha256=
|
1
|
+
wiederverwendbar-0.8.5.dist-info/METADATA,sha256=_Rv2S2NNzn3-vzHy6EQZpS9668alPFZHtDRWdNS2sKU,2012
|
2
|
+
wiederverwendbar-0.8.5.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
wiederverwendbar-0.8.5.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
wiederverwendbar/__init__.py,sha256=rI0baW27B0s4avXRykXayN0cZK4x2ItpEvLEkLDLSm4,156
|
5
5
|
wiederverwendbar/before_after_wrap.py,sha256=8rjyRrDpwbzrsKkY7vbIgtitgLjlF8Lwx8YNvcJWwgY,10425
|
6
6
|
wiederverwendbar/default.py,sha256=MQBBpJMh8Tz4FUwxszVm7M3j6qbW2JH-5jKSjbvsUUk,49
|
7
7
|
wiederverwendbar/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -23,7 +23,7 @@ wiederverwendbar/examples/post_init.py,sha256=hrj3idlYknWEzK0ijy6jiRkryjLYjLJiGk
|
|
23
23
|
wiederverwendbar/examples/route.py,sha256=hbV3lLcqDtusBDjv11Aw5aBbBFAakFTkoMXg1hQAfeY,423
|
24
24
|
wiederverwendbar/examples/singletons.py,sha256=O5sDsEpg_hzLIQYEIHKL-HMyRHowL2CcSkUryy-vI-k,1101
|
25
25
|
wiederverwendbar/examples/sqlalchemy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
-
wiederverwendbar/examples/sqlalchemy/db.py,sha256=
|
26
|
+
wiederverwendbar/examples/sqlalchemy/db.py,sha256=OkaxZ2594zcu00aHEdSgJTTvfuZnwaKb00yXt_1R8YU,3061
|
27
27
|
wiederverwendbar/examples/starlette_admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
wiederverwendbar/examples/starlette_admin/action_log.py,sha256=IbeLsB_Kq2nQFBCoKScJzhotLElFfGD22h5SXQoxQ9Q,4439
|
29
29
|
wiederverwendbar/examples/starlette_admin/action_log_file_download.py,sha256=Jv7fCxqMaPpO-4i1ra09ya9KxlpJgsjdplNLD99OY0M,3249
|
@@ -46,6 +46,7 @@ wiederverwendbar/functions/datetime.py,sha256=Wf7KJKerb5opdqgm06FjbRBC7ZVvr1WcW0
|
|
46
46
|
wiederverwendbar/functions/download_file.py,sha256=vNpaNpQ_YL9-D81Leey_RYv_OcPsUEZM5gAgo48tzXQ,5487
|
47
47
|
wiederverwendbar/functions/eval.py,sha256=zINxAfZ2mlNC4m36S2CQT2H4oTHyfBb-MJdZdgMfS0k,4537
|
48
48
|
wiederverwendbar/functions/find_class_method.py,sha256=QAE66bf75gkRrwhiD5spnNG-cX1trdQh6pQhNir79bc,470
|
49
|
+
wiederverwendbar/functions/get_pretty_str.py,sha256=pM4itXdiozjD3PQblAxhhkOLO7TY3pDYnmiqlZVJnWw,205
|
49
50
|
wiederverwendbar/functions/run_command.py,sha256=7j9cE0mqNVmu0MOojw7plEMttYZqYMsUgc8kOYS2v5I,1902
|
50
51
|
wiederverwendbar/functions/security/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
51
52
|
wiederverwendbar/functions/security/hashed_password.py,sha256=8qNOzvf4g7Z7YHDfdq6YSq6ZpYkseDogbcU4sxi3GGQ,3470
|
@@ -96,10 +97,10 @@ wiederverwendbar/pydantic/singleton.py,sha256=4YMBcKiTik2KmuN97CUCmy_ldhfyeDzrsU
|
|
96
97
|
wiederverwendbar/route.py,sha256=moYlZ5IvV_uDroSggxe80-sR3_nlNsl9Bp69CcCfK8Y,12061
|
97
98
|
wiederverwendbar/singleton.py,sha256=6QqeQpzx4UhBZnvto5_yUs7hpmzt_-dyE169RuwsTa8,6866
|
98
99
|
wiederverwendbar/sqlalchemy/__init__.py,sha256=gkt99fc9wIxaSjrl1xNhmPLrlJNZhrY-sJ5yIezREGM,888
|
99
|
-
wiederverwendbar/sqlalchemy/base.py,sha256=
|
100
|
-
wiederverwendbar/sqlalchemy/db.py,sha256=
|
100
|
+
wiederverwendbar/sqlalchemy/base.py,sha256=q_wiVyiAK4c-z3InFIy4TEN140Rp8MjEQqhxhL2bvaw,15030
|
101
|
+
wiederverwendbar/sqlalchemy/db.py,sha256=u3nHJh8pxnOMALldp72sohe1XZ-ZfksZZVpE5qIxHgc,9610
|
101
102
|
wiederverwendbar/sqlalchemy/raise_has_not_attr.py,sha256=GdmbSC8EoBCkpuZQGLp3zzQ0iScsj2XfFZC9OZtWbkA,403
|
102
|
-
wiederverwendbar/sqlalchemy/settings.py,sha256=
|
103
|
+
wiederverwendbar/sqlalchemy/settings.py,sha256=RM-bFg_Ga0AUko4JWOvCZLcfoB91kKpn1TqVzgxAm_k,2579
|
103
104
|
wiederverwendbar/sqlalchemy/singleton.py,sha256=LVH1gRl1U1My-cx-Y1M4G-czgCWzAmuVyRz9EYWmGMM,179
|
104
105
|
wiederverwendbar/sqlalchemy/types.py,sha256=1Hb2Y5QacH079iKpN0fV5XALxLYQj7CFYqs5tC3FlFM,1911
|
105
106
|
wiederverwendbar/starlette_admin/__init__.py,sha256=SRuEMG5_2ns78Arw3KJsMMYg4N3RylCJmc5HfhBKAjg,3425
|
@@ -167,4 +168,4 @@ wiederverwendbar/typer/typer_resolve_defaults.py,sha256=2KD09rxKaur2TbJ3BCcLxbrc
|
|
167
168
|
wiederverwendbar/uvicorn/__init__.py,sha256=9F7gT-8QyxS41xWKEIHMLUBV9ZTBKZJj8tHPqhMzoHA,126
|
168
169
|
wiederverwendbar/uvicorn/server.py,sha256=04WpB8AUtVkYhoS6qsBVJHOtTNkISQVg_mLVtYmK-1Y,5657
|
169
170
|
wiederverwendbar/uvicorn/settings.py,sha256=IAjlpWR-KH7098jIgH_t46yG17YPbH8MoEmMdn0hgNo,2217
|
170
|
-
wiederverwendbar-0.8.
|
171
|
+
wiederverwendbar-0.8.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|