Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: alexander-akhmetov/python-shortcuts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.6.0
Choose a base ref
...
head repository: alexander-akhmetov/python-shortcuts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Sep 24, 2018

  1. Generated new actions description

    Alexander Akhmetov committed Sep 24, 2018
    Copy the full SHA
    c33ac9f View commit details
  2. Added "choices" to actions description

    Alexander Akhmetov committed Sep 24, 2018
    Copy the full SHA
    e244798 View commit details
  3. Moved changelog

    Alexander Akhmetov committed Sep 24, 2018
    Copy the full SHA
    54ee2f7 View commit details
  4. Update README.md

    Alexander Akhmetov authored Sep 24, 2018
    Copy the full SHA
    152a7c1 View commit details

Commits on Sep 25, 2018

  1. Menu support + example how to use it

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    9c33f78 View commit details
  2. Fixed problem with variables replacement

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    e6c5d5c View commit details
  3. Release 0.7.0

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    1d31f51 View commit details
  4. Copy the full SHA
    fa9512e View commit details
  5. Release 0.7.0

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    6cfb743 View commit details
  6. Updated README.md

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    7d6ae42 View commit details
  7. Updated tutorials

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    05014f3 View commit details
  8. SpeakTextAction and new example: shields.toml

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    b203090 View commit details
  9. Removed plutil requirement

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    2689977 View commit details
  10. Added ability to download shortcuts with shortcuts cli directly fro…

    …m iCloud
    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    4253d1c View commit details
  11. Release 0.8.0

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    db7f561 View commit details
  12. Copy the full SHA
    f3b2ac9 View commit details
  13. Release 0.8.1

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    e93b0c6 View commit details
  14. Updated gitignore

    Alexander Akhmetov committed Sep 25, 2018
    Copy the full SHA
    fc5705c View commit details

Commits on Sep 26, 2018

  1. Repeat with each actions

    Alexander Akhmetov committed Sep 26, 2018
    Copy the full SHA
    fa860fd View commit details
  2. New actions: set dictionary value, hash

    Alexander Akhmetov committed Sep 26, 2018
    Copy the full SHA
    be4fbe1 View commit details
  3. URLDecodeAction; URLEncodeAction

    Alexander Akhmetov committed Sep 26, 2018
    Copy the full SHA
    9fb25db View commit details
  4. Small refactoring of plist loading

    Alexander Akhmetov committed Sep 26, 2018
    Copy the full SHA
    bf2aef2 View commit details

Commits on Sep 27, 2018

  1. New text actions + tests

    Alexander Akhmetov committed Sep 27, 2018
    Copy the full SHA
    4f458e7 View commit details
  2. Release 0.9.0

    Alexander Akhmetov committed Sep 27, 2018
    Copy the full SHA
    cfec2a7 View commit details
  3. Update README.md

    Alexander Akhmetov committed Sep 27, 2018
    Copy the full SHA
    af91288 View commit details
  4. Added UnknownWFTextTokenAttachment exception for unknown token attach…

    …ment types
    Alexander Akhmetov committed Sep 27, 2018
    Copy the full SHA
    f50c972 View commit details

Commits on Sep 29, 2018

  1. New actions: open url; append file; get dictionary; etc

    Alexander Akhmetov committed Sep 29, 2018
    Copy the full SHA
    70dd96d View commit details
  2. Fixed broken link in documentation

    Alexander Akhmetov committed Sep 29, 2018
    Copy the full SHA
    5ced1c9 View commit details

Commits on Sep 30, 2018

  1. A little bit more comments

    Alexander Akhmetov committed Sep 30, 2018
    Copy the full SHA
    1530aa1 View commit details

Commits on Oct 12, 2018

  1. Closes #2 Added supported python version info

    Alexander Akhmetov committed Oct 12, 2018
    Copy the full SHA
    f0265b0 View commit details

Commits on Oct 26, 2018

  1. Release 0.10.0

    Alexander Akhmetov committed Oct 26, 2018
    Copy the full SHA
    8ffda76 View commit details
  2. Merge pull request #4 from alexander-akhmetov/release/0.10.0

    Release 0.10.0
    Alexander Akhmetov authored and Alexander Akhmetov committed Oct 26, 2018
    Copy the full SHA
    1d5dae9 View commit details

