{"id":18320343,"url":"https://github.com/alice1017/justwatch","last_synced_at":"2025-04-09T14:24:38.449Z","repository":{"id":62573532,"uuid":"128279045","full_name":"alice1017/JustWatch","owner":"alice1017","description":"Just watch the file modification","archived":false,"fork":false,"pushed_at":"2019-03-20T15:40:15.000Z","size":892,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T22:48:01.142Z","etag":null,"topics":["python2","watch"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alice1017.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-06T00:20:46.000Z","updated_at":"2024-10-13T16:56:57.000Z","dependencies_parsed_at":"2022-11-03T18:35:53.952Z","dependency_job_id":null,"html_url":"https://github.com/alice1017/JustWatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2FJustWatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2FJustWatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2FJustWatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2FJustWatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alice1017","download_url":"https://codeload.github.com/alice1017/JustWatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054410,"owners_count":21039999,"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","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":["python2","watch"],"created_at":"2024-11-05T18:15:58.246Z","updated_at":"2025-04-09T14:24:38.429Z","avatar_url":"https://github.com/alice1017.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JustWatch\n\n[![forthebadge](http://forthebadge.com/images/badges/made-with-python.svg)](http://forthebadge.com)\n\n[![Build Status](https://travis-ci.org/alice1017/JustWatch.svg?branch=master)](https://travis-ci.org/alice1017/JustWatch)\n[![Coverage Status](https://coveralls.io/repos/github/alice1017/JustWatch/badge.svg)](https://coveralls.io/github/alice1017/JustWatch)\n\n[![asciicast](https://asciinema.org/a/175956.png)](https://asciinema.org/a/175956)\n\n## :page_facing_up: Overview\n\nPython utility to watch the **file modification**.\nThere are similar libraries: [pyinotify](https://github.com/seb-m/pyinotify), [watchdog](https://github.com/gorakhargosh/watchdog).\nThese libraries watch the file system event, but JustWatch is supported modification **only**.\n\n## :pencil2: Usage\n\n### quick start\n\nFirst of all, import classes from `justwatch`:\n\n```py\nfrom justwatch import WatchManager, Observer\n```\n\nmake `WatchManager` instance and add file or directory:\n\n```py\nmanager = WatchManager()\nmanager.add_file(\"./README.md\")\nmanager.add_dir(\"./tests\")\n```\n\nmake `Observer` instance and set callback:\n\n```py\nobserver = Observer(manager)\n\n@observer.set_callback\ndef callback(item):\n    print \"Catch the modification of '{0}'\".format(item.path)\n```\n\nand run `observer.watch`\n\n```py\nobserver.watch()\n```\n\n### example\n\n\u003cimg src=\"code.png\" alt=\"sample code\" style=\"max-width:100%;\" height=\"600px\"\u003e\n\n## :inbox_tray: Installation\n\n```\n$ git clone git@github.com:alice1017/JustWatch.git\n$ cd JustWatch\n$ python setup.py build install\n```\n\nor\n\n```\n$ pip install just-watch\n```\n\n## :eyes: Contribution\n\n1. Forks on [Github](https://github.com/alice1017/JustWatch)\n2. Find a bug? Send a pull request to get it merged and published.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falice1017%2Fjustwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falice1017%2Fjustwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falice1017%2Fjustwatch/lists"}