Skip to main content

Load portable PIM prompt workspaces as native Python strings.

Project description

pim-workspace

pim-workspace is the framework-neutral Python SDK for the PIM Open Prompt Workspace Specification. It validates a prompt directory, loads a mapped .pim template, injects its exact {{variable}} set, and returns a native str.

from pim_workspace import PromptWorkspace

prompts = PromptWorkspace("./prompts")
system_prompt = prompts.load(
    "researcher",
    topic="prompt portability",
    context={"audience": "Python developers", "priority": 1},
)

The package has no LangChain or model-provider dependency. See the repository specification for the portable directory contract and examples for framework-neutral and LangChain usage.

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

pim_workspace-0.1.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

pim_workspace-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file pim_workspace-0.1.0.tar.gz.

File metadata

  • Download URL: pim_workspace-0.1.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pim_workspace-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e61f37c665326d396957d11caf4d1afbcbe36d690d0ba4f11c11ed013fe13603
MD5 a0df1392fc12d8f0a8d0fa3592e3a44a
BLAKE2b-256 e78e0c105604c87699be90df0f17f77177e02e2036c79d1e1465f9ac1eedb9a8

See more details on using hashes here.

File details

Details for the file pim_workspace-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pim_workspace-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pim_workspace-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d31cf7044e4f4d68b93008ce45ee79db59ee650b6a3c85eef6ea4345d1bd134e
MD5 1a09287967330277ee1dfe8d5f10683a
BLAKE2b-256 56b520e92c79043d94f9f94f7a69cca41bf64b4a08a4b68574c1d31f25e539e8

See more details on using hashes here.

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