ostruct-cli 0.1.0__py3-none-any.whl → 0.1.4__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.
ostruct/__init__.py CHANGED
@@ -0,0 +1,10 @@
1
+ """ostruct-cli package."""
2
+
3
+ from importlib.metadata import version
4
+
5
+ try:
6
+ __version__ = version("ostruct-cli")
7
+ except Exception:
8
+ __version__ = "unknown"
9
+
10
+ __all__ = ["__version__"]
ostruct/cli/cli.py CHANGED
@@ -12,7 +12,6 @@ if sys.version_info >= (3, 11):
12
12
  from enum import StrEnum
13
13
 
14
14
  from datetime import date, datetime, time
15
- from importlib.metadata import version
16
15
  from pathlib import Path
17
16
  from typing import (
18
17
  Any,
@@ -72,6 +71,7 @@ from pydantic.functional_validators import BeforeValidator
72
71
  from pydantic.types import constr
73
72
  from typing_extensions import TypeAlias
74
73
 
74
+ from .. import __version__
75
75
  from .errors import (
76
76
  DirectoryNotFoundError,
77
77
  FieldDefinitionError,
@@ -94,6 +94,9 @@ from .security import SecurityManager
94
94
  from .template_env import create_jinja_env
95
95
  from .template_utils import SystemPromptError, render_template
96
96
 
97
+ # Constants
98
+ DEFAULT_SYSTEM_PROMPT = "You are a helpful assistant."
99
+
97
100
  # Set up logging
98
101
  logger = logging.getLogger(__name__)
99
102
 
@@ -128,15 +131,6 @@ ostruct_file_handler.setFormatter(
128
131
  )
129
132
  logger.addHandler(ostruct_file_handler)
130
133
 
131
- # Constants
132
- DEFAULT_SYSTEM_PROMPT = "You are a helpful assistant."
133
-
134
- # Get package version
135
- try:
136
- __version__ = version("openai-structured")
137
- except Exception:
138
- __version__ = "unknown"
139
-
140
134
 
141
135
  class ExitCode(IntEnum):
142
136
  """Exit codes for the CLI following standard Unix conventions.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ostruct-cli
3
- Version: 0.1.0
3
+ Version: 0.1.4
4
4
  Summary: CLI for OpenAI Structured Output
5
5
  Author: Yaniv Golan
6
6
  Author-email: yaniv@golan.name
@@ -19,6 +19,7 @@ Requires-Dist: openai-structured (>=1.0.0,<2.0.0)
19
19
  Requires-Dist: pydantic (>=2.6.3,<3.0.0)
20
20
  Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
21
21
  Requires-Dist: tiktoken (>=0.6.0,<0.7.0)
22
+ Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
22
23
  Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
23
24
  Description-Content-Type: text/markdown
24
25
 
@@ -1,7 +1,7 @@
1
- ostruct/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1
+ ostruct/__init__.py,sha256=X6zo6V7ZNMv731Wi388aTVQngD1410ExGwGx4J6lpyo,187
2
2
  ostruct/cli/__init__.py,sha256=dbdUfKRT4ARSHgjsZOmQ-TJT1mHwL7L3xMuilPkhG4Q,411
3
3
  ostruct/cli/cache_manager.py,sha256=ej3KrRfkKKZ_lEp2JswjbJ5bW2ncsvna9NeJu81cqqs,5192
4
- ostruct/cli/cli.py,sha256=GC1YHGlD7PxX4duWgfmLijTmMBg2tVqG9JOIHqmipxk,69662
4
+ ostruct/cli/cli.py,sha256=uDh7-_pGXgiq2AMo4vDuNMotk5HNIIki_FJFWb2LWTY,69529
5
5
  ostruct/cli/errors.py,sha256=vxfjXpUbsarYJoTBaGFpjpa8wXqOMGQryTh-roUhRuU,9454
6
6
  ostruct/cli/file_info.py,sha256=jjsLVDD8YMpVryBzKVdoQsjE33PLA1BBTVqH3VOHbuA,10167
7
7
  ostruct/cli/file_list.py,sha256=jTtqNo05GT4m4TpEpd3MT9ZlueH_sQgcjHiERRbt-IY,5217
@@ -20,8 +20,8 @@ ostruct/cli/template_utils.py,sha256=QGgewxU_Tgn81J5U-Y4xfi67CkN2dEqXI7PsaNiI9es
20
20
  ostruct/cli/template_validation.py,sha256=ygM_37Cqd2RfOugf9PmhS-Z3WFwDvjPhduB7-C2LMfw,11759
21
21
  ostruct/cli/utils.py,sha256=1UCl4rHjBWKR5EKugvlVGHiHjO3XXmqvkgeAUSyIPDU,831
22
22
  ostruct/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- ostruct_cli-0.1.0.dist-info/LICENSE,sha256=QUOY6QCYVxAiH8vdrUTDqe3i9hQ5bcNczppDSVpLTjk,1068
24
- ostruct_cli-0.1.0.dist-info/METADATA,sha256=mjUKxVR_dV0JIsNR988ppA5JrhQn6J-j44rX6rbnXiw,5236
25
- ostruct_cli-0.1.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
26
- ostruct_cli-0.1.0.dist-info/entry_points.txt,sha256=NFq9IuqHVTem0j9zKjV8C1si_zGcP1RL6Wbvt9fUDXw,48
27
- ostruct_cli-0.1.0.dist-info/RECORD,,
23
+ ostruct_cli-0.1.4.dist-info/LICENSE,sha256=QUOY6QCYVxAiH8vdrUTDqe3i9hQ5bcNczppDSVpLTjk,1068
24
+ ostruct_cli-0.1.4.dist-info/METADATA,sha256=N5YTPqzaX97RPeh1IssYTi9pCIY0lW1GwC11GHX2Jdw,5300
25
+ ostruct_cli-0.1.4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
26
+ ostruct_cli-0.1.4.dist-info/entry_points.txt,sha256=NFq9IuqHVTem0j9zKjV8C1si_zGcP1RL6Wbvt9fUDXw,48
27
+ ostruct_cli-0.1.4.dist-info/RECORD,,