textprompts 1.0__tar.gz → 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: textprompts
3
- Version: 1.0
3
+ Version: 1.1.0
4
4
  Summary: Minimal text-based prompt-loader with TOML front-matter
5
5
  Keywords: prompts,toml,frontmatter,template
6
6
  Author: Jan Siml
@@ -31,7 +31,7 @@ Description-Content-Type: text/markdown
31
31
  [![License](https://img.shields.io/pypi/l/textprompts.svg)](https://github.com/svilupp/textprompts/blob/main/LICENSE)
32
32
 
33
33
 
34
- > **So simple, it's not even worth vibing about coding yet it just makes so much sense.**
34
+ > **So simple, it's not even worth vibe coding yet it just makes so much sense.**
35
35
 
36
36
  Are you tired of vendors trying to sell you fancy UIs for prompt management that just make your system more confusing and harder to debug? Isn't it nice to just have your prompts **next to your code**?
37
37
 
@@ -49,6 +49,16 @@ But then you worry: *Did my formatter change my prompt? Are those spaces at the
49
49
  - ✅ **Safe formatting** - catch missing variables before they cause problems
50
50
  - ✅ **Works with everything** - OpenAI, Anthropic, local models, function calls
51
51
 
52
+ ## Cross-Language Support
53
+
54
+ **textprompts** uses a cross-language compatible prompt template format:
55
+
56
+ - **Python** (this package): Available on PyPI as `textprompts`
57
+ - **Node/TypeScript**: Identical package available in `packages/textprompts-ts` folder
58
+ - **Julia**: Version currently in development
59
+
60
+ This means you can share prompt files across different parts of your stack without any conversion or compatibility issues.
61
+
52
62
  ## Installation
53
63
 
54
64
  ```bash
@@ -7,7 +7,7 @@
7
7
  [![License](https://img.shields.io/pypi/l/textprompts.svg)](https://github.com/svilupp/textprompts/blob/main/LICENSE)
8
8
 
9
9
 
10
- > **So simple, it's not even worth vibing about coding yet it just makes so much sense.**
10
+ > **So simple, it's not even worth vibe coding yet it just makes so much sense.**
11
11
 
12
12
  Are you tired of vendors trying to sell you fancy UIs for prompt management that just make your system more confusing and harder to debug? Isn't it nice to just have your prompts **next to your code**?
13
13
 
@@ -25,6 +25,16 @@ But then you worry: *Did my formatter change my prompt? Are those spaces at the
25
25
  - ✅ **Safe formatting** - catch missing variables before they cause problems
26
26
  - ✅ **Works with everything** - OpenAI, Anthropic, local models, function calls
27
27
 
28
+ ## Cross-Language Support
29
+
30
+ **textprompts** uses a cross-language compatible prompt template format:
31
+
32
+ - **Python** (this package): Available on PyPI as `textprompts`
33
+ - **Node/TypeScript**: Identical package available in `packages/textprompts-ts` folder
34
+ - **Julia**: Version currently in development
35
+
36
+ This means you can share prompt files across different parts of your stack without any conversion or compatibility issues.
37
+
28
38
  ## Installation
29
39
 
30
40
  ```bash
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "textprompts"
3
- version = "1.0"
3
+ version = "1.1.0"
4
4
  description = "Minimal text-based prompt-loader with TOML front-matter"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -21,7 +21,7 @@ def main() -> None:
21
21
  if args.json:
22
22
  print(json.dumps(prompt.meta.model_dump() if prompt.meta else {}, indent=2))
23
23
  else:
24
- print(prompt.body)
24
+ print(prompt.prompt)
25
25
  except TextPromptsError as e:
26
26
  print(f"Error: {e}", file=sys.stderr)
27
27
  sys.exit(1)
@@ -50,17 +50,6 @@ class Prompt(BaseModel):
50
50
  def __str__(self) -> str:
51
51
  return str(self.prompt)
52
52
 
53
- @property
54
- def body(self) -> PromptString:
55
- import warnings
56
-
57
- warnings.warn(
58
- "Prompt.body is deprecated; use .prompt instead",
59
- DeprecationWarning,
60
- stacklevel=2,
61
- )
62
- return self.prompt
63
-
64
53
  def __len__(self) -> int:
65
54
  return len(self.prompt)
66
55