github rohaquinlop/complexipy 0.5.0

latest releases: 4.0.2, 4.0.1, 4.0.0...
10 months ago

🐙 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

Don't miss a new complexipy release

NewReleases is sending notifications on new releases.