Skip to main content
======================
python version probe
======================

A tool for detecting the Python major version for a body of source
code.

Quickstart
==========

```
from version_probe import detect_version

# Find the version used in sources files under ~/projects/ipv7
v = detect_version("~/projects/ipv7")

# something so advanced is, of course, written in Python 3
assert v == 3

v = detect_version("/opt/old_project")
assert v == 2

try:
detect_version("~/projects/experimental")
except ValueError as e:
print("Syntax error detected in the experimental project: {}".format(e))
```

Download files

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

Source Distribution

version_probe-0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file version_probe-0.1.tar.gz.

File metadata

  • Download URL: version_probe-0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for version_probe-0.1.tar.gz
Algorithm Hash digest
SHA256 72b337b5dcf9e159c136b137bf194941604666aef9284c34ad63364eb51b5827
MD5 7aa98e14744ddd35584029057f2de799
BLAKE2b-256 eea4f37f07b899c70bfe166fc59a5865089dd21a0f369137aab44e0cc92d2c72

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

1 file

Supported by

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