{"id":16520219,"url":"https://github.com/khadkarajesh/service-discovery","last_synced_at":"2026-05-11T10:36:08.470Z","repository":{"id":42691349,"uuid":"474301674","full_name":"khadkarajesh/service-discovery","owner":"khadkarajesh","description":"Telecom Service Discovery by Location of user","archived":false,"fork":false,"pushed_at":"2022-03-28T15:46:44.000Z","size":4013,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T10:33:29.681Z","etag":null,"topics":["bigdata","flask","geocoding","multithreading","restful-api","reverse-geocoding"],"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/khadkarajesh.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}},"created_at":"2022-03-26T09:34:09.000Z","updated_at":"2023-03-05T03:27:27.000Z","dependencies_parsed_at":"2022-08-27T04:51:06.610Z","dependency_job_id":null,"html_url":"https://github.com/khadkarajesh/service-discovery","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/khadkarajesh%2Fservice-discovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khadkarajesh%2Fservice-discovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khadkarajesh%2Fservice-discovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khadkarajesh%2Fservice-discovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khadkarajesh","download_url":"https://codeload.github.com/khadkarajesh/service-discovery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587917,"owners_count":19986627,"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":["bigdata","flask","geocoding","multithreading","restful-api","reverse-geocoding"],"created_at":"2024-10-11T16:50:04.622Z","updated_at":"2026-05-11T10:36:08.347Z","avatar_url":"https://github.com/khadkarajesh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Table of Contents\n1. [Architecture Diagram](#architecture-diagram)\n2. [How to Run Application](#run-application)\n3. [Run Test Cases](#run-test-cases)\n4. [Background Job](#background-job)\n5. [Monitor Background Task](#monitor-background-task)\n6. [API](#service-discovery)\n\n\n### Architecture Diagram\n![Architecture Diagram](media/architecture.png)\n\n### How to Run Application\n1. [Install Requirements](#install-requirements)\n2. [Setup Redis](#setup-redis)\n3. [Run Application](#run-application)\n\n#### Install Requirements\n\n```shell\n   pip install -r requirements.txt\n   ```\n\n#### Setup Redis\n\n1. Install Redis in Mac\n```shell\nbrew install redis\n```\n2. Start Redis Service\n```shell\nbrew services start redis\n```\n3. Start Redis Service\n```shell\nredis-server\n```\n4. Redis Worker\nStart redis worker from project directory as:\n```shell\nrq worker --with-scheduler\n```\n\n#### Run Application\n```shell\npython app.py\n```\n### Run Test Cases\nNavigate to the project directory and execute command\n```shell\npytest\n```\n\n### Monitor Background Task\n[Redis Dashboard](http://127.0.0.1:5000/rq)\n\n### Service Discovery\n#### Find Available Network\n```\nRequest\n-------------------------------\nMethod: GET\nURL: /discover?q=Vitry-sur-Seine\n\nResponse, 200\n-------------------------------\n{\n\t\"SFR\": {\n\t\t\"2G\": false,\n\t\t\"3G\": true,\n\t\t\"4G\": true\n\t},\n\t\"Orange\": {\n\t\t\"2G\": true,\n\t\t\"3G\": true,\n\t\t\"4G\": true\n\t},\n\t\"Free mobile\": {\n\t\t\"2G\": false,\n\t\t\"3G\": true,\n\t\t\"4G\": true\n\t},\n\t\"Bouygues Telecom\": {\n\t\t\"2G\": true,\n\t\t\"3G\": false,\n\t\t\"4G\": false\n\t}\n}\n```\n\n### Background Job\nThis background jobs extracts data and generates necessary files to discover the available networks on respective location.\nRedis worker must run before starting this job. \n\n```\nRequest\n-------------------------------\nMethod: GET\nURL: /extract\n\nResponse, 200\n-------------------------------\n{\n\t\"message\": \"job initiated to fetch city for networks\"\n}\n```\n\n### Issues\nCouldn't get the address detail for 30% of the lambert coordinates from api ```https://api-adresse.data.gouv.fr/search``` as it sends empty response. Hence, we can see only ~40k record in ```networks_with_city.txt ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhadkarajesh%2Fservice-discovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhadkarajesh%2Fservice-discovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhadkarajesh%2Fservice-discovery/lists"}