hugpy-platform 0.3.2__tar.gz → 0.3.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.
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/PKG-INFO +2 -22
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/README.md +1 -21
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/pyproject.toml +1 -1
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/__init__.py +2 -2
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/app_dirs.py +1 -1
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/async_runtime.py +1 -1
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/binaries.py +1 -1
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/constants.py +3 -3
- {hugpy_platform-0.3.2/src/hugpy_platform/imports → hugpy_platform-0.3.4/src/hugpy_platform}/hardware.py +1 -1
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/constants.py +1 -1
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/module_imports.py +0 -18
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/module_imports.py +0 -18
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/procutil.py +1 -1
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/utils.py +2 -2
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform.egg-info/PKG-INFO +2 -22
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/setup.cfg +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/atomic_json.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/choices.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/client_liveness.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/filesystem.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/formatting.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/atomic_json.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/choices.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/filesystem.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/formatting.py +0 -0
- {hugpy_platform-0.3.2/src/hugpy_platform → hugpy_platform-0.3.4/src/hugpy_platform/imports}/hardware.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/platform_facade.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/imports/runner_config.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/platform_facade.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/py.typed +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/results.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/runner_config.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/verdict.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform/versioning.py +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform.egg-info/SOURCES.txt +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform.egg-info/dependency_links.txt +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform.egg-info/requires.txt +0 -0
- {hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hugpy-platform
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Hugpy platform: stdlib-first foundation shared by every Hugpy package (env-backed configuration, app dirs, hardware and process probes, central URL, pydantic compatibility shim)
|
|
5
5
|
Author-email: putkoff <support@hugpy.ai>
|
|
6
6
|
License-Expression: LicenseRef-Proprietary
|
|
@@ -24,30 +24,10 @@ The stdlib-first foundation that the hugpy arms build on: app directories,
|
|
|
24
24
|
storage-root constants, executable resolution, a process-wide async runtime,
|
|
25
25
|
hardware and process probes, and small formatting and result helpers.
|
|
26
26
|
|
|
27
|
-
Distribution `hugpy-platform
|
|
27
|
+
Distribution `hugpy-platform`, import `hugpy_platform`.
|
|
28
28
|
Dependencies: `abstract_essentials`, `platformdirs`. Optional extra: `hardware`
|
|
29
29
|
(`psutil`).
|
|
30
30
|
|
|
31
|
-
**Status: LIVE.** It is a library only: no service, no console script, no
|
|
32
|
-
entry points. It is installed in `/opt/hugpy-media/venv` and
|
|
33
|
-
`/opt/hugpy-video/venv`, and imported by:
|
|
34
|
-
|
|
35
|
-
- `hugpy_media`
|
|
36
|
-
- `hugpy_video`
|
|
37
|
-
- `hugpy_engine`
|
|
38
|
-
- `hugpy_oracle`
|
|
39
|
-
- core's legacy `config/prompt.py`, which is not live
|
|
40
|
-
|
|
41
|
-
Core's live basic mode and the wrapper do not use it; the wrapper carries its
|
|
42
|
-
own lifted copies under `fitevict/lifted/`.
|
|
43
|
-
|
|
44
|
-
The lean 0.3.0 release ships only the modules the live arms import. The rest
|
|
45
|
-
of the pre-0.3 package is retired. The `pyproject.toml` description still mentions "central URL", but
|
|
46
|
-
`hugpy_platform.central` is not shipped. `hugpy_oracle/assessment/benchmark.py` imports
|
|
47
|
-
it inside a `try` and records no figure when it is missing.
|
|
48
|
-
`hugpy_engine/placement.py` falls back the same way for
|
|
49
|
-
`hugpy_platform.model_keys`.
|
|
50
|
-
|
|
51
31
|
## Modules
|
|
52
32
|
|
|
53
33
|
`import hugpy_platform` re-exports only the light, side-effect-free accessors:
|
|
@@ -4,30 +4,10 @@ The stdlib-first foundation that the hugpy arms build on: app directories,
|
|
|
4
4
|
storage-root constants, executable resolution, a process-wide async runtime,
|
|
5
5
|
hardware and process probes, and small formatting and result helpers.
|
|
6
6
|
|
|
7
|
-
Distribution `hugpy-platform
|
|
7
|
+
Distribution `hugpy-platform`, import `hugpy_platform`.
|
|
8
8
|
Dependencies: `abstract_essentials`, `platformdirs`. Optional extra: `hardware`
|
|
9
9
|
(`psutil`).
|
|
10
10
|
|
|
11
|
-
**Status: LIVE.** It is a library only: no service, no console script, no
|
|
12
|
-
entry points. It is installed in `/opt/hugpy-media/venv` and
|
|
13
|
-
`/opt/hugpy-video/venv`, and imported by:
|
|
14
|
-
|
|
15
|
-
- `hugpy_media`
|
|
16
|
-
- `hugpy_video`
|
|
17
|
-
- `hugpy_engine`
|
|
18
|
-
- `hugpy_oracle`
|
|
19
|
-
- core's legacy `config/prompt.py`, which is not live
|
|
20
|
-
|
|
21
|
-
Core's live basic mode and the wrapper do not use it; the wrapper carries its
|
|
22
|
-
own lifted copies under `fitevict/lifted/`.
|
|
23
|
-
|
|
24
|
-
The lean 0.3.0 release ships only the modules the live arms import. The rest
|
|
25
|
-
of the pre-0.3 package is retired. The `pyproject.toml` description still mentions "central URL", but
|
|
26
|
-
`hugpy_platform.central` is not shipped. `hugpy_oracle/assessment/benchmark.py` imports
|
|
27
|
-
it inside a `try` and records no figure when it is missing.
|
|
28
|
-
`hugpy_engine/placement.py` falls back the same way for
|
|
29
|
-
`hugpy_platform.model_keys`.
|
|
30
|
-
|
|
31
11
|
## Modules
|
|
32
12
|
|
|
33
13
|
`import hugpy_platform` re-exports only the light, side-effect-free accessors:
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hugpy-platform"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.4"
|
|
8
8
|
description = "Hugpy platform: stdlib-first foundation shared by every Hugpy package (env-backed configuration, app dirs, hardware and process probes, central URL, pydantic compatibility shim)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -9,7 +9,7 @@ the two kept foundation modules; every other helper is imported by dotted path
|
|
|
9
9
|
"""
|
|
10
10
|
from __future__ import annotations
|
|
11
11
|
|
|
12
|
-
from
|
|
12
|
+
from .app_dirs import (
|
|
13
13
|
cache_dir,
|
|
14
14
|
config_dir,
|
|
15
15
|
data_dir,
|
|
@@ -22,7 +22,7 @@ from hugpy_platform.app_dirs import (
|
|
|
22
22
|
hugpy_state_dir,
|
|
23
23
|
models_root,
|
|
24
24
|
)
|
|
25
|
-
from
|
|
25
|
+
from .platform_facade import EXE_SUFFIX, IS_LINUX, IS_MACOS, IS_WINDOWS, env_value
|
|
26
26
|
|
|
27
27
|
try: # the installed distribution's version
|
|
28
28
|
from importlib.metadata import version as _dist_version
|
|
@@ -19,9 +19,9 @@ import re
|
|
|
19
19
|
from typing import Literal, Optional
|
|
20
20
|
|
|
21
21
|
from abstract_essentials.json_utils import safe_dump_to_file
|
|
22
|
-
from abstract_essentials
|
|
22
|
+
from abstract_essentials import make_list
|
|
23
23
|
|
|
24
|
-
from
|
|
24
|
+
from .platform_facade import env_value as get_env_value
|
|
25
25
|
|
|
26
26
|
# Tokenizers set this as a sentinel for "no enforced limit". It's never a real window.
|
|
27
27
|
|
|
@@ -61,7 +61,7 @@ def _resolve_default_root():
|
|
|
61
61
|
# keeps the historical /mnt/llm_storage mount when present and writable, and
|
|
62
62
|
# otherwise lands in a per-user data dir (XDG / AppData / Library) so the API
|
|
63
63
|
# works out of the box on a fresh box, Windows, or macOS.
|
|
64
|
-
from
|
|
64
|
+
from .app_dirs import models_root
|
|
65
65
|
|
|
66
66
|
return models_root()
|
|
67
67
|
|
|
@@ -19,7 +19,7 @@ import re
|
|
|
19
19
|
from typing import Literal, Optional
|
|
20
20
|
|
|
21
21
|
from abstract_essentials.json_utils import safe_dump_to_file
|
|
22
|
-
from abstract_essentials
|
|
22
|
+
from abstract_essentials import make_list
|
|
23
23
|
|
|
24
24
|
from hugpy_platform.platform_facade import env_value as get_env_value
|
|
25
25
|
|
|
@@ -184,25 +184,7 @@ def get_keybert():
|
|
|
184
184
|
return lazy_import("keybert").KeyBERT
|
|
185
185
|
|
|
186
186
|
|
|
187
|
-
# ---------------------------------------------------------------------------
|
|
188
|
-
# MoviePy
|
|
189
|
-
# ---------------------------------------------------------------------------
|
|
190
|
-
|
|
191
|
-
def get_moviepy(module=None):
|
|
192
|
-
mp = lazy_import("moviepy.editor")
|
|
193
|
-
if module is None:
|
|
194
|
-
return mp
|
|
195
187
|
|
|
196
|
-
_dispatch = {
|
|
197
|
-
"mp": mp,
|
|
198
|
-
"VideoFileClip": mp.VideoFileClip,
|
|
199
|
-
}
|
|
200
|
-
if module not in _dispatch:
|
|
201
|
-
raise KeyError(
|
|
202
|
-
f"Unknown moviepy sub-module {module!r}. "
|
|
203
|
-
f"Available: {sorted(_dispatch)}"
|
|
204
|
-
)
|
|
205
|
-
return _dispatch[module]
|
|
206
188
|
|
|
207
189
|
def get_tiktoken():
|
|
208
190
|
return lazy_import("tiktoken")
|
|
@@ -184,25 +184,7 @@ def get_keybert():
|
|
|
184
184
|
return lazy_import("keybert").KeyBERT
|
|
185
185
|
|
|
186
186
|
|
|
187
|
-
# ---------------------------------------------------------------------------
|
|
188
|
-
# MoviePy
|
|
189
|
-
# ---------------------------------------------------------------------------
|
|
190
|
-
|
|
191
|
-
def get_moviepy(module=None):
|
|
192
|
-
mp = lazy_import("moviepy.editor")
|
|
193
|
-
if module is None:
|
|
194
|
-
return mp
|
|
195
187
|
|
|
196
|
-
_dispatch = {
|
|
197
|
-
"mp": mp,
|
|
198
|
-
"VideoFileClip": mp.VideoFileClip,
|
|
199
|
-
}
|
|
200
|
-
if module not in _dispatch:
|
|
201
|
-
raise KeyError(
|
|
202
|
-
f"Unknown moviepy sub-module {module!r}. "
|
|
203
|
-
f"Available: {sorted(_dispatch)}"
|
|
204
|
-
)
|
|
205
|
-
return _dispatch[module]
|
|
206
188
|
|
|
207
189
|
def get_tiktoken():
|
|
208
190
|
return lazy_import("tiktoken")
|
|
@@ -215,7 +215,7 @@ def get_target_name(shortname: str, shortnames: List[str]) -> str:
|
|
|
215
215
|
return targetnames[-1]
|
|
216
216
|
|
|
217
217
|
def get_max_model_length(folder):
|
|
218
|
-
from
|
|
218
|
+
from .constants import DEFAULT_MAX_TOKENS, MODELS_HOME
|
|
219
219
|
all_max_values = []
|
|
220
220
|
module_dir = os.path.join(MODELS_HOME,folder)
|
|
221
221
|
dirlist = os.listdir(module_dir)
|
|
@@ -416,7 +416,7 @@ def merge_disk_over_registry(
|
|
|
416
416
|
'disk' | 'registry' | 'default'. Provenance is for logging only — not
|
|
417
417
|
fed into ModelConfig.
|
|
418
418
|
"""
|
|
419
|
-
from
|
|
419
|
+
from .constants import DISK_AUTHORITATIVE
|
|
420
420
|
registry = registry or {}
|
|
421
421
|
merged: dict = {}
|
|
422
422
|
prov: Dict[str, str] = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hugpy-platform
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Hugpy platform: stdlib-first foundation shared by every Hugpy package (env-backed configuration, app dirs, hardware and process probes, central URL, pydantic compatibility shim)
|
|
5
5
|
Author-email: putkoff <support@hugpy.ai>
|
|
6
6
|
License-Expression: LicenseRef-Proprietary
|
|
@@ -24,30 +24,10 @@ The stdlib-first foundation that the hugpy arms build on: app directories,
|
|
|
24
24
|
storage-root constants, executable resolution, a process-wide async runtime,
|
|
25
25
|
hardware and process probes, and small formatting and result helpers.
|
|
26
26
|
|
|
27
|
-
Distribution `hugpy-platform
|
|
27
|
+
Distribution `hugpy-platform`, import `hugpy_platform`.
|
|
28
28
|
Dependencies: `abstract_essentials`, `platformdirs`. Optional extra: `hardware`
|
|
29
29
|
(`psutil`).
|
|
30
30
|
|
|
31
|
-
**Status: LIVE.** It is a library only: no service, no console script, no
|
|
32
|
-
entry points. It is installed in `/opt/hugpy-media/venv` and
|
|
33
|
-
`/opt/hugpy-video/venv`, and imported by:
|
|
34
|
-
|
|
35
|
-
- `hugpy_media`
|
|
36
|
-
- `hugpy_video`
|
|
37
|
-
- `hugpy_engine`
|
|
38
|
-
- `hugpy_oracle`
|
|
39
|
-
- core's legacy `config/prompt.py`, which is not live
|
|
40
|
-
|
|
41
|
-
Core's live basic mode and the wrapper do not use it; the wrapper carries its
|
|
42
|
-
own lifted copies under `fitevict/lifted/`.
|
|
43
|
-
|
|
44
|
-
The lean 0.3.0 release ships only the modules the live arms import. The rest
|
|
45
|
-
of the pre-0.3 package is retired. The `pyproject.toml` description still mentions "central URL", but
|
|
46
|
-
`hugpy_platform.central` is not shipped. `hugpy_oracle/assessment/benchmark.py` imports
|
|
47
|
-
it inside a `try` and records no figure when it is missing.
|
|
48
|
-
`hugpy_engine/placement.py` falls back the same way for
|
|
49
|
-
`hugpy_platform.model_keys`.
|
|
50
|
-
|
|
51
31
|
## Modules
|
|
52
32
|
|
|
53
33
|
`import hugpy_platform` re-exports only the light, side-effect-free accessors:
|
|
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
|
{hugpy_platform-0.3.2 → hugpy_platform-0.3.4}/src/hugpy_platform.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|