slidesync 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.
- slidesync/__init__.py +48 -0
- slidesync/_sync.py +1941 -0
- slidesync-0.1.0.dist-info/METADATA +137 -0
- slidesync-0.1.0.dist-info/RECORD +8 -0
- slidesync-0.1.0.dist-info/WHEEL +5 -0
- slidesync-0.1.0.dist-info/entry_points.txt +2 -0
- slidesync-0.1.0.dist-info/licenses/LICENSE +21 -0
- slidesync-0.1.0.dist-info/top_level.txt +1 -0
slidesync/__init__.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""slidesync — bidirectional Slidev markdown <-> Google Slides sync.
|
|
2
|
+
|
|
3
|
+
`push` builds **native** Slides objects (title/body placeholders, bullets,
|
|
4
|
+
tables, positioned images), so the result stays editable rather than a flat
|
|
5
|
+
image; `pull` reconstructs Slidev markdown from those native objects;
|
|
6
|
+
`roundtrip` proves the loop is stable. Auth is borrowed from the `gog` CLI.
|
|
7
|
+
|
|
8
|
+
Library usage::
|
|
9
|
+
|
|
10
|
+
from slidesync import get_services, load_slides, push, pull_slides, write_slidev
|
|
11
|
+
|
|
12
|
+
slides_api, drive = get_services()
|
|
13
|
+
push(slides_api, drive, deck_id, load_slides(Path("deck.slidev.md")),
|
|
14
|
+
anchor=None, prune=False)
|
|
15
|
+
|
|
16
|
+
CLI: ``slidesync push|pull|roundtrip|layouts|make-templates`` (see ``--help``).
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from slidesync._sync import (
|
|
20
|
+
Para,
|
|
21
|
+
Run,
|
|
22
|
+
Slide,
|
|
23
|
+
build_slides,
|
|
24
|
+
get_services,
|
|
25
|
+
load_slides,
|
|
26
|
+
main,
|
|
27
|
+
pull_slides,
|
|
28
|
+
push,
|
|
29
|
+
split_slides,
|
|
30
|
+
write_slidev,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
__version__ = "0.1.0"
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"Para",
|
|
37
|
+
"Run",
|
|
38
|
+
"Slide",
|
|
39
|
+
"__version__",
|
|
40
|
+
"build_slides",
|
|
41
|
+
"get_services",
|
|
42
|
+
"load_slides",
|
|
43
|
+
"main",
|
|
44
|
+
"pull_slides",
|
|
45
|
+
"push",
|
|
46
|
+
"split_slides",
|
|
47
|
+
"write_slidev",
|
|
48
|
+
]
|