{"id":22622338,"url":"https://github.com/davidecaruso/wazowski","last_synced_at":"2026-05-01T09:32:49.520Z","repository":{"id":150711842,"uuid":"262576948","full_name":"davidecaruso/wazowski","owner":"davidecaruso","description":":door: Python+GraphQL microservice to check ports availability in a host","archived":false,"fork":false,"pushed_at":"2020-05-10T09:19:45.000Z","size":278,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T02:41:59.203Z","etag":null,"topics":["graphql","microservice","port","port-scanner","python","python-graphql"],"latest_commit_sha":null,"homepage":"","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/davidecaruso.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-05-09T13:28:14.000Z","updated_at":"2021-01-27T11:41:34.000Z","dependencies_parsed_at":"2023-04-28T07:02:53.786Z","dependency_job_id":null,"html_url":"https://github.com/davidecaruso/wazowski","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/davidecaruso/wazowski","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecaruso%2Fwazowski","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecaruso%2Fwazowski/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecaruso%2Fwazowski/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecaruso%2Fwazowski/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidecaruso","download_url":"https://codeload.github.com/davidecaruso/wazowski/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecaruso%2Fwazowski/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["graphql","microservice","port","port-scanner","python","python-graphql"],"created_at":"2024-12-08T23:14:08.835Z","updated_at":"2026-05-01T09:32:49.497Z","avatar_url":"https://github.com/davidecaruso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/davidecaruso/wazowski/raw/master/logo.jpg\" /\u003e\n\u003c/p\u003e\n\n\u003e *Python+GraphQL* microservice to check **ports availability** in a host.\n\n## Install\n```shell script\ngit clone git@github.com:davidecaruso/wazowski.git\ncd wazowski \u0026\u0026 cp .env.example .env \u0026\u0026 vi .env\n```\n\n## Usage\n#### With Docker\n```shell script\ndocker-compose up --build -d\n```\n#### With Python3\n```shell script\npip3 install --no-cache-dir -r requirements.txt\npython3 main.py\n```\n\n## Getting started\nMany of the following *GraphQL* queries accept these parameters:\n- `start`: is the starting port value of the range. Default value is **1024**\n- `end`: is the ending port value of the range. Default value is **65535**\n- `host`: is the host where the search will be performed. Default value is **\"127.0.0.1\"**\n\n#### Check if a port is free\n\u003e **POST** /graphql\n\n```graphql\nquery Query {\n  check(port: 3000, host: \"127.0.0.1\")\n}\n```\n\u003e **200**\n```json\n{\n  \"data\": {\n    \"check\": true\n  }\n}\n```\n\n#### Get the list of free ports in a range\n\u003e **POST** /graphql\n\n```graphql\nquery Query {\n  list(start: 3000, end: 3010, host: \"127.0.0.1\")\n}\n```\n\u003e **200**\n```json\n{\n  \"data\": {\n    \"list\": [\n      3000,\n      3002,\n      3010\n    ]\n  }\n}\n```\n\n#### Get the next free port to a given one in a range\n\u003e **POST** /graphql\n\n```graphql\nquery Query {\n  next(port: 3007, start: 3000, end: 3010, host: \"127.0.0.1\")\n}\n```\n\u003e **200**\n```json\n{\n  \"data\": {\n    \"next\": 3008\n  }\n}\n```\n\n#### Get the previous free port to a given one in a range\n\u003e **POST** /graphql\n\n```graphql\nquery Query {\n  previous(port: 3007, start: 3000, end: 3010, host: \"127.0.0.1\")\n}\n```\n\u003e **200**\n```json\n{\n  \"data\": {\n    \"previous\": 3006\n  }\n}\n```\n\n#### Get a random free port in a range\n\u003e **POST** /graphql\n\n```graphql\nquery Query {\n  random(start: 3000, end: 4000, host: \"127.0.0.1\")\n}\n```\n\u003e **200**\n```json\n{\n  \"data\": {\n    \"random\": 3265\n  }\n}\n```\n\n## Author\n[Davide Caruso](https://about.me/davidecaruso)\n\n## License\nLicensed under [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidecaruso%2Fwazowski","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidecaruso%2Fwazowski","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidecaruso%2Fwazowski/lists"}