Skip to main content

Concurrently detect the minimum Python versions needed to run code

Project description

Vermin
======

Concurrently detect the minimum Python versions needed to run code.

Since the code is vanilla Python, and it doesn't have any external dependencies, it works with v2.7+
and v3+.

It functions by parsing Python code into an abstract syntax tree (AST), which it traverses and
matches against internal dictionaries with 222 rules divided into 47 modules, 146
classes/functions/constants members of modules, 26 kwargs of functions, and 4 strftime
directives. Including looking for v2/v3 print expr and print(expr), long, f-strings,
"..".format(..), imports (import X, from X import Y, from X import *), function calls wrt. name and
kwargs, and strftime+strptime directives used.


Project details


Download files

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

Files for vermin, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size vermin-0.2.2-py2.py3-none-any.whl (12.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page