Skip to content

david-why/shortcuts-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortcuts-py

Create iOS shortcuts with Python code.

Example usage

Save the following file as number.py and run it.

from shortcuts_py import *

begin_shortcut()

data = ask_for_input(int, "What's your favorite number?", default=42)
show_result(t('Great! I love ', data, ' too!'))

shortcut = build_shortcut(sign=True)
with open('number.shortcut', 'wb') as f:
    f.write(shortcut)

Releases

No releases published

Packages

No packages published

Languages