Skip to content

Commit

Permalink
Added new modules
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan authored May 29, 2024
1 parent 9109e46 commit 5406e00
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ pip3 install upsonic

We are working on Upsonic and the tools that inside the `tools` folder is sending to public tiger in each release. We are aiming to create tools without any api key and just like normal human events like searching on google with mouse, keyboard and browser.

- App
- open
- close

- browser
- open_url

- Interpreter

- python
Expand Down
19 changes: 19 additions & 0 deletions tiger/tools/app/close.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

def close(app_name) -> bool:
"""
:param app_name: str:
"""
try:
from AppOpener import close
close(app_name, throw_error=True)
return True
except:
return False



tool_name = "app.close"
tool_obj = close
tool_requirements = ["AppOpener==1.7"]
19 changes: 19 additions & 0 deletions tiger/tools/app/open.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

def open(app_name) -> bool:
"""
:param app_name: str:
"""
try:
from AppOpener import open
open(app_name, throw_error=True)
return True
except:
return False



tool_name = "app.open"
tool_obj = open
tool_requirements = ["AppOpener==1.7"]
20 changes: 20 additions & 0 deletions tiger/tools/browser/open_url.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import webbrowser


def open_url(url) -> bool:
"""
:param url: str:
"""
try:
webbrowser.open(url)
return True
except:
return False



tool_name = "browser.open_url"
tool_obj = open_url
tool_requirements = []

0 comments on commit 5406e00

Please sign in to comment.