engrapha-notes 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.
- engrapha_notes/__init__.py +236 -0
- engrapha_notes/cli.py +883 -0
- engrapha_notes/document.py +2691 -0
- engrapha_notes/helpers.py +4386 -0
- engrapha_notes/packet.py +282 -0
- engrapha_notes/palette.py +61 -0
- engrapha_notes/styles.py +28 -0
- engrapha_notes/theme.py +348 -0
- engrapha_notes-0.1.0.dist-info/METADATA +530 -0
- engrapha_notes-0.1.0.dist-info/RECORD +13 -0
- engrapha_notes-0.1.0.dist-info/WHEEL +5 -0
- engrapha_notes-0.1.0.dist-info/entry_points.txt +3 -0
- engrapha_notes-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
from .theme import (
|
|
2
|
+
NotesTheme,
|
|
3
|
+
DARK,
|
|
4
|
+
LIGHT,
|
|
5
|
+
CATPPUCCIN_MOCHA,
|
|
6
|
+
CATPPUCCIN_LATTE,
|
|
7
|
+
SEPIA,
|
|
8
|
+
OCEAN_DARK,
|
|
9
|
+
OCEAN_LIGHT,
|
|
10
|
+
FOREST_DARK,
|
|
11
|
+
SUNSET_DARK,
|
|
12
|
+
MIDNIGHT_DARK,
|
|
13
|
+
NOTION,
|
|
14
|
+
GITHUB,
|
|
15
|
+
LINEAR,
|
|
16
|
+
ACADEMIC,
|
|
17
|
+
TEXTBOOK,
|
|
18
|
+
get_theme,
|
|
19
|
+
ThemeBuilder,
|
|
20
|
+
EngineeringNotes,
|
|
21
|
+
QuestionBank,
|
|
22
|
+
ALL_THEMES,
|
|
23
|
+
DRACULA,
|
|
24
|
+
MONOKAI,
|
|
25
|
+
GITHUB_DARK,
|
|
26
|
+
)
|
|
27
|
+
from .document import (
|
|
28
|
+
build_doc,
|
|
29
|
+
build_pptx,
|
|
30
|
+
build_html,
|
|
31
|
+
page_decor,
|
|
32
|
+
CW,
|
|
33
|
+
PM,
|
|
34
|
+
PAGE_W,
|
|
35
|
+
PAGE_H,
|
|
36
|
+
)
|
|
37
|
+
from .helpers import (
|
|
38
|
+
set_theme,
|
|
39
|
+
story,
|
|
40
|
+
get_story,
|
|
41
|
+
set_story,
|
|
42
|
+
bookmarks_enabled,
|
|
43
|
+
toc,
|
|
44
|
+
bookmark,
|
|
45
|
+
set_global_header,
|
|
46
|
+
header,
|
|
47
|
+
set_global_footer,
|
|
48
|
+
footer,
|
|
49
|
+
suppress_footer,
|
|
50
|
+
suppress_header,
|
|
51
|
+
page_border,
|
|
52
|
+
page_numbering,
|
|
53
|
+
add,
|
|
54
|
+
sp,
|
|
55
|
+
rule,
|
|
56
|
+
br,
|
|
57
|
+
part_box,
|
|
58
|
+
cover_card,
|
|
59
|
+
cover_image,
|
|
60
|
+
cover_preset,
|
|
61
|
+
add_cover,
|
|
62
|
+
chap_box,
|
|
63
|
+
section,
|
|
64
|
+
subsection,
|
|
65
|
+
body,
|
|
66
|
+
definition,
|
|
67
|
+
highlight,
|
|
68
|
+
tip,
|
|
69
|
+
note,
|
|
70
|
+
formula,
|
|
71
|
+
formula_block,
|
|
72
|
+
warning,
|
|
73
|
+
important,
|
|
74
|
+
exam,
|
|
75
|
+
theorem,
|
|
76
|
+
proof,
|
|
77
|
+
question,
|
|
78
|
+
qbox,
|
|
79
|
+
answer,
|
|
80
|
+
mcq,
|
|
81
|
+
revision_card,
|
|
82
|
+
flashcard,
|
|
83
|
+
bullet,
|
|
84
|
+
info_table,
|
|
85
|
+
code_block,
|
|
86
|
+
footnote,
|
|
87
|
+
label,
|
|
88
|
+
ref,
|
|
89
|
+
index_entry,
|
|
90
|
+
print_index,
|
|
91
|
+
include_chapter,
|
|
92
|
+
include_markdown,
|
|
93
|
+
build_split_doc,
|
|
94
|
+
image,
|
|
95
|
+
ImageFlowable,
|
|
96
|
+
)
|
|
97
|
+
from .packet import frame_format, packet_format
|
|
98
|
+
from .palette import BG, CYAN, GREEN, YELLOW, WHITE
|
|
99
|
+
from .styles import (
|
|
100
|
+
BODY_ST,
|
|
101
|
+
SECT_ST,
|
|
102
|
+
CODE_ST,
|
|
103
|
+
COVER_H1,
|
|
104
|
+
COVER_H2,
|
|
105
|
+
COVER_SUB,
|
|
106
|
+
CHAP_H1,
|
|
107
|
+
H1,
|
|
108
|
+
H2,
|
|
109
|
+
H3,
|
|
110
|
+
H4,
|
|
111
|
+
H5,
|
|
112
|
+
H6,
|
|
113
|
+
TOC_H1,
|
|
114
|
+
TOC_H2,
|
|
115
|
+
TOC_H3,
|
|
116
|
+
BULLET_ST,
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
__all__ = [
|
|
122
|
+
"set_theme",
|
|
123
|
+
"get_theme",
|
|
124
|
+
"NotesTheme",
|
|
125
|
+
"ThemeBuilder",
|
|
126
|
+
"EngineeringNotes",
|
|
127
|
+
"QuestionBank",
|
|
128
|
+
"ALL_THEMES",
|
|
129
|
+
"DRACULA",
|
|
130
|
+
"MONOKAI",
|
|
131
|
+
"GITHUB_DARK",
|
|
132
|
+
"DARK",
|
|
133
|
+
"LIGHT",
|
|
134
|
+
"CATPPUCCIN_MOCHA",
|
|
135
|
+
"CATPPUCCIN_LATTE",
|
|
136
|
+
"SEPIA",
|
|
137
|
+
"OCEAN_DARK",
|
|
138
|
+
"OCEAN_LIGHT",
|
|
139
|
+
"FOREST_DARK",
|
|
140
|
+
"SUNSET_DARK",
|
|
141
|
+
"MIDNIGHT_DARK",
|
|
142
|
+
"NOTION",
|
|
143
|
+
"GITHUB",
|
|
144
|
+
"LINEAR",
|
|
145
|
+
"ACADEMIC",
|
|
146
|
+
"TEXTBOOK",
|
|
147
|
+
"story",
|
|
148
|
+
"get_story",
|
|
149
|
+
"set_story",
|
|
150
|
+
"bookmarks_enabled",
|
|
151
|
+
"build_doc",
|
|
152
|
+
"build_pptx",
|
|
153
|
+
"build_html",
|
|
154
|
+
"toc",
|
|
155
|
+
"bookmark",
|
|
156
|
+
"set_global_header",
|
|
157
|
+
"header",
|
|
158
|
+
"set_global_footer",
|
|
159
|
+
"footer",
|
|
160
|
+
"suppress_footer",
|
|
161
|
+
"suppress_header",
|
|
162
|
+
"page_border",
|
|
163
|
+
"page_numbering",
|
|
164
|
+
"page_decor",
|
|
165
|
+
"CW",
|
|
166
|
+
"PM",
|
|
167
|
+
"PAGE_W",
|
|
168
|
+
"PAGE_H",
|
|
169
|
+
"add",
|
|
170
|
+
"sp",
|
|
171
|
+
"rule",
|
|
172
|
+
"br",
|
|
173
|
+
"part_box",
|
|
174
|
+
"cover_card",
|
|
175
|
+
"cover_image",
|
|
176
|
+
"cover_preset",
|
|
177
|
+
"add_cover",
|
|
178
|
+
"chap_box",
|
|
179
|
+
"section",
|
|
180
|
+
"subsection",
|
|
181
|
+
"body",
|
|
182
|
+
"definition",
|
|
183
|
+
"highlight",
|
|
184
|
+
"tip",
|
|
185
|
+
"note",
|
|
186
|
+
"formula",
|
|
187
|
+
"formula_block",
|
|
188
|
+
"warning",
|
|
189
|
+
"important",
|
|
190
|
+
"exam",
|
|
191
|
+
"theorem",
|
|
192
|
+
"proof",
|
|
193
|
+
"question",
|
|
194
|
+
"qbox",
|
|
195
|
+
"answer",
|
|
196
|
+
"mcq",
|
|
197
|
+
"revision_card",
|
|
198
|
+
"flashcard",
|
|
199
|
+
"bullet",
|
|
200
|
+
"info_table",
|
|
201
|
+
"code_block",
|
|
202
|
+
"footnote",
|
|
203
|
+
"label",
|
|
204
|
+
"ref",
|
|
205
|
+
"index_entry",
|
|
206
|
+
"print_index",
|
|
207
|
+
"include_chapter",
|
|
208
|
+
"include_markdown",
|
|
209
|
+
"build_split_doc",
|
|
210
|
+
"image",
|
|
211
|
+
"ImageFlowable",
|
|
212
|
+
"frame_format",
|
|
213
|
+
"packet_format",
|
|
214
|
+
"BG",
|
|
215
|
+
"CYAN",
|
|
216
|
+
"GREEN",
|
|
217
|
+
"YELLOW",
|
|
218
|
+
"WHITE",
|
|
219
|
+
"BODY_ST",
|
|
220
|
+
"SECT_ST",
|
|
221
|
+
"CODE_ST",
|
|
222
|
+
"COVER_H1",
|
|
223
|
+
"COVER_H2",
|
|
224
|
+
"COVER_SUB",
|
|
225
|
+
"CHAP_H1",
|
|
226
|
+
"H1",
|
|
227
|
+
"H2",
|
|
228
|
+
"H3",
|
|
229
|
+
"H4",
|
|
230
|
+
"H5",
|
|
231
|
+
"H6",
|
|
232
|
+
"TOC_H1",
|
|
233
|
+
"TOC_H2",
|
|
234
|
+
"TOC_H3",
|
|
235
|
+
"BULLET_ST",
|
|
236
|
+
]
|