Skip to content

Commit 98d4bc8

Browse files
authored
Merge pull request #19 from lsgrep/support-monterey
Support Monterey
2 parents d50983f + da79404 commit 98d4bc8

19 files changed

+1217
-2075
lines changed

Alfred_Workflow-1.40.0.dist-info/INSTALLER

Lines changed: 0 additions & 1 deletion
This file was deleted.

Alfred_Workflow-1.40.0.dist-info/METADATA

Lines changed: 0 additions & 172 deletions
This file was deleted.

Alfred_Workflow-1.40.0.dist-info/RECORD

Lines changed: 0 additions & 23 deletions
This file was deleted.

Alfred_Workflow-1.40.0.dist-info/WHEEL

Lines changed: 0 additions & 5 deletions
This file was deleted.

Alfred_Workflow-1.40.0.dist-info/top_level.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [Scikit-learn](https://scikit-learn.org/stable/modules/classes.html)
1212
- [Statsmodels](https://www.statsmodels.org/stable/index.html)
1313
- [Seaborn](https://seaborn.pydata.org/api.html)
14+
- [Jax](https://jax.readthedocs.io/en/latest/jax.html)
1415

1516
## Install
1617
Checkout the [Releases](https://github.com/lsgrep/mldocs/releases), download the latest `mldocs.alfredworkflow`,
@@ -76,6 +77,7 @@ You can enter the query directly in the Alfred with the keyword `ml paper KEYWOR
7677
- [x] add Matplotlib support
7778
- [x] add Statsmodels support
7879
- [x] add Seaborn support
80+
- [x] add Jax support
7981
- [x] add Automatic Update
8082
- [ ] add Github Actions to generate `ml.json`
8183
- [ ] add keyword descriptions for TensorFlow

data/ml.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/seed.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ generated: # API docs those are generated by tools
2727
url: 'https://www.statsmodels.org/stable/api.html'
2828
- name: 'seaborn'
2929
url: 'https://seaborn.pydata.org/api.html'
30+
- name: 'jax'
31+
url: 'https://jax.readthedocs.io/en/latest/jax.html'

mldocs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
from workflow import ICON_INFO
1414
# Workflow3 supports Alfred 3's new features. The `Workflow` class
1515
# is also compatible with Alfred 2.
16-
from workflow import Workflow3, web
16+
from workflow import Workflow3
1717

1818

1919
def get_ml_docs():
2020
data_url = 'https://raw.githubusercontent.com/lsgrep/mldocs/master/data/ml.json'
21-
result = web.get(data_url)
21+
result = requests.get(data_url)
2222
# throw an error if request failed
2323
# Workflow will catch this and show it to the user
2424
result.raise_for_status()
@@ -107,9 +107,8 @@ def search(args, keywords):
107107
# args is lower case already
108108
args = expand_args(args)
109109
# performance hack, eliminate dot expression
110-
lower = string.lower
111110
for k in args:
112-
keywords = [i for i in keywords if k in lower(i)]
111+
keywords = [i for i in keywords if k in i.lower()]
113112
result = sorted(keywords, key=search_priority_len)
114113
return result
115114

requirements.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
certifi==2020.6.20
2-
chardet==3.0.4
3-
idna==2.10
41
PyYAML==5.3.1
52
requests==2.24.0
63
urllib3==1.25.11

workflow/__init__.py

Lines changed: 51 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212

1313
import os
1414

15-
# Workflow objects
16-
from .workflow import Workflow, manager
17-
from .workflow3 import Variables, Workflow3
18-
19-
# Exceptions
20-
from .workflow import PasswordNotFound, KeychainError
21-
15+
# Filter matching rules
2216
# Icons
17+
# Exceptions
18+
# Workflow objects
2319
from .workflow import (
2420
ICON_ACCOUNT,
2521
ICON_BURN,
@@ -44,10 +40,6 @@
4440
ICON_USER,
4541
ICON_WARNING,
4642
ICON_WEB,
47-
)
48-
49-
# Filter matching rules
50-
from .workflow import (
5143
MATCH_ALL,
5244
MATCH_ALLCHARS,
5345
MATCH_ATOM,
@@ -57,52 +49,56 @@
5749
MATCH_INITIALS_STARTSWITH,
5850
MATCH_STARTSWITH,
5951
MATCH_SUBSTRING,
52+
KeychainError,
53+
PasswordNotFound,
54+
Workflow,
55+
manager,
6056
)
57+
from .workflow3 import Variables, Workflow3
6158

62-
63-
__title__ = 'Alfred-Workflow'
64-
__version__ = open(os.path.join(os.path.dirname(__file__), 'version')).read()
65-
__author__ = 'Dean Jackson'
66-
__licence__ = 'MIT'
67-
__copyright__ = 'Copyright 2014-2019 Dean Jackson'
59+
__title__ = "Alfred-Workflow"
60+
__version__ = open(os.path.join(os.path.dirname(__file__), "version")).read()
61+
__author__ = "Dean Jackson"
62+
__licence__ = "MIT"
63+
__copyright__ = "Copyright 2014-2019 Dean Jackson"
6864

6965
__all__ = [
70-
'Variables',
71-
'Workflow',
72-
'Workflow3',
73-
'manager',
74-
'PasswordNotFound',
75-
'KeychainError',
76-
'ICON_ACCOUNT',
77-
'ICON_BURN',
78-
'ICON_CLOCK',
79-
'ICON_COLOR',
80-
'ICON_COLOUR',
81-
'ICON_EJECT',
82-
'ICON_ERROR',
83-
'ICON_FAVORITE',
84-
'ICON_FAVOURITE',
85-
'ICON_GROUP',
86-
'ICON_HELP',
87-
'ICON_HOME',
88-
'ICON_INFO',
89-
'ICON_NETWORK',
90-
'ICON_NOTE',
91-
'ICON_SETTINGS',
92-
'ICON_SWIRL',
93-
'ICON_SWITCH',
94-
'ICON_SYNC',
95-
'ICON_TRASH',
96-
'ICON_USER',
97-
'ICON_WARNING',
98-
'ICON_WEB',
99-
'MATCH_ALL',
100-
'MATCH_ALLCHARS',
101-
'MATCH_ATOM',
102-
'MATCH_CAPITALS',
103-
'MATCH_INITIALS',
104-
'MATCH_INITIALS_CONTAIN',
105-
'MATCH_INITIALS_STARTSWITH',
106-
'MATCH_STARTSWITH',
107-
'MATCH_SUBSTRING',
66+
"Variables",
67+
"Workflow",
68+
"Workflow3",
69+
"manager",
70+
"PasswordNotFound",
71+
"KeychainError",
72+
"ICON_ACCOUNT",
73+
"ICON_BURN",
74+
"ICON_CLOCK",
75+
"ICON_COLOR",
76+
"ICON_COLOUR",
77+
"ICON_EJECT",
78+
"ICON_ERROR",
79+
"ICON_FAVORITE",
80+
"ICON_FAVOURITE",
81+
"ICON_GROUP",
82+
"ICON_HELP",
83+
"ICON_HOME",
84+
"ICON_INFO",
85+
"ICON_NETWORK",
86+
"ICON_NOTE",
87+
"ICON_SETTINGS",
88+
"ICON_SWIRL",
89+
"ICON_SWITCH",
90+
"ICON_SYNC",
91+
"ICON_TRASH",
92+
"ICON_USER",
93+
"ICON_WARNING",
94+
"ICON_WEB",
95+
"MATCH_ALL",
96+
"MATCH_ALLCHARS",
97+
"MATCH_ATOM",
98+
"MATCH_CAPITALS",
99+
"MATCH_INITIALS",
100+
"MATCH_INITIALS_CONTAIN",
101+
"MATCH_INITIALS_STARTSWITH",
102+
"MATCH_STARTSWITH",
103+
"MATCH_SUBSTRING",
108104
]

0 commit comments

Comments
 (0)