{"id":24054366,"url":"https://github.com/kindermax/site-check","last_synced_at":"2026-06-06T20:32:04.885Z","repository":{"id":143882396,"uuid":"358325685","full_name":"kindermax/site-check","owner":"kindermax","description":"Check site for status","archived":false,"fork":false,"pushed_at":"2021-04-23T11:50:03.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T10:33:02.536Z","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/kindermax.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":"2021-04-15T16:32:52.000Z","updated_at":"2021-04-23T11:51:21.000Z","dependencies_parsed_at":"2023-11-05T21:31:41.004Z","dependency_job_id":null,"html_url":"https://github.com/kindermax/site-check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kindermax/site-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kindermax%2Fsite-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kindermax%2Fsite-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kindermax%2Fsite-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kindermax%2Fsite-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kindermax","download_url":"https://codeload.github.com/kindermax/site-check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kindermax%2Fsite-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285319005,"owners_count":27151474,"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-11-19T02:00:05.673Z","response_time":65,"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":"2025-01-09T03:04:40.431Z","updated_at":"2025-11-19T20:03:15.550Z","avatar_url":"https://github.com/kindermax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Site check\n\nThis project uses https://lets-cli.org/ task runner.\n\nInstall `lets` https://lets-cli.org/docs/installation.\n\nHow to use https://lets-cli.org/docs/getting_started\n\n\n## Architecture\n\n![alt text](./docs/site_check_arch.png)\n\n## Run\n\nPython \u003e= 3.8 required\n\n1. Create venv\n\n```shell\nlets vevn\n```\n\n2. Run checked/producer\n\nLocally\n\n```shell\nlets kafka\nlets checker https://google.com --interval=1 --kafka-bootstrap=localhost:9093 --kafka-topic=checks\n```\n\nQuick check whats going on in local kafka topic:\n\n`lets kafka-console-consumer --bootstrap-server kafka:9092 --topic checks`\n\n---\nWith cloud provider (Aiven)\n\n```shell\nlets checker https://google.com \\\n  --interval=1 \\\n  --kafka-bootstrap=kafka-site-check-project-7d36.aivencloud.com:13611 \\\n  --kafka-topic=checks \\\n  --kafka-ca-path=./certs/ca.pem \\\n  --kafka-cert-path=./certs/service.cert \\\n  --kafka-key-path=./certs/service.key\n```\n\n3. Run consumer \n\n\nBefore first run we have to migrate database schema\n\n```shell\nlets migrate-up\n# or \nlets migrate-up 1 # where 1 is number of specific migration\n```\n\nOr `lets migrate-down` to rollback all migrations\n\nLocally\n\n```shell\nlets kafka # in one terminal\nlets postgres  # in another terminal\nlets consumer --kafka-bootstrap=localhost:9093 --kafka-topic=checks --postgres-uri=postgres://postgres:postgres@localhost:5432/site_check\n```\n\nQuick check whats going on in local kafka topic:\n\n`lets kafka-console-consumer --bootstrap-server kafka:9092 --topic checks`\n\n---\nWith cloud provider (Aiven)\n\n```shell\nlets consumer \\\n  --kafka-bootstrap=kafka-site-check-project-7d36.aivencloud.com:13611 \\\n  --kafka-topic=checks \\\n  --kafka-ca-path=./certs/ca.pem \\\n  --kafka-cert-path=./certs/service.cert \\\n  --kafka-key-path=./certs/service.key \\\n  --postgres-uri=\"postgres://user:password@pg-site-check-project-7d36.aivencloud.com:13609/site_check?sslmode=require\"\n```\n\n## Test\n\n```shell\nlets test\n```\n\n## Dependencies\n\nThis project uses https://github.com/jazzband/pip-tools\n\nTo install all dependencies inside venv run:\n\n```shell\nlets install-deps\n```\n\nTo update all dependencies run:\n\n```shell\nlets update-deps\n```\n\nTo update one package run:\n\n```shell\nlets update-deps pytest\n```\n\nThis will regenerate requirements.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkindermax%2Fsite-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkindermax%2Fsite-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkindermax%2Fsite-check/lists"}