Metadata-Version: 2.4
Name: arc-utils
Version: 1.2.1
Summary: Python utilities for use with Esri ArcGIS Pro software
Author-email: Grant Herbert <gdherbert@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/gdherbert/arc_utils
Project-URL: Download, https://github.com/gdherbert/arc_utils/tree/1.2
Keywords: esri,arcpy,arcgis
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: license-file

# 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? ###

* To install the utilities: 
* ``pip install arc_utils``
* Clone the repo to your machine and add the path to the python install https://docs.python.org/2/tutorial/modules.html#the-module-search-path
* Optionally, you can copy the folder to the site-packages in the ESRI python install directory, or add a .pth file to the site-packages folder pointing to the clone directory.

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’

### Contribution guidelines ###

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