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))
```

Metadata

Release files for version_probe 0.1

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

Source distribution (sdist)

Source distribution for version_probe 0.1
File Size Uploaded
version_probe-0.1.tar.gz 2.1 kB Details

Release files / version_probe-0.1.tar.gz

Download URL version_probe-0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72b337b5dcf9e159c136b137bf194941604666aef9284c34ad63364eb51b5827
BLAKE2b-256 checksum
How to use checksums
eea4f37f07b899c70bfe166fc59a5865089dd21a0f369137aab44e0cc92d2c72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

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