{"id":16242924,"url":"https://github.com/jpmens/airportsd","last_synced_at":"2025-03-19T17:31:59.419Z","repository":{"id":50223975,"uuid":"300576235","full_name":"jpmens/airportsd","owner":"jpmens","description":"IATA airport code lookup server","archived":false,"fork":false,"pushed_at":"2024-08-05T19:27:37.000Z","size":22063,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"trunk","last_synced_at":"2024-10-15T00:26:22.992Z","etag":null,"topics":["airports","ansible","api","c","http","iata"],"latest_commit_sha":null,"homepage":"https://jpmens.net/2020/10/04/airports-of-the-world/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpmens.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/emoji-flags/LICENSE","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-02T10:14:49.000Z","updated_at":"2024-08-28T07:12:38.000Z","dependencies_parsed_at":"2024-03-24T11:25:58.548Z","dependency_job_id":"dc8260dd-29b9-4a21-9924-edf619520e57","html_url":"https://github.com/jpmens/airportsd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmens%2Fairportsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmens%2Fairportsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmens%2Fairportsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmens%2Fairportsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpmens","download_url":"https://codeload.github.com/jpmens/airportsd/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221729497,"owners_count":16871034,"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":["airports","ansible","api","c","http","iata"],"created_at":"2024-10-10T14:13:22.961Z","updated_at":"2024-10-27T20:27:30.435Z","avatar_url":"https://github.com/jpmens.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"AIRPORTSD(8)\t\t\t\t\t\t\t  AIRPORTSD(8)\n\nNAME\n       airportsd - IATA airport code lookup server\n\nSYNOPSIS\n       airportsd [-v]\n\nDESCRIPTION\n       airportsd is an HTTP-accessible IATA airport code lookup daemon.  We\n       created this as a service students can use on lab machines for\n       developing an Ansible lookup plugin during trainings.\n\n       When running on a tty the program will output brief debugging\n       information on startup, and when it’s queried.\n\n       The (currently hard-coded) CDB database must exist and be readable by\n       the owner of the airportsd process.\n\nEXAMPLE\n\n\t      $ curl -i http://127.0.0.1:8812/lookup?iata=bcn\n\t      HTTP/1.1 200 OK\n\t      Date: Wed, 26 Mar 2024 22:17:20 GMT\n\t      Connection: close\n\t      Content-Type: application/json\n\t      Content-Length: 216\n\t      {\n\t\t  \"id\": \"4004\",\n\t\t  \"iata\": \"BCN\",\n\t\t  \"cc\": \"ES\",\n\t\t  \"city\": \"Barcelona\",\n\t\t  \"lat\": \"41.2971\",\n\t\t  \"lon\": \"2.07846\",\n\t\t  \"name\": \"Josep Tarradellas Barcelona-El Prat Airport\",\n\t\t  \"type\": \"large_airport\",\n\t\t  \"emoji\": \"🇪🇸\"\n\t      }\n\n\nENDPOINTS\n       All airportsd API endpoints are obtained via GET requests.\n\n   lookup\n       This endpoint expects iata query parameter with a case insensitive\n       3-letter IATA airport code; the key is looked up in the database and\n       the JSON data or HTTP status code 404 are returned.\n\nOPTIONS\n       airportsd understands the following global options.\n\n       -v     show version information and exit\n\nENVIRONMENT\n       AIRPORTSD_IP\n\t      optionally sets the listen address for airportsd; defaults to\n\t      127.0.0.1 and we strongly recommend this is not changed to\n\t      anything other than a loopback address.\n\n       AIRPORTSD_PORT\n\t      optionally sets the TCP listen port to something other than the\n\t      default 8812.\n\nFILES\n       /usr/local/share/airports.cdb\n\t      the database file to query.\n\nREQUIREMENTS\n   freebsd\n\n\t      $ pkg install libmicrohttpd tinycdb\n\n\t      $ cat \u003e config.mk \u003c\u003cEOF\n\t      DBNAME= \"/usr/local/share/airports.cdb\"\n\t      LISTEN_HOST=   \"127.0.0.1\"\n\t      LISTEN_PORT=   \"8812\"\n\t      INC =\t      -I/usr/local/include\n\t      LIBS =\t      -L /usr/local/lib\n\t      EOF\n\n\n   rhel/centos\n\n\t      yum install tinycdb\n\n\n   debian\n\n\t      apt-get install tinycdb\n\n\n   macos\n\n\t      brew install libmicrohttpd tinycdb\n\n\n   all\n       • libmicrohttpd (https://www.gnu.org/software/libmicrohttpd/)\n\n       • tinycdb (http://www.corpit.ru/mjt/tinycdb.html)\n\nCREDITS\n       • Airport data gratefully put into the Public Domain by ourairports.com\n\t (https://ourairports.com/data/).\n\n       • Country emoji flags from Emoji Flags (https://github.com/jonathan-\n\t kosgei/emoji-flags)\n\nAVAILABILITY\n       \u003chttps://github.com/jpmens/airportsd\u003e\n\nAUTHOR\n       Jan-Piet Mens \u003chttps://jpmens.net\u003e\n\nUser Manuals\t\t\t\t\t\t\t  AIRPORTSD(8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmens%2Fairportsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpmens%2Fairportsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmens%2Fairportsd/lists"}