GetPackageInfo

Summary

Returns a dictionary that contains information about a package file.

Syntax

GetPackageInfo (input_package)
ParameterExplanationData Type
input_package

The path to the package file.

String
Return Value
Data TypeExplanation
Dictionary

A dictionary containing the properties of the package file.

The dictionary keys are as follows:

KeysValues

credits

The credits for the package. This is generally the name of the organization that is given credit for authoring and providing the content for the package.

description

The description of the package.

name

The name of the package.

summary

The summary of package.

tags

The tags used to describe and identify the package.

type

The package type.

  • Geoprocessing Package—The package is a geoprocessing package (.gpkx).
  • Layer Package—The package is a layer package (.lpkx).
  • Locator Package—The package is a locator package (.gcpk).
  • Map Package—The package is a map package (.mpkx).
  • Mobile Map Package—The package is a mobile map package (.mmpk).
  • Mobile Scene Package—The package is a mobile scene package (.mspk).
  • Project Package—The package is a project package (.ppkx).
  • Vector Tile Package —The package is a vector tile package (.vtpk).

version

The package version.

Code sample

GetPackageInfo example

Returns information about a package.

import arcpy
import pprint

pprint.pprint(arcpy.GetPackageInfo("c:/packages/maps/Leith.mpkx"))

In this topic