Commits on Nov 7, 2018

  1. Copy the full SHA
    b99d5ef View commit details

Commits on Nov 9, 2018

  1. Merge pull request #5 from slogsdon7/master

    -Added Choose From List scripting action and associated tests
    Alexander Akhmetov authored Nov 9, 2018
    Copy the full SHA
    025c54b View commit details

Commits on Nov 24, 2018

  1. Copy the full SHA
    170eba0 View commit details

Commits on Nov 25, 2018

  1. Fixed tests

    jon77p committed Nov 25, 2018
    Copy the full SHA
    acafd12 View commit details

Commits on Nov 26, 2018

  1. Merge pull request #7 from jon77p/master

    Added Open App scripting action and associated tests
    Alexander Akhmetov authored Nov 26, 2018
    Copy the full SHA
    f7b903f View commit details

Commits on Dec 19, 2018

  1. #6 Added link to Shortcut JS to the readme

    Alexander Akhmetov committed Dec 19, 2018
    Copy the full SHA
    21718ec View commit details
  2. Copy the full SHA
    34a74a4 View commit details

Commits on Dec 29, 2018

  1. Added flake8, py36 tests

    Alexander Akhmetov committed Dec 29, 2018
    Copy the full SHA
    e1c5689 View commit details
  2. Merge pull request #9 from alexander-akhmetov/linters

    Added flake8, py36 tests
    Alexander Akhmetov authored Dec 29, 2018
    Copy the full SHA
    addde77 View commit details

Commits on Feb 5, 2019

  1. Added Dockerfile with shortcuts-cli

    Alexander Akhmetov committed Feb 5, 2019
    Copy the full SHA
    8495715 View commit details
  2. Added docker --help example

    Alexander Akhmetov committed Feb 5, 2019
    Copy the full SHA
    0460ae2 View commit details
  3. Update README.md

    Alexander Akhmetov authored Feb 5, 2019
    Copy the full SHA
    30cf012 View commit details
  4. Added link to Docker Hub

    Alexander Akhmetov committed Feb 5, 2019
    Copy the full SHA
    f67708c View commit details
  5. Fixed pytest section in the setup.cfg

    Alexander Akhmetov committed Feb 5, 2019
    Copy the full SHA
    8fe280f View commit details

Commits on Feb 28, 2019

  1. Added info about plutil

    Alexander Akhmetov committed Feb 28, 2019
    Copy the full SHA
    21bdba5 View commit details
  2. Fixed auto-generated readme encoding (setup.py)

    Alexander Akhmetov committed Feb 28, 2019
    Copy the full SHA
    926bd36 View commit details

Commits on Mar 5, 2019

  1. Changed [pytest] to [tool:pytest] in the setup.cfg

    Alexander Akhmetov committed Mar 5, 2019
    Copy the full SHA
    a5cd175 View commit details
  2. Copy the full SHA
    04373cb View commit details
