Pyflation is a Python package for calculating cosmological perturbations during inflationary expansion of the universe.