Skip to content

Commit

Permalink
added scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
0dm committed Jun 15, 2023
1 parent 853fef2 commit 1eb2085
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions openadapt/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,5 +642,9 @@ def record(
logger.info(f"saved {recording_timestamp=}")


def start():
fire.Fire(record)


if __name__ == "__main__":
fire.Fire(record)
4 changes: 4 additions & 0 deletions openadapt/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ def replay(
strategy.run()


def start():
fire.Fire(replay)


if __name__ == "__main__":
fire.Fire(replay)
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ authors = ["Richard Abrich <[email protected]>"]
license = "LICENSE"
readme = "README.md"

repository = "https://github.com/mldsai/openadapt"
homepage = "https://openadapt.ai/"


[tool.poetry.dependencies]
python = "3.10.x"
atomacos = {git = "https://github.com/abrichr/atomacos.git", markers = "sys_platform == 'darwin'"}
pynput = {git = "https://github.com/abrichr/pynput.git"}
alembic = "^1.8.1"
# pygetwindow = {version = "^0.0.9", markers = "sys_platform == 'win32'"} # already present in atomacos
pywin32 = {version = "^306", markers = "sys_platform == 'win32'"}
ascii-magic = "^2.3.0"
pywin32 = {version = "306", markers = "sys_platform == 'win32'"}
ascii-magic = "2.3.0"
bokeh = "^3.1.1"
clipboard = "^0.0.4"
clipboard = "0.0.4"
deepdiff = {extras = ["optimize"], version = "^6.3.0"}
ascii_magic = "2.3.0"
dictalchemy3 = "1.0.0"
Expand Down Expand Up @@ -47,3 +51,8 @@ sphinx = "^7.0.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
visualize = "openadapt.visualize:main"
record = "openadapt.record:start"
replay = "openadapt.replay:start"

0 comments on commit 1eb2085

Please sign in to comment.