ostruct-cli 0.1.0__tar.gz → 0.1.4__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.
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/PKG-INFO +2 -1
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/pyproject.toml +3 -1
- ostruct_cli-0.1.4/src/ostruct/__init__.py +10 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/cli.py +4 -10
- ostruct_cli-0.1.0/src/ostruct/__init__.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/LICENSE +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/README.md +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/__init__.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/cache_manager.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/errors.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/file_info.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/file_list.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/file_utils.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/path_utils.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/progress.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/security.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/security_types.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_env.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_extensions.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_filters.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_io.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_rendering.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_schema.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_utils.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/template_validation.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/cli/utils.py +0 -0
- {ostruct_cli-0.1.0 → ostruct_cli-0.1.4}/src/ostruct/py.typed +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: ostruct-cli
|
3
|
-
Version: 0.1.
|
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
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
[tool.poetry]
|
6
6
|
name = "ostruct-cli"
|
7
|
-
version = "0.1.
|
7
|
+
version = "0.1.4"
|
8
8
|
description = "CLI for OpenAI Structured Output"
|
9
9
|
authors = ["Yaniv Golan <yaniv@golan.name>"]
|
10
10
|
readme = "README.md"
|
@@ -21,6 +21,7 @@
|
|
21
21
|
tiktoken = "^0.6.0"
|
22
22
|
pyyaml = "^6.0.2"
|
23
23
|
openai-structured = "^1.0.0"
|
24
|
+
tomli = {version = "^2.0.1", python = "<3.11"}
|
24
25
|
|
25
26
|
[tool.poetry.scripts]
|
26
27
|
ostruct = "ostruct.cli.cli:main"
|
@@ -53,6 +54,7 @@
|
|
53
54
|
sphinx = "^7.0"
|
54
55
|
sphinx-rtd-theme = "^1.0"
|
55
56
|
myst-parser = "^2.0.0"
|
57
|
+
tomli = {version = "^2.0.1", python = "<3.11"}
|
56
58
|
|
57
59
|
[tool.flake8]
|
58
60
|
max-line-length = 120
|
@@ -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.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|