🐙 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
- Expose library commands by @andrewdea in #45
- document library-usage in README by @andrewdea in #49
- feat(CI): #50 fix CI workflow by @rohaquinlop in #51
- feat(build): #52 improve usability of the package by @rohaquinlop in #53
- feat(docs): #52 update documentation by @rohaquinlop in #54
New Contributors
- @andrewdea made their first contribution in #45
Full Changelog: 0.4.0...0.5.0