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.
======
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
vermin-0.2.2-py2.py3-none-any.whl
(12.8 kB
view hashes)
Close
Hashes for vermin-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9127e349a2534f79c5a0c7ac5f2a61caa8aa339eb6f416c50f6669db04b881b9 |
|
MD5 | d10bc6a57bf597528b73dbb187991eba |
|
BLAKE2b-256 | ba4075747303731b1447ea8b84691af2e0fe254b2e350ffdfdaa38b1c01a9791 |