Skip to main content

A package to estimate Big-O complexity of Python functions.

Project description

Big-O Estimator

This Python package allows you to estimate the Big-O complexity of Python functions using AST (Abstract Syntax Tree) parsing.

Installation

You can install the package using:

pip install .

Usage

from big_o_estimator import get_big_o_of_function

def sample_function(n):
    for i in range(n):
        pass

print(get_big_o_of_function(sample_function))

Project details


Download files

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

Source Distribution

big_o_estimator-0.1.3.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

big_o_estimator-0.1.3.2-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page