def get_package_names(pyproject):
    """
    Get package names

    :param dict pyproject: pyproject.toml body.
    :return: Package names
    :rtype: list

    """
    package_names = []
    for pkg in pyproject["package"]:
        if pkg["category"] == "main":
            package_names.append(pkg["name"])
    return package_names