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

Embedding scripts and password protecting tools

You can embed (store) your Python scripts directly in a toolbox. When your script tool is then executed, it uses the Python code stored in the toolbox. This can save the trouble of having to manage and share additional multiple files.

In addition, both script and model tools can be password protected. Password protecting your script and model tools is valuable when sharing your toolbox and you want to protect your work and ideas. However, this isn't recommended when creating a local toolbox that you will use personally. When creating tools that will be shared later, it is best to store a copy of all your base materials (toolboxes and Python files) locally for safekeeping without any password protection.

To import a script

  1. Right-click the tool and click Import Script.
  2. On the Import Script dialog box, click OK.

To password protect a script or model tool

Note:

Since password protecting a script tool only protects the Python source code, the script must be embedded first.

  1. Right-click the tool and pick Set Password.
  2. On the Set Password dialog box, enter a value for New Password and the same value again for Confirm New Password, then click OK.

Once a tool is password protected, several options, including Edit, Debug, and Export Script, will prompt for a password before continuing.

Related topics

  • A quick tour of creating tools with Python

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