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'
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') "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
pythonfinder-0.0.1.dev2.tar.gz
(10.0 kB
view details)
Built Distribution
File details
Details for the file pythonfinder-0.0.1.dev2.tar.gz
.
File metadata
- Download URL: pythonfinder-0.0.1.dev2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc54c8c096078ce96b7f09f6fc3787f7280faab88b1138cafaaf844ea0e4ffaf |
|
MD5 | 644b683c5bef9087704877a485a24289 |
|
BLAKE2b-256 | e90cc756b2c7e790770720c69856f407ae2db4fcfa4128be8cd56687e59c8e1c |
Provenance
File details
Details for the file pythonfinder-0.0.1.dev2-py2.py3-none-any.whl
.
File metadata
- Download URL: pythonfinder-0.0.1.dev2-py2.py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94cfd9c8b385b7448df86acf1440c0ae5c9812f59ff6a41931ff901bf18fa6be |
|
MD5 | a552b4741b7ca2e9afcbbd9ce74fb1b1 |
|
BLAKE2b-256 | 1442863ee59260b3aceed6df9f2fb93424d6c35e9c8733c6dac39e1e041c1a2a |