{"id":21569380,"url":"https://github.com/aweirddev/revilo","last_synced_at":"2025-10-17T23:52:02.444Z","repository":{"id":243386409,"uuid":"812288524","full_name":"AWeirdDev/revilo","owner":"AWeirdDev","description":"The Revilo Computer API.","archived":false,"fork":false,"pushed_at":"2024-06-08T14:34:45.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T05:45:22.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AWeirdDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-08T13:19:37.000Z","updated_at":"2024-06-08T14:34:48.000Z","dependencies_parsed_at":"2024-06-08T14:39:35.049Z","dependency_job_id":"7aadc014-fcb8-4ba0-a8af-f25875e914f0","html_url":"https://github.com/AWeirdDev/revilo","commit_stats":null,"previous_names":["aweirddev/revilo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AWeirdDev/revilo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Frevilo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Frevilo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Frevilo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Frevilo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AWeirdDev","download_url":"https://codeload.github.com/AWeirdDev/revilo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Frevilo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267670559,"owners_count":24125169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T11:09:18.960Z","updated_at":"2025-10-17T23:51:57.382Z","avatar_url":"https://github.com/AWeirdDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# revilo \u003ckbd\u003eAI\u003c/kbd\u003e\nRevilo Computer API. Will support AI soon.\n\n## Windows API\nThe Revilo Windows API plays some tricks with Powershell and provides clean APIs. What's more, it's: ✨ LIGHTWEIGHT! ✨\n\nTo import, -\n\n```python\nfrom revilo.windows import ...   # import item (e.g., ps, mouse, ...)\n```\n\n### Run Powershell\n\nThis is the core building block of the Revilo Computer API for Windows — Powershell.\n\n```python\nps.run(\"Write-Host I love chocolate!\")  # 'I love chocolate!\\n'\nps.run('Write-Host \"Yo: $({c})\"', vars={\"c\": \"6*9 + 6+9\"})  # 'Yo: 69\\n'\n```\n\n### Keyboard API \u003ckbd\u003e* AI\u003c/kbd\u003e\n\nThe keyboard API provides a clean interface for sending keys to the current foreground application.\nIt provides both text and hotkeys API.\n\n```python\n# Simple write API\nkeyboard.write(\"I love Texas!\")\nkeyboard.write(\"Multi-\\nlines work, too!\")\n\n# Hotkey (equivalents)\nkeyboard.hotkey(\"⌘\", \"shift\", \"esc\")  # Opens Task Manager\nkeyboard.hotkey(\"ctrl\", \"shift\", \"esc\")  # Seriously, again!\n```\n\n### Mouse API \u003ckbd\u003e* AI\u003c/kbd\u003e\n\nThe mouse API is elegant, too!\n\n```python\nmouse.move(100, 200)   # (x, y)\n\nmouse.click()\nmouse.click(100, 200)  # (x, y)\nmouse.get_position()   # -\u003e (x, y)\n```\n\n### Screen API \u003ckbd\u003e* AI\u003c/kbd\u003e\n\nThe screen API will be integrated with AI soon!\nJust a quick note: don't copy Microsoft's idea of stalking people's history (it's a decent idea for privacy leaks) because everyone loves their idea and will definitely go stonks!\n\n```python\n# Takes a screenshot\nscreen.take_screenshot(\"./my-screenshot.png\")\n\n# Gets the current app name (foreground)\nscreen.get_current_app()\n```\n\n### Notifications (Toast) API\n\nThe toast API is not 100% covered (for `\u003ctoast\u003e`), but overall it's clean!\n\n```python\n# Send a simple toast\ntoast.notify(\"Epic title!\", \"Epic text\")\n\n# Add a sound\ntoast.notify(\n    \"Hear me!\",\n    \"Yes you will.\", \n    audio=\"ms-winsoundevent:Notification.Looping.Call9\",  # don't worry: type hints!\n    audio_loops=True,\n    duration=\"long\",  # or short\n    scenario=\"incomingCall\"  # \"reminder\" | \"alarm\" | \"incomingCall\" | \"urgent\"\n)\n\n# Add actions\ntoast.notify(\n    \"📈 Time to increase traffic!\",\n    \"Click to open Google for no reason!!!\",\n    actions=[\n        toast.Action(\"Google Time\", \"https://google.com\")\n    ]\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Frevilo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faweirddev%2Frevilo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Frevilo/lists"}