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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| version_probe-0.1.tar.gz | 2.1 kB | Without provenance | Details for version_probe-0.1.tar.gz |
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 |
Security for version_probe 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.