{"id":32177661,"url":"https://github.com/sarugaku/pythonfinder","last_synced_at":"2026-04-02T15:56:32.887Z","repository":{"id":31673540,"uuid":"128563602","full_name":"sarugaku/pythonfinder","owner":"sarugaku","description":"PythonFinder: Cross Platform Search Tool for Finding Pythons","archived":false,"fork":false,"pushed_at":"2025-04-25T08:35:02.000Z","size":1200,"stargazers_count":35,"open_issues_count":6,"forks_count":25,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-10T04:31:45.010Z","etag":null,"topics":["pathfinding","pip","pyenv","python","which"],"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/sarugaku.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"zenodo":null},"funding":{"github":["techalchemy","uranusjr"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"custom":null}},"created_at":"2018-04-07T20:01:35.000Z","updated_at":"2025-04-25T08:35:06.000Z","dependencies_parsed_at":"2023-02-19T06:31:03.390Z","dependency_job_id":"c93f6457-8495-446e-b98d-c7d5e4ac73ac","html_url":"https://github.com/sarugaku/pythonfinder","commit_stats":{"total_commits":444,"total_committers":26,"mean_commits":"17.076923076923077","dds":"0.39639639639639634","last_synced_commit":"dc7bd851195557fd5330fa832a30cfd0cda51cf2"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/sarugaku/pythonfinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarugaku%2Fpythonfinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarugaku%2Fpythonfinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarugaku%2Fpythonfinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarugaku%2Fpythonfinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarugaku","download_url":"https://codeload.github.com/sarugaku/pythonfinder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarugaku%2Fpythonfinder/sbom","scorecard":{"id":800921,"data":{"date":"2025-08-11","repo":{"name":"github.com/sarugaku/pythonfinder","commit":"4a12fd6b1c6830d2612ebd8168446de54037291e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"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":"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":"Code-Review","score":5,"reason":"Found 8/14 approved changesets -- score normalized to 5","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":"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/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sarugaku/pythonfinder/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/sarugaku/pythonfinder/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi_upload.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sarugaku/pythonfinder/pypi_upload.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi_upload.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/sarugaku/pythonfinder/pypi_upload.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi_upload.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/sarugaku/pythonfinder/pypi_upload.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pypi_upload.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/sarugaku/pythonfinder/pypi_upload.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/pypi_upload.yml:40","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 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":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/pypi_upload.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":"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":"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":"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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}}]},"last_synced_at":"2025-08-23T10:27:44.211Z","repository_id":31673540,"created_at":"2025-08-23T10:27:44.211Z","updated_at":"2025-08-23T10:27:44.211Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29668621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T23:24:07.480Z","status":"ssl_error","status_checked_at":"2026-02-20T23:24:06.202Z","response_time":59,"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":["pathfinding","pip","pyenv","python","which"],"created_at":"2025-10-21T20:18:11.489Z","updated_at":"2026-02-21T00:01:37.649Z","avatar_url":"https://github.com/sarugaku.png","language":"Python","readme":"PythonFinder: Cross Platform Search Tool for Finding Pythons\n=============================================================\n\n.. image:: https://img.shields.io/pypi/v/pythonfinder.svg\n    :target: https://pypi.org/project/pythonfinder\n\n.. image:: https://img.shields.io/pypi/l/pythonfinder.svg\n    :target: https://github.com/sarugaku/pythonfinder/blob/master/LICENSE.txt\n\n.. image:: https://img.shields.io/pypi/pyversions/pythonfinder.svg\n    :target: https://pypi.org/project/pythonfinder\n\n.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg\n    :target: https://saythanks.io/to/techalchemy\n\n.. image:: https://readthedocs.org/projects/pythonfinder/badge/?version=master\n    :target: http://pythonfinder.readthedocs.io/en/master/?badge=master\n    :alt: Documentation Status\n\nInstallation\n*************\n\nInstall from `PyPI`_:\n\n.. code-block:: console\n\n    $ pipenv install pythonfinder\n\nInstall from `Github`_:\n\n.. code-block:: console\n\n    $ pipenv install -e git+https://github.com/sarugaku/pythonfinder.git#egg=pythonfinder\n\n\n.. _PyPI: https://www.pypi.org/project/pythonfinder\n.. _Github: https://github.com/sarugaku/pythonfinder\n\n\n.. _`Usage`:\n\nUsage\n******\n\nUsing PythonFinder is easy.  Simply import it and ask for a python:\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e from pythonfinder import Finder\n    \u003e\u003e\u003e f = Finder()\n    \u003e\u003e\u003e f.find_python_version(3, minor=6)\n    PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/3.6.5/bin/python'), _children={}, is_root=False, only_python=False, py_version=PythonVersion(major=3, minor=6, patch=5, is_prerelease=False, is_postrelease=False, is_devrelease=False, version=\u003cVersion('3.6.5')\u003e, architecture='64bit', comes_from=PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/3.6.5/bin/python'), _children={}, is_root=True, only_python=False, py_version=None, pythons=None), executable=None), pythons=None)\n    \u003e\u003e\u003e f.find_python_version(2)\n    PathEntry(path=PosixPath('/home/hawk/.pyenv/shims/python2'), ...py_version=PythonVersion(major=2, minor=7, patch=15, is_prerelease=False, is_postrelease=False, is_devrelease=False, version=\u003cVersion('2.7.15')\u003e, architecture='64bit', comes_from=PathEntry(path=PosixPath('/home/hawk/.pyenv/shims/python2'), _children={}, is_root=True, only_python=False, py_version=None, pythons=None), executable=None), pythons=None)\n    \u003e\u003e\u003e f.find_python_version(\"anaconda3-5.3.0\")\n\nFind a named distribution, such as ``anaconda3-5.3.0``:\n\n.. code-block:: pycon\n\n    PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/anaconda3-5.3.0/bin/python3.7m'), _children={'/home/hawk/.pyenv/versions/anaconda3-5.3.0/bin/python3.7m': ...}, only_python=False, name='anaconda3-5.3.0', _py_version=PythonVersion(major=3, minor=7, patch=0, is_prerelease=False, is_postrelease=False, is_devrelease=False,...))\n\nPythonFinder can even find beta releases:\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e f.find_python_version(3, minor=7)\n    PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/3.7.0b1/bin/python'), _children={}, is_root=False, only_python=False, py_version=PythonVersion(major=3, minor=7, patch=0, is_prerelease=True, is_postrelease=False, is_devrelease=False, version=\u003cVersion('3.7.0b1')\u003e, architecture='64bit', comes_from=PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/3.7.0b1/bin/python'), _children={}, is_root=True, only_python=False, py_version=None, pythons=None), executable=None), pythons=None)\n\n    \u003e\u003e\u003e f.which('python')\n    PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/3.6.5/bin/python'), _children={}, is_root=False, only_python=False, py_version=PythonVersion(major=3, minor=6, patch=5, is_prerelease=False, is_postrelease=False, is_devrelease=False, version=\u003cVersion('3.6.5')\u003e, architecture='64bit', comes_from=PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/3.6.5/bin/python'), _children={}, is_root=True, only_python=False, py_version=None, pythons=None), executable=None), pythons=None)\n\n\nWindows Support\n****************\n\nPythonFinder natively supports windows via both the *PATH* environment variable and `PEP-514 \u003chttps://www.python.org/dev/peps/pep-0514/\u003e`_ compliant finder which comes by default with python 3. Usage on windows becomes:\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e from pythonfinder import Finder\n    \u003e\u003e\u003e f = Finder()\n    \u003e\u003e\u003e f.find_python_version(3, minor=6)\n    PythonVersion(major=3, minor=6, patch=4, is_prerelease=False, is_postrelease=False, is_devrelease=False, version=\u003cVersion('3.6.4')\u003e, architecture='64bit', comes_from=PathEntry(path=WindowsPath('C:/Program Files/Python36/python.exe'), _children={}, is_root=False, only_python=True, py_version=None, pythons=None), executable=WindowsPath('C:/Program Files/Python36/python.exe'))\n\n    \u003e\u003e\u003e f.find_python_version(3, minor=7, pre=True)\n    PythonVersion(major=3, minor=7, patch=0, is_prerelease=True, is_postrelease=False, is_devrelease=False, version=\u003cVersion('3.7.0b5')\u003e, architecture='64bit', comes_from=PathEntry(path=WindowsPath('C:/Program Files/Python37/python.exe'), _children={}, is_root=False, only_python=True, py_version=None, pythons=None), executable=WindowsPath('C:/Program Files/Python37/python.exe'))\n\n    \u003e\u003e\u003e f.which('python')\n    PathEntry(path=WindowsPath('C:/Python27/python.exe'), _children={}, is_root=False, only_python=False, py_version=None, pythons=None)\n\nFinding Executables\n///////////////////\n\nPythonFinder also provides **which** functionality across platforms, and it uses lazy loading and fast-returns to be performant at this task.\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e f.which('cmd')\n    PathEntry(path=WindowsPath('C:/windows/system32/cmd.exe'), _children={}, is_root=False, only_python=False, py_version=None, pythons=None)\n\n    \u003e\u003e\u003e f.which('code')\n    PathEntry(path=WindowsPath('C:/Program Files/Microsoft VS Code/bin/code'), _children={}, is_root=False, only_python=False, py_version=None, pythons=None)\n\n     \u003e\u003e\u003e f.which('vim')\n    PathEntry(path=PosixPath('/usr/bin/vim'), _children={}, is_root=False, only_python=False, py_version=None, pythons=None)\n\n    \u003e\u003e\u003e f.which('inv')\n    PathEntry(path=PosixPath('/home/hawk/.pyenv/versions/3.6.5/bin/inv'), _children={}, is_root=False, only_python=False, py_version=None, pythons=None)\n\n\nArchitecture support\n////////////////////\n\nPythonFinder supports architecture specific lookups on all platforms:\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e f.find_python_version(3, minor=6, arch=\"64\")\n    PathEntry(path=PosixPath('/usr/bin/python3'), _children={'/usr/bin/python3': ...}, only_python=False, name='python3', _py_version=PythonVersion(major=3, minor=6, patch=7, is_prerelease=False, is_postrelease=False, is_devrelease=False, is_debug=False, version=\u003cVersion('3.6.7')\u003e, architecture='64bit', comes_from=..., executable='/usr/bin/python3', name='python3'), _pythons=defaultdict(None, {}), is_root=False)\n\n\nIntegrations\n*************\n\n* `Pyenv \u003chttps://github.com/pyenv/pyenv\u003e`_\n* `ASDF \u003chttps://github.com/asdf-vm/asdf\u003e`_\n* `PEP-514 \u003chttps://www.python.org/dev/peps/pep-0514/\u003e`_\n* `Virtualenv \u003chttps://github.com/pypa/virtualenv\u003e`_\n* `Pipenv \u003chttps://pipenv.org\u003e`_\n","funding_links":["https://github.com/sponsors/techalchemy","https://github.com/sponsors/uranusjr"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarugaku%2Fpythonfinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarugaku%2Fpythonfinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarugaku%2Fpythonfinder/lists"}