To create custom processing you can create a Python Toolbox and script. This video shows how to create a toolbox with a run through of example python code.
Interested in becoming an ArcGIS Pro Python power user? I’m building a practical ArcGIS Pro Python course, including AI-assisted workflows and automation. Join the waitlist for early details and access.
https://spatialmonkey.crd.co/