erpnext-syntax-whitelisted

Installation
SKILL.md

ERPNext Syntax: Whitelisted Methods

Whitelisted Methods expose Python functions as REST API endpoints.

Quick Reference

Basic Whitelisted Method

import frappe

@frappe.whitelist()
def get_customer_summary(customer):
    """Basic API endpoint - authenticated users only."""
    if not frappe.has_permission("Customer", "read"):
        frappe.throw(_("Not permitted"), frappe.PermissionError)
    
    return frappe.get_doc("Customer", customer).as_dict()
Installs
44
GitHub Stars
175
First Seen
Feb 5, 2026
erpnext-syntax-whitelisted — impertio-studio/frappe_claude_skill_package