Skip to content

0.5.0

Latest
Compare
Choose a tag to compare
@rohaquinlop rohaquinlop released this 28 Oct 22:15

🐙 Now you can use complexipy from your python code!

@andrewdea added this feature, now it's possible to call complexipy from your python code.

Here is an example:

>>> from complexipy import file_complexity
>>> fc = file_complexity("path/to/file.py")
>>> fc.complexity
1

Evaluate code snippet

>>> from complexipy import code_complexity
>>> snippet = """for x in range(0, 10):
    print(x)
"""
>>> cc = code_complexity(snippet)
cc.complexity
1

What's Changed

New Contributors

Full Changelog: 0.4.0...0.5.0