Skip To Content

DecryptPYT

Summary

Decrypt an encrypted Python toolbox file.

Syntax

DecryptPYT (toolbox, password)
ParameterExplanationData Type
toolbox

The encrypted Python toolbox that will be unencrypted.

String
password

The password used to unlock the encrypted Python toolbox.

String

Code sample

DecryptPYT example

Decrypt an encrypted Python toolbox.

import arcpy

toolbox = 'd:/tools/analysis.pyt'
password = '<your password>'

arcpy.DecryptPYT(toolbox, password)

Related topics