ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

GetPackageInfo

  • Summary
  • Syntax
  • Code sample

Summary

The GetPackageInfo function returns a dictionary of package information.

Syntax

GetPackageInfo (input_package)
ParameterExplanationData Type
input_package

The path to the package file.

String

Return Value

Data TypeExplanation
Dictionary

Returns a dictionary of key-value pairs.

KeysValues

credits

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

Description of the package.

name

Name of the package.

summary

Summary of package.

tags

Tags used to describe and identify the package.

type

The package type: Layer Package, Map Package, Geoprocessing Package, Map Tile Package, Address Locator Package, or Project Package.

version

The package version.

The GetPackageInfo dictionary object keys:

Code sample

Returns information about a package.

import arcpy
import pprint

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

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal