Skip to main content

README

What is this repository for?

  • A collection of (mostly) arcpy related utilities for use within ArcGIS Pro (Python 3). Shortcuts for accessing elements of a map document, performing various data discovery tasks on a table or geodatabase

How do I get set up?

Install from PyPI:

pip install arc-utils

For local development and editable usage from clone:

python -m pip install -e .

To use the utilities:

  • in the python window in ArcGIS Pro

import arc_utils as au

  • typing au. will now reveal the modules and functions available to you if you have autocomplete on

  • Depends on arcpy (only available with Esri license)

Example usage

import arc_utils as au

tbl = au.table.TableObj(path to featureclass)

list all fields

print(tbl.fields)

pro_doc = au.aprx.AprxObj(“CURRENT”)

pro_doc.maps >> [<arcpy._mp.Map object at 0x000001A4AECBF108>, <arcpy._mp.Map object at 0x000001A4AEBB6608>]

pro_doc.maps[0].name >> ‘Map’

Accepted Input Types

Most path parameters now accept:

  • string path
  • pathlib.Path / other path-like objects
  • wrapper objects with .path
  • ArcGIS layer/table objects with .catalogPath or .dataSource (where applicable)

Invalid paths raise ValueError("invalid path").

Constructor acceptance is preserved (for example, passing path-like and wrapper objects directly to TableObj, GDBObj, and AprxObj).

Exporting field values to Excel

import arc_utils as au
from openpyxl import Workbook

# Single table export with class method
tbl = au.table.TableObj(r"C:\path\to\featureclass")
wb = Workbook()
ws = wb.active
tbl.export_fields_to_worksheet(ws)
wb.save(r"C:\path\to\schema_values.xlsx")
# Multi-layer export with module function
layers = [r"C:\path\to\layer1", r"C:\path\to\layer2"]
au.table.export_field_sets(layers, r"C:\path\to\all_layers.xlsx")
# Worksheet naming behavior:
# use_lyr_alias=True -> prefer alias/name (human-readable)
# use_lyr_alias=False -> use full table path (traceable)
au.table.export_field_sets(layers, r"C:\path\to\all_layers.xlsx", use_lyr_alias=True)
au.table.export_field_sets(layers, r"C:\path\to\all_layers_by_path.xlsx", use_lyr_alias=False)
# Duplicate detection outputs
tbl = au.table.TableObj(r"C:\path\to\featureclass")
dup_values = tbl.find_duplicate_field_values("STATUS", output="set")
dup_rows_df = tbl.find_duplicate_field_values(["STATUS", "TYPE"], output="df")

Contribution guidelines

Contributions welcomed, this is a starting point for various utilities that I think could be useful within ArcGIS Pro.

Metadata

Release files for arc-utils 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arc-utils 1.5.0
File Size Uploaded Provenance Actions
arc_utils-1.5.0.tar.gz 21.6 kB With provenance Details for arc_utils-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arc-utils 1.5.0
File Interpreter ABI Platform Actions
arc_utils-1.5.0-py3-none-any.whl Python 3 none any Details for arc_utils-1.5.0-py3-none-any.whl

Total release size: 46.2 kB

Release files / arc_utils-1.5.0.tar.gz

Download URL arc_utils-1.5.0.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28e5c683029509075747916fee82d3b75d69bd9e669052010246ad95a729c5de
BLAKE2b-256 checksum
How to use checksums
a759f12f5deebdf085ebe10e7c6862da27c9e167ed8b6a3ff2755d721717be84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / arc_utils-1.5.0-py3-none-any.whl

Download URL arc_utils-1.5.0-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
666c6248a0056f52da2679b679075747ae768e3782998fb1dee23a062c4fcbe8
BLAKE2b-256 checksum
How to use checksums
2c715cc0803b639c41623c79ea17525e0440992d4f46d78dc9243236ed2c50b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for arc-utils 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for arc_utils-1.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page