Name | touying JSON |
Version |
0.11.3
JSON |
| download |
home_page | None |
Summary | Export presentation slides in various formats for Touying |
upload_time | 2024-05-31 12:44:44 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | MIT |
keywords |
presentation
slides
export
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Touying Exporter
Export presentation slides in various formats for Touying.
## HTML Export
We generate SVG image files and package them with impress.js into an HTML file. This way, you can open and present it using a browser, and it supports GIF animations and speaker notes.
![image](https://github.com/touying-typ/touying-exporter/assets/34951714/207ddffc-87c8-4976-9bf4-4c6c5e2573ea)
![image](https://github.com/touying-typ/touying-exporter/assets/34951714/eac4976b-7d5d-40b6-8827-88c9a024b89a)
[Touying template](https://github.com/touying-typ/touying-template) for online presentation. [Online](https://touying-typ.github.io/touying-template/)
## PPTX Export
We generate PNG image files and package them into a PPTX file. This way, you can open and present it using PowerPoint, and it supports speaker notes.
![image](https://github.com/touying-typ/touying-exporter/assets/34951714/3d547c74-fb4b-4c31-81e5-5138a5d727c9)
## Install
```sh
pip install touying
```
## CLI
```text
usage: touying compile [-h] [--output OUTPUT] [--root ROOT] [--font-paths [FONT_PATHS ...]] [--start-page START_PAGE] [--count COUNT] [--ppi PPI] [--silent SILENT] [--format {html,pptx,pdf,pdfpc}] input
positional arguments:
input Input file
options:
-h, --help show this help message and exit
--output OUTPUT Output file
--root ROOT Root directory for typst file
--font-paths [FONT_PATHS ...]
Paths to custom fonts
--start-page START_PAGE
Page to start from
--count COUNT Number of pages to convert
--ppi PPI Pixels per inch for PPTX format
--silent SILENT Run silently
--format {html,pptx,pdf,pdfpc}
Output format
```
For example:
```sh
touying compile example.typ
```
You will get a `example.html` file. Open it with your browser and start your presentation :-)
## Use it as a python package
```python
import touying
touying.to_html("example.typ")
```
## Thanks
- [impress.js](https://github.com/impress/impress.js)
- [typst-py](https://github.com/messense/typst-py)
- [python-pptx](https://github.com/scanny/python-pptx)
Raw data
{
"_id": null,
"home_page": null,
"name": "touying",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "presentation, slides, export",
"author": null,
"author_email": "OrangeX4 <318483724@qq.com>",
"download_url": "https://files.pythonhosted.org/packages/f8/21/2085721ab3bdb4bce1a5177645bd33b3e9200c8b81dfdad146733bae9238/touying-0.11.3.tar.gz",
"platform": null,
"description": "# Touying Exporter\n\nExport presentation slides in various formats for Touying.\n\n\n## HTML Export\n\nWe generate SVG image files and package them with impress.js into an HTML file. This way, you can open and present it using a browser, and it supports GIF animations and speaker notes.\n\n![image](https://github.com/touying-typ/touying-exporter/assets/34951714/207ddffc-87c8-4976-9bf4-4c6c5e2573ea)\n\n![image](https://github.com/touying-typ/touying-exporter/assets/34951714/eac4976b-7d5d-40b6-8827-88c9a024b89a)\n\n[Touying template](https://github.com/touying-typ/touying-template) for online presentation. [Online](https://touying-typ.github.io/touying-template/)\n\n## PPTX Export\n\nWe generate PNG image files and package them into a PPTX file. This way, you can open and present it using PowerPoint, and it supports speaker notes.\n\n![image](https://github.com/touying-typ/touying-exporter/assets/34951714/3d547c74-fb4b-4c31-81e5-5138a5d727c9)\n\n## Install\n\n```sh\npip install touying\n```\n\n\n## CLI\n\n```text\nusage: touying compile [-h] [--output OUTPUT] [--root ROOT] [--font-paths [FONT_PATHS ...]] [--start-page START_PAGE] [--count COUNT] [--ppi PPI] [--silent SILENT] [--format {html,pptx,pdf,pdfpc}] input\n\npositional arguments:\n input Input file\n\noptions:\n -h, --help show this help message and exit\n --output OUTPUT Output file\n --root ROOT Root directory for typst file\n --font-paths [FONT_PATHS ...]\n Paths to custom fonts\n --start-page START_PAGE\n Page to start from\n --count COUNT Number of pages to convert\n --ppi PPI Pixels per inch for PPTX format\n --silent SILENT Run silently\n --format {html,pptx,pdf,pdfpc}\n Output format\n```\n\nFor example:\n\n```sh\ntouying compile example.typ\n```\n\nYou will get a `example.html` file. Open it with your browser and start your presentation :-)\n\n\n## Use it as a python package\n\n```python\nimport touying\n\ntouying.to_html(\"example.typ\")\n```\n\n## Thanks\n\n- [impress.js](https://github.com/impress/impress.js)\n- [typst-py](https://github.com/messense/typst-py)\n- [python-pptx](https://github.com/scanny/python-pptx)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Export presentation slides in various formats for Touying",
"version": "0.11.3",
"project_urls": {
"Home": "https://github.com/touying-typ/touying-exporter"
},
"split_keywords": [
"presentation",
" slides",
" export"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "32632ff7449f7dd20c3b572595bddc1344fc2eb3a88e87bf06636090c9e9e798",
"md5": "9bf7090b59b9ec5a5352b130ae2df61f",
"sha256": "373bee01e04b5d354604503656b144defc39b7865ed1a49d30e748e5298d26d9"
},
"downloads": -1,
"filename": "touying-0.11.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9bf7090b59b9ec5a5352b130ae2df61f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 24480,
"upload_time": "2024-05-31T12:44:43",
"upload_time_iso_8601": "2024-05-31T12:44:43.235967Z",
"url": "https://files.pythonhosted.org/packages/32/63/2ff7449f7dd20c3b572595bddc1344fc2eb3a88e87bf06636090c9e9e798/touying-0.11.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f8212085721ab3bdb4bce1a5177645bd33b3e9200c8b81dfdad146733bae9238",
"md5": "c1a42b433ef846eca510f5a0181e7669",
"sha256": "4a11c1eab2624c3243cc544bdf6a3539fc02c3e5e703dfb5beea3bbdb36f6563"
},
"downloads": -1,
"filename": "touying-0.11.3.tar.gz",
"has_sig": false,
"md5_digest": "c1a42b433ef846eca510f5a0181e7669",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 24785,
"upload_time": "2024-05-31T12:44:44",
"upload_time_iso_8601": "2024-05-31T12:44:44.222788Z",
"url": "https://files.pythonhosted.org/packages/f8/21/2085721ab3bdb4bce1a5177645bd33b3e9200c8b81dfdad146733bae9238/touying-0.11.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-31 12:44:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "touying-typ",
"github_project": "touying-exporter",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "touying"
}