fraiseql-confiture 0.1.0__cp311-cp311-manylinux_2_34_x86_64.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.

Potentially problematic release.


This version of fraiseql-confiture might be problematic. Click here for more details.

confiture/__init__.py ADDED
@@ -0,0 +1,45 @@
1
+ """Confiture: PostgreSQL migrations, sweetly done 🍓
2
+
3
+ Confiture is a modern PostgreSQL migration tool with a build-from-scratch
4
+ philosophy and 4 migration strategies.
5
+
6
+ Example:
7
+ >>> from confiture import __version__
8
+ >>> print(__version__)
9
+ 0.1.0
10
+ """
11
+
12
+ from typing import Any
13
+
14
+ __version__ = "0.1.0"
15
+ __author__ = "Lionel Hamayon"
16
+ __email__ = "lionel@fraiseql.com"
17
+
18
+ __all__ = [
19
+ "__version__",
20
+ "__author__",
21
+ "__email__",
22
+ ]
23
+
24
+ # Lazy imports to avoid errors during development
25
+ # These will be enabled as components are implemented:
26
+ # - SchemaBuilder (Milestone 1.3+)
27
+ # - Migrator (Milestone 1.7+)
28
+ # - Environment (Milestone 1.2+)
29
+
30
+
31
+ def __getattr__(name: str) -> Any:
32
+ """Lazy import for not-yet-implemented components"""
33
+ if name == "SchemaBuilder":
34
+ from confiture.core.builder import SchemaBuilder
35
+
36
+ return SchemaBuilder
37
+ elif name == "Migrator":
38
+ from confiture.core.migrator import Migrator
39
+
40
+ return Migrator
41
+ elif name == "Environment":
42
+ from confiture.config.environment import Environment
43
+
44
+ return Environment
45
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
File without changes