Showing with 4,553 additions and 579 deletions.
  1. +16 −0 .github/dependabot.yml
  2. +27 −0 .github/workflows/tests.yml
  3. +6 −0 .gitignore
  4. +0 −5 .travis.yml
  5. +147 −0 CHANGELOG.md
  6. +5 −0 Dockerfile
  7. +11 −1 Makefile
  8. +3 −1 Pipfile
  9. +333 −124 Pipfile.lock
  10. +52 −10 README.md
  11. +77 −21 docs.py
  12. +0 −73 docs/CHANGELOG.md
  13. +728 −69 docs/actions.md
  14. +112 −0 docs/fields.md
  15. +8 −0 docs/new_action.md
  16. +10 −9 docs/python_tutorial.md
  17. +6 −0 docs/tutorial.md
  18. +184 −0 examples/ShortcutDB.toml
  19. +40 −0 examples/send_photo.toml
  20. +26 −0 examples/shields.toml
  21. +1 −1 setup.cfg
  22. +12 −13 setup.py
  23. +2 −2 shortcuts/__init__.py
  24. +80 −22 shortcuts/actions/__init__.py
  25. +7 −0 shortcuts/actions/b64.py
  26. +84 −17 shortcuts/actions/base.py
  27. +1 −0 shortcuts/actions/calculation.py
  28. +23 −6 shortcuts/actions/conditions.py
  29. +36 −1 shortcuts/actions/date.py
  30. +13 −1 shortcuts/actions/device.py
  31. +21 −2 shortcuts/actions/dictionary.py
  32. +13 −0 shortcuts/actions/files.py
  33. +6 −0 shortcuts/actions/input.py
  34. +77 −0 shortcuts/actions/menu.py
  35. +15 −0 shortcuts/actions/messages.py
  36. +8 −0 shortcuts/actions/numbers.py
  37. +60 −4 shortcuts/actions/out.py
  38. +4 −0 shortcuts/actions/photo.py
  39. +103 −0 shortcuts/actions/registry.py
  40. +108 −1 shortcuts/actions/scripting.py
  41. +89 −1 shortcuts/actions/text.py
  42. +11 −0 shortcuts/actions/variables.py
  43. +55 −2 shortcuts/actions/web.py
  44. +46 −15 shortcuts/cli.py
  45. +30 −5 shortcuts/dump.py
  46. +47 −0 shortcuts/exceptions.py
  47. +147 −96 shortcuts/loader.py
  48. +100 −36 shortcuts/shortcut.py
  49. +86 −5 shortcuts/utils.py
  50. 0 tests/actions/b64/__init__.py
  51. +52 −0 tests/actions/b64/tests.py
  52. +90 −1 tests/actions/base/tests.py
  53. +24 −5 tests/actions/conditions/tests.py
  54. 0 tests/actions/date/__init__.py
  55. +44 −0 tests/actions/date/tests.py
  56. +52 −5 tests/actions/dictionary/tests.py
  57. 0 tests/actions/files/__init__.py
  58. +63 −0 tests/actions/files/tests.py
  59. 0 tests/actions/input/__init__.py
  60. +20 −0 tests/actions/input/tests.py
  61. 0 tests/actions/menu/__init__.py
  62. +14 −0 tests/actions/menu/tests.py
  63. 0 tests/actions/numbers/__init__.py
  64. +25 −0 tests/actions/numbers/tests.py
  65. +97 −5 tests/actions/out/tests.py
  66. 0 tests/actions/registry/__init__.py
  67. +122 −0 tests/actions/registry/tests.py
  68. +184 −1 tests/actions/scripting/tests.py
  69. +2 −1 tests/actions/tests.py
  70. 0 tests/actions/text/__init__.py
  71. +168 −0 tests/actions/text/tests.py
  72. +28 −4 tests/actions/variables/tests.py
  73. +84 −4 tests/actions/web/tests.py
  74. 0 tests/cli/__init__.py
  75. +19 −0 tests/cli/tests.py
  76. +41 −1 tests/conftest.py
  77. 0 tests/examples/__init__.py
  78. +136 −0 tests/examples/tests.py
  79. 0 tests/loader/__init__.py
  80. +25 −0 tests/loader/tests.py
  81. +27 −4 tests/shortcuts/tests.py
  82. +53 −0 tests/templates.py
  83. 0 tests/utils/__init__.py
  84. +99 −0 tests/utils/tests.py
  85. +8 −5 tox.ini
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
reviewers:
- alexander-akhmetov
assignees:
- alexander-akhmetov

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: python-shortcuts tests

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox==3.15.1 tox-gh-actions==1.2.0 pipenv==2020.6.2
- name: Tests
run: tox
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,9 @@
build
dist
MANIFEST
*.plist
*.shortcut
*.toml
!examples/*.toml
!examples/*.shortcut
.coverage
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

147 changes: 147 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# Changelog

## [0.11.0] 05.03.2019

- Added dockerized cli tool

- New actions:
- Choose From List
- Open App

## [0.10.0] 26.10.2018

- Added new example: database [ShortcutDB](/examples/ShortcutDB.md). Get version with auto update feature and read documentation on [the website](https://shortcutdb.aleks.sh)

- Added system variables:
- `shortcut_input`
- `clipboard`
- `current_date`

- New actions:
- AppendFileAction
- GetDictionaryFromInputAction
- RunShortcut
- GetMyShortcutsAction
- GetTimeBetweenDates
- DetectDateAction
- OpenURLAction

- `IfAction` now supports variables in the parameter `compare_with`.

## [0.9.1] 27.09.2018

- Now raises `UnknownWFTextTokenAttachment` error when loader can't load field with unknown token attachment type.

## [0.9.0] 27.09.2018

- Added [fields documentation](/docs/fields.md)
- New actions:
- RepeatEachStartAction
- RepeatEachEndAction
- ChangeCaseAction
- SplitTextAction
- GetClipboardAction
- NumberAction
- HashAction
- SetClipboardAction
- SetDictionaryValueAction
- URLEncodeAction
- URLDecodeAction
- AppendVariableAction
- ShowDefinitionAction
- ScanQRBarCode
- GetTextFromInputAction
- GetNameOfEmoji
- DetectLanguageAction
- ExpandURLAction

## [0.8.1] - 26.09.2018

- Save shortcut from URL without deserializing if output format is plist

## [0.8.0] - 25.09.2018

- New example: [shields.toml](/examples/shields.toml)
- New action: SpeakTextAction
- Added `default=True` to field `SetLowPowerModeAction.on`.
- Removed `plutil` requirement
- Added ability to download shortcuts with `shortcuts` cli directly from iCloud

## [0.7.0] - 25.09.2018

- New actions:
- SendMessageAction
- MenuStartAction
- MenuItemAction
- MenuEndAction
- New examples in the `/examples/` directory:
- `send_photo.toml`: how to use `menu`, send photo with `send message` action and how to use `{{ask_when_run}}`
- Updated documentation about supported actions `/docs/actions.md`
- Supported `{{ask_when_run}}` system variable (read more about this in `/docs/actions.md`)

## [0.6.0] - 24.09.2018

- New actions:
- GetBatteryLevelAction
- GetIPAddressAction
- GetDeviceDetailsAction
- SetAirplaneModeAction
- SetBluetoothAction
- SetBrightnessAction
- SetMobileDataAction
- SetDoNotDisturbAction
- SetTorchAction
- SetLowPowerModeAction
- SetVolumeAction
- SetWiFiAction
- NothingAction
- SetItemNameAction
- ViewContentGraphAction
- ContinueInShortcutAppAction
- DelayAction
- WaitToReturnAction
- RepeatStartAction
- RepeatEndAction
- Renamed `type` to `itype` for action classes (class attribute *only*).
- Removed `required=True` from `group_id` fields, now conditional group sets automatically.
- Package name changed to `shortcuts`: `pip install shortcuts` (old name will be working too as an alias).

## [0.5.2] - 23.09.2018

- Fixed installation from pypi: returned back `toml` dependency

## [0.5.1] - 23.09.2018

- Fixed base64decode action

## [0.5.0] - 23.09.2018

- Fixed POST form data with GetURLAction

## [0.4.0] - 23.09.2018

- Added version inormation to the CLI tool

## [0.3.0] - 23.09.2018

- Added BooleanField
- Added DictionaryAction (only text items for now)
- Added GetURLAction (simple support, only json and headers)
- Added ExitAction
- Added VibrateAction
- Added FormatDateAction
- Added PreviewDocumentAction
- Added ImageConvertAction
- Added GetVariableAction

## [0.2.3] - 22.09.2018

- Fixed cli (`shortcuts`)

## [0.2.0] - 22.09.2018

- Working convertation toml <-> shortcut

## [0.1.0] - 22.09.2018

- It's alive!
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.7-alpine3.8

RUN pip install python-shortcuts==0.10.0

ENTRYPOINT ["shortcuts"]
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
generate_docs:
generate-docs:
python docs.py docs/actions.md


tests:
tox


release-pypi:
test -n "$(VERSION)"
@echo "\033[92mVERSION=$(VERSION)\033[0m"
@echo "\033[92mStarting tests\033[0m"
tox

@echo "\033[92mReleasing python-shortcuts with VERSION=$(VERSION)\033[0m"

@echo "\033[92mBuilding python-shortcuts\033[0m"
@@ -25,3 +30,8 @@ release-pypi:

isort-fix:
isort -rc shortcuts


docker-build-cli:
test -n "$(TAG)"
docker build -t akhmetov/shortcuts-cli:$(TAG) .
4 changes: 3 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
@@ -9,11 +9,13 @@ mock = "*"
mypy = "*"
"flake8" = "*"
isort = "*"
pytest-cov = "*"
black = "==19.10b0"

[packages]
toml = "*"
"flake8" = "*"
mypy = "*"

[requires]
python_version = "3.6"
python_version = "3.8"
Loading