giza

Summary

This is a Python demo for the Sphinx tutorial.

This demo has an implementation of a Python script called giza which calculates the square of a given number.

giza.calc_square(number, verbosity)

Calculate the square of a given number.

Parameters:
  • number – An integer number.
  • verbosity – An integer value for output verbosity.
Returns:

The square of number.

giza.main()

A small wrapper that is used for running as a CLI Script.

Examples:

$ giza 2
> 4

$ giza -v 3
> 3^2 == 9

$ giza -vv 4
> the square of 4 equals 16