transcript 0.4.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.
- transcript/__init__.py +112 -0
- transcript/builders/__init__.py +1 -0
- transcript/builders/html/__init__.py +6 -0
- transcript/builders/html/__init__.pyi +796 -0
- transcript/builders/html/args.py +25 -0
- transcript/builders/html/attrs.py +189 -0
- transcript/builders/html/html.py +81 -0
- transcript/builders/jinja.py +228 -0
- transcript/builders/js.py +280 -0
- transcript/builders/scss.py +393 -0
- transcript/builders/xml.py +166 -0
- transcript/core/__init__.py +14 -0
- transcript/core/ai.py +116 -0
- transcript/core/config.py +29 -0
- transcript/core/container.py +120 -0
- transcript/core/factory.py +180 -0
- transcript/core/fingerprint.py +265 -0
- transcript/core/meta.py +41 -0
- transcript/core/registers.py +53 -0
- transcript/core/stubs.py +19 -0
- transcript/io/__init__.py +12 -0
- transcript/io/file.py +40 -0
- transcript/io/hub.py +191 -0
- transcript/io/json_data.py +185 -0
- transcript/io/load.py +154 -0
- transcript/io/renderer.py +49 -0
- transcript/presets/__init__.py +63 -0
- transcript/presets/forms.py +108 -0
- transcript/presets/html.py +247 -0
- transcript/presets/jinja.py +119 -0
- transcript/presets/scss.py +221 -0
- transcript/presets/tailwind.py +392 -0
- transcript/project.py +223 -0
- transcript/purge.py +171 -0
- transcript/py.typed +0 -0
- transcript-0.4.0.dist-info/METADATA +201 -0
- transcript-0.4.0.dist-info/RECORD +40 -0
- transcript-0.4.0.dist-info/WHEEL +5 -0
- transcript-0.4.0.dist-info/licenses/LICENSE +21 -0
- transcript-0.4.0.dist-info/top_level.txt +1 -0
transcript/__init__.py
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"""Framework do składania szablonów HTML/Jinja2, SCSS i JavaScript klasami Pythona."""
|
|
2
|
+
|
|
3
|
+
from transcript.builders.html import TAGS
|
|
4
|
+
from transcript.builders.html.args import HTMLArg
|
|
5
|
+
from transcript.builders.html.html import Comment, Doctype, HTMLTagBase
|
|
6
|
+
from transcript.builders.jinja import (
|
|
7
|
+
JinjaAutoescape,
|
|
8
|
+
JinjaBlock,
|
|
9
|
+
JinjaCall,
|
|
10
|
+
JinjaComment,
|
|
11
|
+
JinjaElif,
|
|
12
|
+
JinjaElse,
|
|
13
|
+
JinjaExtends,
|
|
14
|
+
JinjaFilter,
|
|
15
|
+
JinjaFor,
|
|
16
|
+
JinjaFrom,
|
|
17
|
+
JinjaIf,
|
|
18
|
+
JinjaImport,
|
|
19
|
+
JinjaInclude,
|
|
20
|
+
JinjaMacro,
|
|
21
|
+
JinjaNode,
|
|
22
|
+
JinjaRaw,
|
|
23
|
+
JinjaSet,
|
|
24
|
+
JinjaTemplate,
|
|
25
|
+
JinjaVar,
|
|
26
|
+
JinjaWith,
|
|
27
|
+
)
|
|
28
|
+
from transcript.builders.js import (
|
|
29
|
+
JS,
|
|
30
|
+
JSBlock,
|
|
31
|
+
JSCall,
|
|
32
|
+
JSClass,
|
|
33
|
+
JSComment,
|
|
34
|
+
JSConst,
|
|
35
|
+
JSElif,
|
|
36
|
+
JSElse,
|
|
37
|
+
JSExport,
|
|
38
|
+
JSFor,
|
|
39
|
+
JSFunction,
|
|
40
|
+
JSIf,
|
|
41
|
+
JSImport,
|
|
42
|
+
JSLet,
|
|
43
|
+
JSLine,
|
|
44
|
+
JSMethod,
|
|
45
|
+
JSModule,
|
|
46
|
+
JSObject,
|
|
47
|
+
JSReturn,
|
|
48
|
+
JSVar,
|
|
49
|
+
JSWhile,
|
|
50
|
+
)
|
|
51
|
+
from transcript.builders.scss import (
|
|
52
|
+
BEM,
|
|
53
|
+
BEMElement,
|
|
54
|
+
BEMModifier,
|
|
55
|
+
CSSClass,
|
|
56
|
+
SCSS,
|
|
57
|
+
SCSSComment,
|
|
58
|
+
SCSSExtend,
|
|
59
|
+
SCSSForward,
|
|
60
|
+
SCSSIf,
|
|
61
|
+
SCSSImport,
|
|
62
|
+
SCSSInclude,
|
|
63
|
+
SCSSLine,
|
|
64
|
+
SCSSMedia,
|
|
65
|
+
SCSSMixin,
|
|
66
|
+
SCSSProp,
|
|
67
|
+
SCSSRoot,
|
|
68
|
+
SCSSSupports,
|
|
69
|
+
SCSSUse,
|
|
70
|
+
SCSSVariable,
|
|
71
|
+
bem_selector,
|
|
72
|
+
)
|
|
73
|
+
from transcript.builders.xml import XMLArg, XMLAttr, XMLTag, XMLTagBase
|
|
74
|
+
from transcript.core.container import ContainerBase, Fragment
|
|
75
|
+
from transcript.core.config import Config, get_config, init
|
|
76
|
+
from transcript.io import File, Hub, HubError, JsonData, Renderer, data_to_container, html_to_data, load
|
|
77
|
+
from transcript.presets.tailwind import Tailwind, tw, utility
|
|
78
|
+
from transcript.project import Project
|
|
79
|
+
from transcript.purge import (
|
|
80
|
+
extract_classes_from_containers,
|
|
81
|
+
extract_classes_from_paths,
|
|
82
|
+
extract_classes_from_text,
|
|
83
|
+
purge_scss,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
globals().update(TAGS)
|
|
87
|
+
|
|
88
|
+
__version__ = '0.4.0'
|
|
89
|
+
|
|
90
|
+
__all__ = [
|
|
91
|
+
'ContainerBase', 'Fragment', 'Config', 'init', 'get_config',
|
|
92
|
+
'Project', 'purge_scss',
|
|
93
|
+
'extract_classes_from_text', 'extract_classes_from_paths', 'extract_classes_from_containers',
|
|
94
|
+
'File', 'JsonData', 'Renderer', 'Hub', 'HubError',
|
|
95
|
+
'load', 'html_to_data', 'data_to_container',
|
|
96
|
+
'Tailwind', 'tw', 'utility',
|
|
97
|
+
'XMLArg', 'XMLAttr', 'XMLTag', 'XMLTagBase',
|
|
98
|
+
'HTMLArg', 'HTMLTagBase', 'Doctype', 'Comment',
|
|
99
|
+
'JinjaNode', 'JinjaVar', 'JinjaComment', 'JinjaExtends', 'JinjaInclude',
|
|
100
|
+
'JinjaBlock', 'JinjaFor', 'JinjaIf', 'JinjaElif', 'JinjaElse', 'JinjaMacro',
|
|
101
|
+
'JinjaCall', 'JinjaFilter', 'JinjaWith', 'JinjaSet', 'JinjaFrom', 'JinjaImport',
|
|
102
|
+
'JinjaRaw', 'JinjaAutoescape', 'JinjaTemplate',
|
|
103
|
+
'JS', 'JSModule', 'JSBlock', 'JSLine', 'JSComment',
|
|
104
|
+
'JSConst', 'JSLet', 'JSVar', 'JSReturn', 'JSCall',
|
|
105
|
+
'JSFunction', 'JSIf', 'JSElse', 'JSElif', 'JSFor', 'JSWhile',
|
|
106
|
+
'JSClass', 'JSMethod', 'JSExport', 'JSImport', 'JSObject',
|
|
107
|
+
'SCSS', 'SCSSProp', 'SCSSRoot', 'SCSSVariable', 'SCSSComment',
|
|
108
|
+
'SCSSMixin', 'SCSSInclude', 'SCSSExtend', 'SCSSMedia', 'SCSSSupports',
|
|
109
|
+
'SCSSIf', 'SCSSUse', 'SCSSForward', 'SCSSImport', 'SCSSLine', 'CSSClass',
|
|
110
|
+
'BEM', 'BEMElement', 'BEMModifier', 'bem_selector',
|
|
111
|
+
*sorted(TAGS),
|
|
112
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Buildery HTML, Jinja2, SCSS i JavaScript."""
|