A module that provides a wrapper class to manipulate arcpy
feature classes in a more pythonic way. Uses the Sequence
abstract base class to give list-like behavior to feature class objects.
- ArcGIS Pro 3.4
- Windows 11
- In the Python Command Prompt:
python -m pip install ouroboros-arcpy
import ouroboros as ob
fc = ob.FeatureClass(r"C:\Users\zoot\spam.gdb\eggs_polygons", in_memory=True) # cache in memory for better performance
for row in fc:
print(row)
- See
notebooks/example.ipynb
, best used in ArcGIS Pro
cmd /k "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\proenv.bat"
git clone https://github.com/corbel-spatial/ouroboros
cd ouroboros
conda env create -f environment.yml
proswap arcgispro-py3-ob
python -m pip install -r requirements.txt