codex-local-sdk-python 0.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.
- codex_local_sdk_python-0.1.0/MANIFEST.in +1 -0
- codex_local_sdk_python-0.1.0/PKG-INFO +36 -0
- codex_local_sdk_python-0.1.0/README.md +23 -0
- codex_local_sdk_python-0.1.0/pyproject.toml +40 -0
- codex_local_sdk_python-0.1.0/setup.cfg +4 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk/__init__.py +34 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk/client.py +1776 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk/exceptions.py +19 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk/models.py +77 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk/session_store.py +447 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk/telemetry.py +24 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk_python.egg-info/PKG-INFO +36 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk_python.egg-info/SOURCES.txt +49 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk_python.egg-info/dependency_links.txt +1 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk_python.egg-info/entry_points.txt +2 -0
- codex_local_sdk_python-0.1.0/src/codex_local_sdk_python.egg-info/top_level.txt +2 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/__init__.py +5 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/cli.py +131 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/AGENTS.md +35 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/README.md +20 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/architecture_starter.md +51 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/automation_ci_cd.md +35 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/codex_core_docs.md +43 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/configuration.md +35 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/enterprise_governance.md +33 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/mcp_and_skills.md +39 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/model_pricing_notes.md +24 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/programmatic_integration.md +30 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/security_permissions.md +47 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/documentation/setup_auth.md +42 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/html documentation/api-reference.html +218 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/html documentation/assets/styles.css +265 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/html documentation/examples.html +203 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/html documentation/getting-started.html +189 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/html documentation/index.html +161 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/html documentation/live-threads.html +180 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/docs/html documentation/testing-and-quality.html +110 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/SKILL.md +41 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/agents/openai.yaml +4 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/assets/template_async_run.py +36 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/assets/template_live_stream.py +28 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/assets/template_resume_named_session.py +35 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/assets/template_schema_output.py +41 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/assets/template_sync_run.py +24 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/assets/template_telemetry_and_retry.py +56 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/assets/template_thread_session.py +29 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/references/guardrails-and-failure-modes.md +55 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/references/sdk-api-cheatsheet.md +72 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/references/task-routing.md +26 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/scripts/preflight_check.py +132 -0
- codex_local_sdk_python-0.1.0/src/codex_sdk_python/data/skills/codex-local-sdk-usage/scripts/scaffold_usage_template.py +66 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
recursive-include src/codex_sdk_python/data *
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: codex-local-sdk-python
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python SDK wrapper around codex exec with bundled skill/docs scaffolding CLI.
|
|
5
|
+
Author: Codex Local SDK Maintainers
|
|
6
|
+
Project-URL: Homepage, https://github.com/maestromaximo/codex-local-sdk-python
|
|
7
|
+
Project-URL: Repository, https://github.com/maestromaximo/codex-local-sdk-python
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# codex-local-sdk-python
|
|
15
|
+
|
|
16
|
+
`codex-local-sdk-python` packages this repository's local `codex_local_sdk` module as an installable
|
|
17
|
+
PyPI distribution and adds a companion CLI:
|
|
18
|
+
|
|
19
|
+
- `codex-sdk skill` copies the bundled `codex-local-sdk-usage` skill to `.agents/skills/`.
|
|
20
|
+
- `codex-sdk docs` copies bundled documentation to `codex-sdk-documentation/`.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install codex-local-sdk-python
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## CLI
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
codex-sdk --help
|
|
32
|
+
codex-sdk skill
|
|
33
|
+
codex-sdk docs
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Use `--force` to overwrite existing files and `--output` to select a target directory.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# codex-local-sdk-python
|
|
2
|
+
|
|
3
|
+
`codex-local-sdk-python` packages this repository's local `codex_local_sdk` module as an installable
|
|
4
|
+
PyPI distribution and adds a companion CLI:
|
|
5
|
+
|
|
6
|
+
- `codex-sdk skill` copies the bundled `codex-local-sdk-usage` skill to `.agents/skills/`.
|
|
7
|
+
- `codex-sdk docs` copies bundled documentation to `codex-sdk-documentation/`.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install codex-local-sdk-python
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## CLI
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
codex-sdk --help
|
|
19
|
+
codex-sdk skill
|
|
20
|
+
codex-sdk docs
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Use `--force` to overwrite existing files and `--output` to select a target directory.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "codex-local-sdk-python"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Python SDK wrapper around codex exec with bundled skill/docs scaffolding CLI."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Codex Local SDK Maintainers" }
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://github.com/maestromaximo/codex-local-sdk-python"
|
|
22
|
+
Repository = "https://github.com/maestromaximo/codex-local-sdk-python"
|
|
23
|
+
|
|
24
|
+
[project.scripts]
|
|
25
|
+
codex-sdk = "codex_sdk_python.cli:main"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools]
|
|
28
|
+
package-dir = {"" = "src"}
|
|
29
|
+
include-package-data = true
|
|
30
|
+
|
|
31
|
+
[tool.setuptools.packages.find]
|
|
32
|
+
where = ["src"]
|
|
33
|
+
include = ["codex_local_sdk*", "codex_sdk_python*"]
|
|
34
|
+
|
|
35
|
+
[tool.setuptools.package-data]
|
|
36
|
+
codex_sdk_python = [
|
|
37
|
+
"data/skills/codex-local-sdk-usage/**/*",
|
|
38
|
+
"data/docs/documentation/**/*",
|
|
39
|
+
"data/docs/html documentation/**/*",
|
|
40
|
+
]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Local Python SDK-style wrapper for Codex non-interactive execution."""
|
|
2
|
+
|
|
3
|
+
from .client import AsyncCodexLiveRun, CodexLiveRun, CodexLocalClient, CodexThreadSession
|
|
4
|
+
from .exceptions import CodexError, CodexExecFailedError, CodexNotInstalledError
|
|
5
|
+
from .models import CodexEvent, CodexExecRequest, CodexExecResult, RetryPolicy, SandboxMode
|
|
6
|
+
from .session_store import (
|
|
7
|
+
InMemorySessionStore,
|
|
8
|
+
JsonFileSessionStore,
|
|
9
|
+
SessionRecord,
|
|
10
|
+
SessionStore,
|
|
11
|
+
SessionTurnRecord,
|
|
12
|
+
)
|
|
13
|
+
from .telemetry import CodexClientEvent
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"CodexLiveRun",
|
|
17
|
+
"AsyncCodexLiveRun",
|
|
18
|
+
"CodexLocalClient",
|
|
19
|
+
"CodexThreadSession",
|
|
20
|
+
"CodexError",
|
|
21
|
+
"CodexExecFailedError",
|
|
22
|
+
"CodexNotInstalledError",
|
|
23
|
+
"CodexEvent",
|
|
24
|
+
"CodexExecRequest",
|
|
25
|
+
"CodexExecResult",
|
|
26
|
+
"RetryPolicy",
|
|
27
|
+
"SandboxMode",
|
|
28
|
+
"InMemorySessionStore",
|
|
29
|
+
"JsonFileSessionStore",
|
|
30
|
+
"SessionRecord",
|
|
31
|
+
"SessionTurnRecord",
|
|
32
|
+
"SessionStore",
|
|
33
|
+
"CodexClientEvent",
|
|
34
|
+
]
|