textprompts 1.0__py3-none-any.whl → 1.1.0__py3-none-any.whl

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.
textprompts/cli.py CHANGED
@@ -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)
textprompts/models.py CHANGED
@@ -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
 
@@ -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
@@ -1,17 +1,17 @@
1
1
  textprompts/__init__.py,sha256=f17693e986f73978dc6ebecd683d3e812bc66b0f0691326957f6ea5e54fe7a87,831
2
2
  textprompts/__main__.py,sha256=aee028e84759ad217eee72d3c3d7460ba1d46a25186d02b71c85078541db7f81,282
3
3
  textprompts/_parser.py,sha256=c6f9b91ff06f6157003c5b7ab128bc352d81ea6bd4d63fde43287d682176e79c,5969
4
- textprompts/cli.py,sha256=8db7c429a182be9e8e69e11907fba3ee4465e391c580a96e25ee6ae566296ac0,855
4
+ textprompts/cli.py,sha256=72364727e2a660a9ca4d8c9144015dd2ac7eb7a34380441f2beb5260343fff14,857
5
5
  textprompts/config.py,sha256=445a439432cf25141bbaa199cef67ceabed8a6505c6169b6e386f3ad87efb17b,3530
6
6
  textprompts/errors.py,sha256=7eda4a1bdf4ee8a50b420886d2016a52923baa05a5b5a65d6f582e3e500290d2,354
7
7
  textprompts/loaders.py,sha256=f6ddb9b6ea3f35d358f7d03e94e1aa781887e2d122f0b31345818ee458364083,4199
8
- textprompts/models.py,sha256=61dfcf233c3887a7573f19402ab2af7b00b287127eeb1e0b29e69814007a4ddb,2354
8
+ textprompts/models.py,sha256=69697721e3f14a3fb65b924b8ad8a46f44fe51446343169bc5662759920c2d77,2098
9
9
  textprompts/placeholder_utils.py,sha256=a6df51ea0e7474a68a4f036fce0f647069be1395f1980db57decec7e01246772,4476
10
10
  textprompts/prompt_string.py,sha256=4b7fefaca6c0c0a7edf67ae0213f77d32d21ff4735d458cd03c9f9bc885b804f,2156
11
11
  textprompts/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
12
12
  textprompts/safe_string.py,sha256=5bed8e93d404133591a9cc9d2f3260efe07de6030553d247edf3fceae025a198,195
13
13
  textprompts/savers.py,sha256=0a46c5d2a1ffb24398e6380db3a090058c4bdd13369510ad2ee8506d143c47a1,2040
14
- textprompts-1.0.dist-info/WHEEL,sha256=ab6157bc637547491fb4567cd7ddf26b04d63382916ca16c29a5c8e94c9c9ef7,79
15
- textprompts-1.0.dist-info/entry_points.txt,sha256=f8f14b032092a81e77431911104853b39293c983c9390aa11fe023e8bcd5c049,54
16
- textprompts-1.0.dist-info/METADATA,sha256=284d8fb09290578c4cb36ca8abc2e551cb2c8f0e6c227d8b677971f07f4c2854,15620
17
- textprompts-1.0.dist-info/RECORD,,
14
+ textprompts-1.1.0.dist-info/WHEEL,sha256=ab6157bc637547491fb4567cd7ddf26b04d63382916ca16c29a5c8e94c9c9ef7,79
15
+ textprompts-1.1.0.dist-info/entry_points.txt,sha256=f8f14b032092a81e77431911104853b39293c983c9390aa11fe023e8bcd5c049,54
16
+ textprompts-1.1.0.dist-info/METADATA,sha256=1ccb20bb0cd564e17cbede31304c0c42dbf7d085d8d7dc0bf6d6b5b8a3bec12a,16037
17
+ textprompts-1.1.0.dist-info/RECORD,,