{"id":15133060,"url":"https://github.com/omkality/domofomka","last_synced_at":"2026-01-20T03:02:37.515Z","repository":{"id":193586103,"uuid":"689043397","full_name":"omka0708/domofomka","owner":"omka0708","description":"Getting intercom codes at the given address","archived":false,"fork":false,"pushed_at":"2023-12-24T18:53:25.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T02:47:30.545Z","etag":null,"topics":["fastapi","redis","sqlite3","vk-api"],"latest_commit_sha":null,"homepage":"","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/omka0708.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":"2023-09-08T16:56:48.000Z","updated_at":"2023-09-15T01:23:22.000Z","dependencies_parsed_at":"2024-10-09T18:20:47.831Z","dependency_job_id":null,"html_url":"https://github.com/omka0708/domofomka","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"b8788cc1f2e0680534341985903fd942a443cdfe"},"previous_names":["omka0708/domofomka-api","omka0708/domofomka"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omka0708%2Fdomofomka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omka0708%2Fdomofomka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omka0708%2Fdomofomka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omka0708%2Fdomofomka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omka0708","download_url":"https://codeload.github.com/omka0708/domofomka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406071,"owners_count":20933802,"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":["fastapi","redis","sqlite3","vk-api"],"created_at":"2024-09-26T05:00:22.888Z","updated_at":"2026-01-20T03:02:37.345Z","avatar_url":"https://github.com/omka0708.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# domofomka\n\nApplication for getting the intercom code at the given address.\nUsed stack: *FastAPI*, *SQLite*, *Redis*.\n\n## Install\n\nBuild `domofomka` from source:\n\n    git clone https://github.com/omka0708/domofomka\n    cd domofomka\n    docker compose up -d\n\nYou should have `.env` file at the */domofomka* folder and SQLite3 database with `DB_NAME` name (configured in environment file) at */domofomka/api* folder.\n\nEnvironment file `.env` should contain:\n    \n    DB_NAME=\u003cdatabase_name\u003e\n    DADATA_TOKEN=\u003cdadata_token\u003e\n    VK_GROUP_TOKEN=\u003cvk_group_token\u003e\n    VK_GROUP_ID=\u003cvk_group_id\u003e\n\nYour SQLite3 database should contain table `codes`, that has the structure:\n\n    \"id\" INTEGER,\n    \"city\" TEXT,\n    \"street_type\" TEXT,\n    \"street\" TEXT,\n    \"house\" TEXT,\n    \"entrance\" TEXT,\n    \"code_type\" TEXT,\n    \"code\" TEXT\n    \n## Run\n\nRun this command at the working directory */domofomka*:\n\n    docker compose up --build\n\n## API\n### Get codes by message\n#### Request\n\n`GET /codes_msg/`\n\n    GET localhost:80/codes_msg?message=трофимова 3\n    \n#### Response\n\n    {\n    \"address\":\"Москва, улица Трофимова, дом 3\",\n    \"data\":\n        {\n        \"1\":[[\"#7546\",\"yaeda\"],[\"#4230\",\"yaeda\"],[\"*#7546\",\"delivery\"]],\n        \"2\":[[\"#4230\",\"yaeda\"],[\"#4230\",\"delivery\"],[\"К4230\",\"oldcodes\"]]\n        }\n    }\n\n\n### Get codes by latitude and longitude\n\n`GET /codes_geo/`\n\n    GET localhost:80/codes_geo?lat=55.617586\u0026lon=37.495482\n    \n#### Response\n\n    {\n    \"address\":\"Москва, улица Профсоюзная, дом 156к5\",\n    \"data\":\n        {\n        \"1\":[[\"255К2580\",\"yaeda\"],[\"12К2889\",\"yaeda\"],[\"28К3185\",\"yaeda\"]],\n        \"2\":[[\"72К3108\",\"yaeda\"]],\n        \"3\":[[\"110*4082\",\"yaeda\"],[\"97*4840\",\"yaeda\"],[\"75*6818\",\"yaeda\"]],\n        \"4\":[[\"133К2489\",\"yaeda\"],[\"135К3001\",\"yaeda\"]],\n        \"5\":[[\"170*3304\",\"yaeda\"],[\"151*6631\",\"yaeda\"],[\"173*9572\",\"yaeda\"]],\n        \"6\":[[\"200К4578\",\"yaeda\"],[\"200К4578\",\"delivery\"]]\n        }\n    }\n    \n## VK Bot\n### Get codes by message\n![codes_by_msg](https://github.com/omka0708/domofomka/assets/56554057/d21e6146-95a7-4f09-a501-31d8fd2ae7df)\n\n### Get codes by latitude and longitude\n![codes_by_lat_lon](https://github.com/omka0708/domofomka/assets/56554057/85f2b4f6-7634-4b3a-b7a7-5ae10cdc9219)\n\n## Telegram Bot\n\n*soon*\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkality%2Fdomofomka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomkality%2Fdomofomka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkality%2Fdomofomka/lists"}