inguitive 0.1.0__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.
inguitive/__init__.py ADDED
@@ -0,0 +1,90 @@
1
+ """
2
+ inguitive - A pure Python web framework combining intuitive syntax with HTMX and Tailwind CSS.
3
+ """
4
+
5
+ from inguitive.components import (
6
+ Button,
7
+ Checkbox,
8
+ Component,
9
+ DataTable,
10
+ Div,
11
+ Form,
12
+ Icon,
13
+ Input,
14
+ Label,
15
+ Link,
16
+ Radio,
17
+ Select,
18
+ TemplateComponent,
19
+ Text,
20
+ Textarea,
21
+ )
22
+
23
+ # Re-export styling constants for convenience
24
+ from inguitive.css import (
25
+ BUTTON_BASE_CSS,
26
+ BUTTON_PRIMARY_CSS,
27
+ BUTTON_SECONDARY_CSS,
28
+ )
29
+ from inguitive.fastapi import InguitiveApp, create_app, redirect, run_app
30
+ from inguitive.htmx import update_components
31
+ from inguitive.session import (
32
+ MemoryBackend,
33
+ RedisBackend,
34
+ Session,
35
+ SessionBackend,
36
+ get_session_backend,
37
+ get_session_id,
38
+ set_session_backend,
39
+ )
40
+ from inguitive.state import State
41
+ from inguitive.trigger import get_trigger_args
42
+ from inguitive.utils import nl2br
43
+
44
+
45
+ __all__ = [
46
+ # Components
47
+ "Component",
48
+ "Div",
49
+ "Button",
50
+ "Label",
51
+ "Icon",
52
+ "Input",
53
+ "Textarea",
54
+ "Select",
55
+ "Checkbox",
56
+ "Radio",
57
+ "Form",
58
+ "Text",
59
+ "Link",
60
+ "TemplateComponent",
61
+ "DataTable",
62
+ # State
63
+ "State",
64
+ # HTMX helpers
65
+ "update_components",
66
+ # Trigger
67
+ "get_trigger_args",
68
+ # Helpers
69
+ # FastAPI
70
+ "InguitiveApp",
71
+ "create_app",
72
+ "redirect",
73
+ "run_app",
74
+ # Session
75
+ "Session",
76
+ "SessionBackend",
77
+ "MemoryBackend",
78
+ "RedisBackend",
79
+ "set_session_backend",
80
+ "get_session_backend",
81
+ "get_session_id",
82
+ # Styling
83
+ "BUTTON_BASE_CSS",
84
+ "BUTTON_PRIMARY_CSS",
85
+ "BUTTON_SECONDARY_CSS",
86
+ # Utilities
87
+ "nl2br",
88
+ ]
89
+
90
+ __version__ = "0.1.0"