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 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'
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') "C:\\Program\\\\ Files\\Python36\\python.exe" >>> PythonFinder.from_version('2.7') "C:\\Python27\\python.exe" >>> PythonFinder.from_line('py -3') "C:\\Program\\\\ Files\\Python36\\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
Built Distribution
File details
Details for the file pythonfinder-0.0.1.dev0.tar.gz
.
File metadata
- Download URL: pythonfinder-0.0.1.dev0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f4c8a34d6130b145c594c968564a1092a3d6cf0ec4d501d83331ed0121ae261 |
|
MD5 | 08d28c5189cea2ed5de6019209666ef4 |
|
BLAKE2b-256 | 02270521a4723a13229d9451070c469292a1f6f18623031d9a3cf5f889c44bb7 |
Provenance
File details
Details for the file pythonfinder-0.0.1.dev0-py2.py3-none-any.whl
.
File metadata
- Download URL: pythonfinder-0.0.1.dev0-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cefd5b702c936bc9c0d551b64aaf1a00d4b43d3e2325f8a4f64c8cd95e6e1f77 |
|
MD5 | 8dde03d56fc7d8a42fb0225acebe6fe8 |
|
BLAKE2b-256 | a9d8ab2d4df43a14174fddc9c84838b086cd889c2abbbc13960754d1bf885503 |