{"id":16284822,"url":"https://github.com/pauleveritt/pyramid_watcher","last_synced_at":"2026-06-30T12:31:26.616Z","repository":{"id":152275637,"uuid":"171014452","full_name":"pauleveritt/pyramid_watcher","owner":"pauleveritt","description":"Watch a directory in Pyramid and register callbacks for handling files  ","archived":false,"fork":false,"pushed_at":"2019-03-05T01:44:21.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T18:43:45.719Z","etag":null,"topics":["pyramid","reload","web"],"latest_commit_sha":null,"homepage":"https://pyramid-watcher.readthedocs.io/en/latest/","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/pauleveritt.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","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":"2019-02-16T14:47:26.000Z","updated_at":"2020-02-15T15:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cab290a-baac-4266-bce4-dd49876fafbf","html_url":"https://github.com/pauleveritt/pyramid_watcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pauleveritt/pyramid_watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauleveritt%2Fpyramid_watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauleveritt%2Fpyramid_watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauleveritt%2Fpyramid_watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauleveritt%2Fpyramid_watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pauleveritt","download_url":"https://codeload.github.com/pauleveritt/pyramid_watcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauleveritt%2Fpyramid_watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34967614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["pyramid","reload","web"],"created_at":"2024-10-10T19:21:11.745Z","updated_at":"2026-06-30T12:31:26.496Z","avatar_url":"https://github.com/pauleveritt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============\npyramid_watcher\n===============\n\n.. image:: https://readthedocs.org/projects/pyramid_watcher/badge/?version=latest\n    :target: https://readthedocs.org/projects/pyramid_watcher/?badge=latest\n    :alt: Documentation Status\n\nWant to watch your local files and take actions, including reloading a\nbrowser, when add/edit/change modifications are detected?\npyramid_watcher works in a background thread and lets you register\nhandlers.\n\nThis package is written specifically as a start to a static-site\ngenerator which watches Markdown files.\n\nDocs\n====\n\nDocs for pyramid_watcher are hosted\n`on ReadTheDocs \u003chttps://pyramid-watcher.readthedocs.io/en/latest/\u003e`_.\n\nScanning\n========\n\nThis package uses Python's builtin\n`scandir \u003chttps://docs.python.org/3/library/os.html#os.scandir\u003e`_\nmodule from `PEP 471 \u003chttps://www.python.org/dev/peps/pep-0471/\u003e`_\nand thus requires Python 3.5 or higher. As noted by Samuel Colvin in\nthe README for `watchgod \u003chttps://pypi.org/project/watchgod/\u003e`_, this\napproach is plenty fast and mitigates the need to use OS-native\nfilesystem watching.\n\nAcknowledgements\n================\n\nThe world of JavaScript has tons of tools like webpack-dev-server which\nwatch for changes and go through rich pipelines to then do interesting\nreload operations in the browser.\n\nHsiaoming Yang (lepture) manages a `livereload \u003chttps://pypi.org/project/livereload/\u003e`_\npackage which does much of this. I wanted a few differences: integration\nwith Pyramid in a rich way, higher-performance watching, and batch\noperations.\n\nSamuel Colvin's `watchgod \u003chttps://pypi.org/project/watchgod/\u003e`_ was the\narchitectural inspiration. The ``scandir`` approach and code was taken\ndirectly from his ``watchers.py`` file. His package does more things and\nis dependent on asyncio stuff.\n\nMichael Merickel's `hupper \u003chttps://pypi.org/project/hupper/\u003e`_ gave me\nthe background thread approach registered with Pyramid. Far more\nimportantly, Michael coached me through the entirety of writing this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauleveritt%2Fpyramid_watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauleveritt%2Fpyramid_watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauleveritt%2Fpyramid_watcher/lists"}