/arcapi

Convenient API for arcpy

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

arcapi

Wrapper functions, helper functions, and aliases that make ArcGIS Python scripting easier.

How to use?

import arcapi as ap
ap.version()

Installation

Download this repository, put its contents somewhere into python path, then:

import arcapi as ap

If you do not want to put it into your python path, then:

arcapipath = "c:\\path\\to\directory\\contating_arcapi_py"
import sys
sys.path.insert(0, arapipath)
import arcapi as ap

Resources

  • Read tutorial to get a glimpse of what arcapi is about.
  • Each function in arcapi has a decent docstring.
  • Read the header of arcapi.py.
  • List all functions and their documentation: help(arcapi)

Dependencies

ArcGIS for Desktop/Server with Python and ArcPy site package. Tested and developed on ArcGIS for Desktop 10.1 SP1.

Tests

Tests for arcapi.py are in arapi_tests.py, testing data in ./testing folder. Everybody is encouraged to write more and better tests.

Issues

Feel free to submit issues and enhancement requests.

Contributing

We welcome contributions from anyone and everyone. If you feel you have made significant contribution anywhere in arcapi files, please add yourself to the authors at the top of arcapi.

License

LGPL v3