.PYT File Extension

Python Toolbox

Developer ESRI
Popularity
2.0  |  1 Vote
Category GIS Files
Format Text

What is a PYT file?

A PYT file is a Python toolbox created by ESRI ArcGIS. It contains geoprocessing tools written as Python code. Geoanalysts and other ArcGIS users use PYT files to perform GIS operations while reviewing maps and other data in ArcGIS.

More Information
Screenshot of a .pyt file in Microsoft Visual Studio Code
PYT file open in Microsoft Visual Studio Code

ESRI ArcGIS is a mapping and geoanalysis application that allows users to import, edit, annotate, analyze, and otherwise manipulate geographic data. To help them manipulate data, ArcGIS users can access and create toolboxes that contain a collection of related GIS tools. Advanced users can code their own toolboxes and custom tools using the Python programming language. These toolboxes are saved as PYT files.

How to create a PYT file in ArcGIS

To create a new PYT file in ArcGIS:

  1. In the Catalog pane, select Toolboxes.
  2. Select New Python Toolbox.
  3. Name and save your PYT file.

Each PYT file is created from the same template, which uses the Toolbox and Tool classes to define the toolbox's name and included tools. Users can add any number of tools to their PYT file, by adding additional instances of the Tool class.

How to open a PYT file

You can open and edit a PYT file in any text or source code editor. Source code editors, such as Microsoft Visual Studio Code, GitHub Atom, and JetBrains PyCharm, contain helpful syntax-highlighting and code-editing tools that make reviewing and editing PYT files easier.

To import a PYT file into ESRI ArcGIS, create a new Python toolbox in ArcGIS (using the instructions above). Then, copy your PYT file's content into your new Python toolbox and save that toolbox.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open PYT files

Updated March 24, 2022

Verified by FileInfo.com

The FileInfo.com team has independently researched the Python Toolbox file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.