frappe-core-utils

Provide timezone-aware date, number, string, and path utilities for Frappe v14-v16.

163|53|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/Frappe_Claude_Skill_Package --skill frappe-core-utils
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-core-utils
Source: https://github.com/OpenAEC-Foundation/Frappe_Claude_Skill_Package/tree/main/skills/source/core/frappe-core-utils
Command: npx skills add https://github.com/OpenAEC-Foundation/Frappe_Claude_Skill_Package --skill frappe-core-utils

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps developers safely and consistently use Frappe's utility functions for date/time, numbers, strings, validation, and file paths, avoiding timezone issues and brittle stdlib replacements across Frappe v14-v16.

Core Features & Use Cases

  • Safe date/time utilities: nowdate, now_datetime, getdate, add_days, format_date, pretty_date.
  • Numeric and money utilities: flt, cint, fmt_money, money_in_words, safe_div, rounding.
  • String and validation helpers: strip_html, validate_email_address, validate_url, to_title_case, comma_and.
  • Path and site helpers: get_files_path, get_site_path for multi-tenant file handling.

Quick Start

Use the frappe-core-utils to access timezone-aware date/time, number formatting, and string/path helpers in your Frappe apps.

Frequently Asked Questions about frappe-core-utils

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle timezone-aware date and time operations in Frappe?

Timezone-aware date and time operations in Frappe require centralized utilities like nowdate, now_datetime, and getdate to avoid inconsistencies. This provides safe date arithmetic, formatting, and pretty dates across Frappe v14-v16.

What is the best way to format currency and numbers in Frappe server scripts?

Formatting currency and numbers in Frappe server scripts is best done using flt, cint, fmt_money, and money_in_words utilities. These functions ensure consistent numeric rounding and safe division across your applications.

Does Frappe provide built-in validation helpers for emails and URLs?

Frappe provides built-in validation helpers including validate_email_address and validate_url. These string processing utilities safely strip HTML, convert to title case, and format text strings within your application logic.

How do I get the correct file path for multi-tenant sites in Frappe?

Getting the correct file path for multi-tenant sites in Frappe involves using get_files_path and get_site_path utilities. These helpers securely resolve site-specific file locations across different tenant environments.

Why should I use Frappe core utilities instead of Python standard library for dates?

Using Frappe core utilities instead of Python standard library for dates prevents brittle replacements and timezone issues. Centralized functions ensure consistent date-time handling and validation across Frappe v14-v16 environments.