Skip to content

Commit a89bf5c

Browse files
committed
Update Source
1 parent 152b5ab commit a89bf5c

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/*.pyc
2+
**/__pycache__

easymodels/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = 1.3

easymodels/__main__.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
from easymodels.utils import *
2-
2+
import requests, time
3+
import sys
34
def start():
45
Menu.main()
6+
7+
__version__ = "1.3"
58

69
if __name__ == "__main__":
10+
sys.stdout.flush()
11+
print('Checking For Updates...')
12+
r = requests.get('https://raw.githubusercontent.com/M4cs/EasyModels/master/version.txt').text.replace('\n', '').replace('\r', '')
13+
if r != __version__:
14+
print('Update Available Please Run "pip install easymodules --upgrade" to update to the latest version!')
15+
time.sleep(1)
16+
else:
17+
print('All Up To Date! Starting EasyModels CLI')
718
start()

easymodels/utils/menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def main():
1616
while True:
1717
print("""\
1818
\n\n
19-
EasyModels v1.0\n
19+
EasyModels v1.3\n
2020
\tEasyModels is a tool to quickly, and easily find pre-trained AI
2121
\tmodels for your project. It uses the modelzoo.co API and offers
2222
\tinformation about the pre-trained models in an easy to view way.
@@ -47,5 +47,5 @@ def main():
4747
except:
4848
print(Categories.create_table_from_category_info(category_info))
4949
print('\nInvalid Option! Please choose an ID # from the table above!\n')
50-
print('\n' * 20)
50+
sys.stdout.flush()
5151

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def readme():
99

1010
setuptools.setup(
1111
name="EasyModels",
12-
version="1.1",
12+
version="1.3",
1313
author="Max Bridgland",
1414
install_requires=[
1515
'requests==2.21.0',
@@ -24,7 +24,7 @@ def readme():
2424
'easymodels = easymodels.__main__:start'
2525
]
2626
},
27-
keywords="AI tensorflow models training pre-train pre-trained artifical intelligence keras YOLO opencv pytorch chainer",
27+
keywords="AI, tensorflow, models, training, pre-train, pre-trained, artifical intelligence, keras, YOLO, opencv, pytorch, chainer, easymodels, ezmodels",
2828
url="https://github.com/M4cs/EasyModels",
2929
packages=setuptools.find_packages(),
3030
classifiers=(

0 commit comments

Comments
 (0)