pages function returns only the first page of packages
api = GhApi(token=gh_token)
pack_pages = pages(api.packages.list_packages_for_organization, 5, org="my_org", package_type="npm")
for page in pack_pages:
for item in page:
print(item['name'])
this code will print name of the packages from the first page only
pages function returns only the first page of packages
this code will print name of the packages from the first page only