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')
Architecture support
PythonFinder supports architecture specific lookups on Windows:
>>> PythonFinder.from_version('2.7', architecture='64bit') WindowsPath('C:/Python27/python.exe')
Integrations
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(10.5 kB
view details)
Built Distribution
File details
Details for the file pythonfinder-0.0.5.tar.gz
.
File metadata
- Download URL: pythonfinder-0.0.5.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46a7790e130f8aa970ed85b38ddc1a06b94cfdb452c42ee347af16088af4b1e |
|
MD5 | 5f7e8679a66dcd81b573398ad972aad4 |
|
BLAKE2b-256 | 08719def7b0a4dc2042279b1789be24ff5a208aea2b07e64164a0ad3259e5bd6 |
Provenance
File details
Details for the file pythonfinder-0.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: pythonfinder-0.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a72f0fa2068c62e3a7cc3019663f1352813d80c796d52e59ef05297eec68ca |
|
MD5 | 334176604696283c37c49ca78c570cdf |
|
BLAKE2b-256 | 8615a1238a09b9a3a8a418c5182060333a0d44cca3707d91964f052132e60077 |