Skip to main content

Dephell Pythons

travis appveyor MIT License

Work with python versions.

Installation

Install from PyPI:

python3 -m pip install --user dephell_pythons

Usage

from dephell_pythons import Pythons

pythons = Pythons()

# get current:
python = pythons.get_best()

# properties:
python.name     # 'python3.7'
python.path     # Path('/usr/local/bin/python3.7')
python.version  # <Version('3.7.0')>

python.lib_paths
# [Path('/usr/local/lib/python37.zip'), Path('/usr/local/lib/python3.7'), ...]

python.lib_path
# Path('/home/gram/.local/lib/python3.7/site-packages')

# get by version
pythons.get_best('3.5').version
# <Version('3.5.2')>

# get by name
pythons.get_best('python3').version
# <Version('3.6.7')>

# get by specifier
pythons.get_best('<3.7').version
# <Version('3.6.7')>

# get by path
pythons.get_best('/usr/bin/python3.6').version
# <Version('3.6.7')>

# get all
list(pythons)
# [Python(...), Python(...), ...]

# work not only with installed pythons:
Pythons(abstract=True).get_best('>=2.8,<3.5').version
# <Version('3.4')>

Release files for dephell-pythons 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dephell-pythons 0.1.15
File Size Uploaded
dephell_pythons-0.1.15.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dephell-pythons 0.1.15
File Interpreter ABI Platform
dephell_pythons-0.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 25.7 kB

Release files / dephell_pythons-0.1.15.tar.gz

Download URL dephell_pythons-0.1.15.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
804c29afa2147322aa23e791f591d0204fd1e9983afa7d91e1d1452fc7be1c5c
BLAKE2b-256 checksum
How to use checksums
6dfad0a59abf5b4b30445efb13ea3168a0f2b0371f156adcc17d80bacceb9c10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via DepHell/0.8.3

Release files / dephell_pythons-0.1.15-py3-none-any.whl

Download URL dephell_pythons-0.1.15-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03132d083d0369683b87d03767dc0f0f88b8d92d5cf19cfdb36d8845b70ecdb2
BLAKE2b-256 checksum
How to use checksums
d9bad48125f7c0885d3c37773085b91383bac797b223c33283663f1aed07c5c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via DepHell/0.8.3

Release history Release notifications | RSS feed

This release

0.1.15 This release

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page