{"id":21669729,"url":"https://github.com/dsgnr/portchecker","last_synced_at":"2026-05-18T10:37:43.990Z","repository":{"id":57454221,"uuid":"441446072","full_name":"dsgnr/portchecker","owner":"dsgnr","description":"Python package to query the ports for a given hostname or IP address. Back-end script used at https://portchecker.io","archived":false,"fork":false,"pushed_at":"2022-01-12T21:41:11.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"devel","last_synced_at":"2026-02-08T10:46:44.292Z","etag":null,"topics":["pip","poetry","python"],"latest_commit_sha":null,"homepage":"https://portchecker.io","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/dsgnr.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}},"created_at":"2021-12-24T11:16:47.000Z","updated_at":"2021-12-25T00:34:09.000Z","dependencies_parsed_at":"2022-09-26T21:41:00.210Z","dependency_job_id":null,"html_url":"https://github.com/dsgnr/portchecker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dsgnr/portchecker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgnr%2Fportchecker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgnr%2Fportchecker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgnr%2Fportchecker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgnr%2Fportchecker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsgnr","download_url":"https://codeload.github.com/dsgnr/portchecker/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgnr%2Fportchecker/sbom","scorecard":{"id":357668,"data":{"date":"2025-08-11","repo":{"name":"github.com/dsgnr/portchecker","commit":"a31f0e00f16422e368de1ff93f1c98f2a8ef1800"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/codeql-analysis.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/codeql-analysis.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/codeql-analysis.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/codeql-analysis.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pycodestyle.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/pycodestyle.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pycodestyle.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/pycodestyle.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pylint.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/pylint.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pylint.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/pylint.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/pytest.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dsgnr/portchecker/pytest.yml/devel?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pycodestyle.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/pycodestyle.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/pylint.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/pylint.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/pytest.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/pytest.yml:20","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:17","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:16","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/pycodestyle.yml:1","Warn: no topLevel permission defined: .github/workflows/pylint.yml:1","Warn: no topLevel permission defined: .github/workflows/pytest.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T10:02:12.126Z","repository_id":57454221,"created_at":"2025-08-18T10:02:12.127Z","updated_at":"2025-08-18T10:02:12.127Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33175108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["pip","poetry","python"],"created_at":"2024-11-25T12:24:32.676Z","updated_at":"2026-05-18T10:37:43.969Z","avatar_url":"https://github.com/dsgnr.png","language":"Python","funding_links":["https://www.patreon.com/dsgnr_","https://www.paypal.com/donate?business=RNT9HTKVJ2DDJ\u0026no_recurring=0\u0026item_name=portchecker.io+donation\u0026currency_code=GBP"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to portcheckerio 👋\u003c/h1\u003e\n\n![PyPI](https://img.shields.io/pypi/v/portcheckerio)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/portcheckerio)\n[![GitHub license](https://img.shields.io/github/license/dsgnr/portchecker)](https://github.com/dsgnr/portchecker/blob/devel/LICENSE)\n[![Pytest](https://github.com/dsgnr/portchecker/actions/workflows/pytest.yml/badge.svg)](https://github.com/dsgnr/portchecker/actions/workflows/pytest.yml)\n[![CodeQL](https://github.com/dsgnr/portchecker/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/dsgnr/portchecker/actions/workflows/codeql-analysis.yml)\n\nThis repository is the counterpart script which ports [portchecker.io](https://portchecker.io)\n\nThis package is a nice alternative way to using tools like `nc` to query the port connectivity. \nThe main benefits is that it will work with hostnames, \nIPv4 and IPv6 addresses (if your client has IPv6 of course). \nYou can also query multiple ports at the same time and receive a sweet JSON response.\n\n## Installation\n\nPortchecker can be installed from PyPI using `pip` or your package manager of choice:\n\n```\npip install portcheckerio\n```\n\n## Usage\n\n### CLI\n\nYou can use Portchecker as a CLI tool using the `portcheck` command.\n\nExample:\n\n```console\n$ portcheck --host google.com --ports 443\n{\n    \"2a00:1450:4009:815::200e\": {\n        \"type\": \"ipv6\",\n        \"results\": [\n            {\n                \"port\": 443,\n                \"connectable\": true\n            }\n        ]\n    },\n    \"172.217.16.238\": {\n        \"type\": \"ipv4\",\n        \"results\": [\n            {\n                \"port\": 443,\n                \"connectable\": true\n            }\n        ]\n    }\n}\n```\n\nYou can query multiple ports for a given host in the same command:\n\n```console\n$ portcheck --host google.com --ports 443 22\n{\n    \"172.217.16.238\": {\n        \"type\": \"ipv4\",\n        \"results\": [\n            {\n                \"port\": 443,\n                \"connectable\": true\n            },\n            {\n                \"port\": 22,\n                \"connectable\": false\n            }\n        ]\n    },\n    \"2a00:1450:4009:815::200e\": {\n        \"type\": \"ipv6\",\n        \"results\": [\n            {\n                \"port\": 443,\n                \"connectable\": true\n            },\n            {\n                \"port\": 22,\n                \"connectable\": false\n            }\n        ]\n    }\n}\n```\n\n## 📝 To Do\n\n- [ ] Add more tests \n- [ ] Add the option to query RFC1918 addresses\n- [ ] Add the option to increase the timeout limit \n\n### 🏠 [Homepage](https://portchecker.io)\n\n### ✨ [Demo](https://portchecker.io)\n\n## Author\n\n👤 **Dan Hand**\n\n* Website: https://danielhand.io\n* Github: [@dsgnr](https://github.com/dsgnr)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome.\u003cbr /\u003e\nFeel free to check [issues page](https://github.com/dsgnr/portchecker.io/issues) if you want to contribute.\u003cbr /\u003e\n\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\nAny donations to help the running of the site is hugely appreciated!\n\n\u003ca href=\"https://www.patreon.com/dsgnr_\"\u003e\n  \u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"100\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.paypal.com/donate?business=RNT9HTKVJ2DDJ\u0026no_recurring=0\u0026item_name=portchecker.io+donation\u0026currency_code=GBP\" target=\"_blank\"\u003e\u003cimg src=\"https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif\"\u003e\u003c/a\u003e\n\n\n## 📝 License\n\nCopyright © 2019 [Dan Hand](https://github.com/dsgnr).\u003cbr /\u003e\nThis project is [MIT](https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE) licensed.\n\n---\n***\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsgnr%2Fportchecker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsgnr%2Fportchecker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsgnr%2Fportchecker/lists"}