get_consumption_quantity method

get_consumption_quantity

Retrieves the amount of megabytes processed.

def get_consumption_quantity(cls):
    ...

Returns: consumption quantity

Example

from groupdocs.redaction import Metered

# Replace with your actual metered keys
public_key = "your_public_key"
private_key = "your_private_key"

# Apply the metered license
Metered().set_metered_key(public_key, private_key)

# Query the processed megabytes
mb_processed = Metered().get_consumption_quantity()
print(f"Processed megabytes: {mb_processed}")

See Also