frappe-core-utils

Provide date/time, string validation, and file path utilities for Frappe.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/nathanabay/epc_bespo --skill frappe-core-utils-nathanabay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-core-utils
Source: https://github.com/nathanabay/epc_bespo/tree/main/skills-frappe/core/frappe-core-utils
Command: npx skills add https://github.com/nathanabay/epc_bespo --skill frappe-core-utils-nathanabay

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive collection of utility functions to streamline date, time, string, validation, and file operations within Frappe environments, reducing repetitive code and boosting productivity.

Core Features & Use Cases

  • Functionality Coverage: Offers functions for date parsing, formatting, addition, difference calculations, and timezone conversions.
  • Use Case: Developers managing multi-tenant apps can easily handle timezone-aware date manipulations or format dates per user preferences.
  • Robust Utilities: Includes validation, HTML processing, and safe JSON parsing, enabling reliable and secure workflows.
  • Technical Scope: Implements helper functions that respect timezone, locale, and multi-tenancy configurations, replacing unsafe standard library calls.

Quick Start

Use the frappe-core-utils skill to get the current system date and format it according to user preferences.

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 processing in Frappe?

To handle timezone-aware date processing in Frappe, use utility functions that respect system timezone and locale configurations. These functions replace unsafe standard library calls to ensure safe date manipulations formatted per user preferences in multi-tenant apps.

What is the best way to validate strings and safely parse JSON in a Frappe app?

The best way to validate strings and safely parse JSON in Frappe is using built-in core utility functions. These provide robust validation, HTML processing, and safe JSON parsing to enable reliable and secure enterprise workflows.

Does this Frappe utility collection support file path management?

Yes, this Frappe utility collection supports file path management. It provides core utility functions specifically designed to streamline file operations and path handling within Frappe v14 through v16 environments.

How do I format dates according to user preferences in Frappe v14-v16?

You format dates according to user preferences in Frappe v14-v16 by applying the provided date formatting utilities. These functions parse and format dates based on individual user locale settings within multi-tenant applications.

Can I use these utility functions for multi-tenant timezone conversions?

Yes, you can use these utility functions for multi-tenant timezone conversions. They are explicitly implemented to respect multi-tenancy configurations, ensuring timezone-aware date calculations and locale-sensitive code across isolated tenants.

Why should I use core utility functions instead of standard library calls for date calculations in Frappe?

You should use core utility functions instead of standard library calls for date calculations in Frappe to avoid unsafe operations. These utilities provide timezone-aware addition and difference calculations that respect enterprise multi-tenancy and locale configurations.