Skip to main content

A simple prompt loader supporting YAML and TXT files with caching

Project description

PromptFileLoader

A simple and efficient Python package to load prompt files in YAML or TXT format with built-in caching.


Overview

PromptFileLoader helps you easy to load prompt files for your applications, supporting both:

  • YAML files (.yaml, .yml) parsed into Python dictionaries or lists, and
  • Plain text files (.txt) loaded as strings.

It caches loaded files internally for faster repeated access without redundant disk reads.


Features

  • Supports YAML and TXT prompt files
  • Caching to optimize file loading performance
  • Easy to initialize with a custom prompts directory or default folder
  • Minimal dependencies (only requires PyYAML)
  • Clear error handling for missing files or unsupported extensions

Installation

Install via pip:

pip install promptfileloader

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptfileloader-1.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptfileloader-1.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file promptfileloader-1.0.2.tar.gz.

File metadata

  • Download URL: promptfileloader-1.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for promptfileloader-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7cf93076fd38a2bf7b04238c816a616d78b2b1dd744ba69ba4af57ad75a59274
MD5 51d75209620c70ff72f6fe3988a1d5c0
BLAKE2b-256 9622f6f1cb296459f7c461e7663c5552cd04b0dfe99097da1593e40a4c280c86

See more details on using hashes here.

Provenance

The following attestation bundles were made for promptfileloader-1.0.2.tar.gz:

Publisher: python-publish.yml on akashhkrishh/PromptFileLoader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file promptfileloader-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for promptfileloader-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6222f98d6259bc4ed903c9797cfec648afd68c01ba7d4eeb9be8337bc5f97fb
MD5 8e517cad7254f21056dac1e7668156db
BLAKE2b-256 31fde1125ea997241156b76dc987aa85d56e891e8318b1b279a69623edd032e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for promptfileloader-1.0.2-py3-none-any.whl:

Publisher: python-publish.yml on akashhkrishh/PromptFileLoader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page