Skip to main content

A cross-platform python discovery tool to help locate python on any system.

Project description

Installation

Install from PyPI:

$ pipenv install --pre pythonfinder

Install from Github:

$ pipenv install -e git+https://github.com/techalchemy/pythonfinder.git#egg=pythonfinder

Usage

Using PythonFinder is easy. Simply import it and ask for a python:

>>> from pythonfinder.pythonfinder import PythonFinder
>>> PythonFinder.from_line('python3')
'/home/techalchemy/.pyenv/versions/3.6.5/python3'

>>> PythonFinder.from_version('2.7')
'/home/techalchemy/.pyenv/versions/2.7.14/python'

PythonFinder can even find beta releases!

>>> PythonFinder.from_version('3.7')
'/home/techalchemy/.pyenv/versions/3.7.0b1/bin/python'

Windows Support

PythonFinder natively supports windows via both the PATH environment variable and PEP-514 compliant finder which comes by default with python 3. Usage on windows becomes:

>>> PythonFinder.from_line('python')
WindowsPath('C:/Program Files/Python36/python.exe')

>>> PythonFinder.from_version('2.7')
WindowsPath('C:/Python27/python.exe')

>>> PythonFinder.from_version('3.6')
WindowsPath('C:/Program Files/Python36/python.exe')

>>> PythonFinder.from_line('py -3')
WindowsPath('C:/Program Files/Python36/python.exe')

Integrations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonfinder-0.0.4.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonfinder-0.0.4-py2.py3-none-any.whl (11.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pythonfinder-0.0.4.tar.gz.

File metadata

  • Download URL: pythonfinder-0.0.4.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pythonfinder-0.0.4.tar.gz
Algorithm Hash digest
SHA256 222e6deac107fb79cdaa132c84d83e1bc2f0e8d835de96fca5660b183d0ab5da
MD5 8664f7900ea19eefdff660e6f86ad5c7
BLAKE2b-256 e13037e69cb0df897e50d6856da949e61c4317df5a9e7cc5d25bc43aa50451f1

See more details on using hashes here.

File details

Details for the file pythonfinder-0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pythonfinder-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2984c1f334b8bf754df1fee92ced52f346895cc76df4d7b765bf7772614515c7
MD5 0e2012d44d4e9453c5318a7c60bfcafb
BLAKE2b-256 ba84f2677968e3bf9377c2c45bf1781874b1d44680ea65ca1e30479fd4e658e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page