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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cf93076fd38a2bf7b04238c816a616d78b2b1dd744ba69ba4af57ad75a59274
|
|
| MD5 |
51d75209620c70ff72f6fe3988a1d5c0
|
|
| BLAKE2b-256 |
9622f6f1cb296459f7c461e7663c5552cd04b0dfe99097da1593e40a4c280c86
|
Provenance
The following attestation bundles were made for promptfileloader-1.0.2.tar.gz:
Publisher:
python-publish.yml on akashhkrishh/PromptFileLoader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promptfileloader-1.0.2.tar.gz -
Subject digest:
7cf93076fd38a2bf7b04238c816a616d78b2b1dd744ba69ba4af57ad75a59274 - Sigstore transparency entry: 373794812
- Sigstore integration time:
-
Permalink:
akashhkrishh/PromptFileLoader@f09ca280dac6affe2463ec132963aae4703b50c4 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/akashhkrishh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f09ca280dac6affe2463ec132963aae4703b50c4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file promptfileloader-1.0.2-py3-none-any.whl.
File metadata
- Download URL: promptfileloader-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6222f98d6259bc4ed903c9797cfec648afd68c01ba7d4eeb9be8337bc5f97fb
|
|
| MD5 |
8e517cad7254f21056dac1e7668156db
|
|
| BLAKE2b-256 |
31fde1125ea997241156b76dc987aa85d56e891e8318b1b279a69623edd032e0
|
Provenance
The following attestation bundles were made for promptfileloader-1.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on akashhkrishh/PromptFileLoader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promptfileloader-1.0.2-py3-none-any.whl -
Subject digest:
b6222f98d6259bc4ed903c9797cfec648afd68c01ba7d4eeb9be8337bc5f97fb - Sigstore transparency entry: 373794823
- Sigstore integration time:
-
Permalink:
akashhkrishh/PromptFileLoader@f09ca280dac6affe2463ec132963aae4703b50c4 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/akashhkrishh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f09ca280dac6affe2463ec132963aae4703b50c4 -
Trigger Event:
release
-
Statement type: