创建和解析siri快捷方式的python库
shortcuts的Python项目详细描述
#WIP:python快捷方式
[![构建状态](https://travis-ci.org/alexander-akhmetov/python-shortcuts.svg?branch=master)(https://travis ci.org/alexander akhmetov/python快捷方式)
[![pypi](https://img.shields.io/pypi/v/shortcuts.svg)](https://pypi.python.org/pypi/shortcuts)
+=
**python shortcuts**是一个库,可以使用您喜爱的文本编辑器在笔记本电脑上创建[siri快捷键](https://support.apple.com/en-ae/guide/shortcuts/welcome/ios)。
[toml](https://github.com/toml-lang/toml)表示快捷方式。
我是说,因此,它不支持快捷方式应用程序中的所有操作。
*[toml tutorial](docs/tutorial.md)
*[python tutorial](docs/python-tutorial.md)
*[如何添加新操作](docs/new-action.md)
*[支持的操作](docs/actions.md)
*[示例](examples/)
*[changelog](changelog.md)
*[文档](docs/)
受支持的python版本:**>;=3.6**.
\:)
[[action]
type=“set_variable”
name=“name”
[[action]
type=“show_result”
text=“您好,{{name}!”
```
或与python相同:
``python
from shortcuts import shortcut,actions
sc.actions=[
actions.askaction(data={'question':'您叫什么名字?'})、
actions.setvariableaction(data={'name':'name'})、
actions.showResultAction(data={'text':'hello,{{name}!'< BR> > BR> > BR/>< BR> > BASH
PIP安装快捷方式
‘BR/>< BR/>使用< BR> > BR/>捷径→TUNL
BR/>如果您需要将现有快捷方式转换为TAML文件,首先需要导出它。
进入快捷方式APP,打开快捷方式并共享它。}
选择“share as file”并将此文件与此库一起使用。
app.
`` bash
快捷方式示例/什么是你的名字。toml什么是你的名字。快捷方式
```
更多的“toml”文件示例,你可以在[这里](示例/)。
和[阅读教程](docs/tutorial.md)!:)
my shortcut.toml或myshortcut.shortcut
```
,它将下载此快捷方式并以“toml”或“shortcut”格式保存它。
内部:
``shell
shortcuts creator
位置参数:
文件输入文件:*(toml shortcut itunes url)
输出文件:*(toml shortcut)
可选参数:
-h,-帮助显示此信息并退出
版本版本信息
< BR> > BR/>< BR> > BR/>运行测试:
BR/>“BASH
Tox
”
BR/>α>如何添加新动作
BR/>参见[文献]ation](/docs/new_action.md)。
todo
*{~~具有自动组ID的条件:如果没有,则菜单~~
*☆嵌套字段:dict/array/etc
*☆在快捷方式应用程序中支持这些字段的每个字段中支持变量
*☆工作流类型:小部件,等。
*☆导入问题
*☆记录所有操作
*☆支持魔法变量
*☆支持快捷方式应用程序中的所有当前操作
\r/>\r类似项目
*[快捷方式js](https://github.com/joshfarrant/shortcuts-js)
[![构建状态](https://travis-ci.org/alexander-akhmetov/python-shortcuts.svg?branch=master)(https://travis ci.org/alexander akhmetov/python快捷方式)
[![pypi](https://img.shields.io/pypi/v/shortcuts.svg)](https://pypi.python.org/pypi/shortcuts)
+=
**python shortcuts**是一个库,可以使用您喜爱的文本编辑器在笔记本电脑上创建[siri快捷键](https://support.apple.com/en-ae/guide/shortcuts/welcome/ios)。
[toml](https://github.com/toml-lang/toml)表示快捷方式。
我是说,因此,它不支持快捷方式应用程序中的所有操作。
*[toml tutorial](docs/tutorial.md)
*[python tutorial](docs/python-tutorial.md)
*[如何添加新操作](docs/new-action.md)
*[支持的操作](docs/actions.md)
*[示例](examples/)
*[changelog](changelog.md)
*[文档](docs/)
受支持的python版本:**>;=3.6**.
\:)
[[action]
type=“set_variable”
name=“name”
[[action]
type=“show_result”
text=“您好,{{name}!”
```
或与python相同:
``python
from shortcuts import shortcut,actions
sc.actions=[
actions.askaction(data={'question':'您叫什么名字?'})、
actions.setvariableaction(data={'name':'name'})、
actions.showResultAction(data={'text':'hello,{{name}!'< BR> > BR> > BR/>< BR> > BASH
PIP安装快捷方式
‘BR/>< BR/>使用< BR> > BR/>捷径→TUNL
BR/>如果您需要将现有快捷方式转换为TAML文件,首先需要导出它。
进入快捷方式APP,打开快捷方式并共享它。}
选择“share as file”并将此文件与此库一起使用。
app.
`` bash
快捷方式示例/什么是你的名字。toml什么是你的名字。快捷方式
```
更多的“toml”文件示例,你可以在[这里](示例/)。
和[阅读教程](docs/tutorial.md)!:)
my shortcut.toml或myshortcut.shortcut
```
,它将下载此快捷方式并以“toml”或“shortcut”格式保存它。
内部:
``shell
shortcuts creator
位置参数:
文件输入文件:*(toml shortcut itunes url)
输出文件:*(toml shortcut)
可选参数:
-h,-帮助显示此信息并退出
版本版本信息
< BR> > BR/>< BR> > BR/>运行测试:
BR/>“BASH
Tox
”
BR/>α>如何添加新动作
BR/>参见[文献]ation](/docs/new_action.md)。
todo
*{~~具有自动组ID的条件:如果没有,则菜单~~
*☆嵌套字段:dict/array/etc
*☆在快捷方式应用程序中支持这些字段的每个字段中支持变量
*☆工作流类型:小部件,等。
*☆导入问题
*☆记录所有操作
*☆支持魔法变量
*☆支持快捷方式应用程序中的所有当前操作
\r/>\r类似项目
*[快捷方式js](https://github.com/joshfarrant/shortcuts-js)