File size: 1,242 Bytes
0e24aff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""OpenEnv root package shim.

The OpenEnv CLI's ``validate_env_structure`` expects ``__init__.py``,
``client.py``, and ``models.py`` to exist at the env-directory root —
the convention where "the env *is* the package". Our actual code lives
under ``physix/`` so the wheel builds cleanly and tests / training
imports stay at ``from physix.* import ...``. These root shims simply
re-export from ``physix`` so OpenEnv's auto-discovery (which Pascal-
cases ``name: physix`` to ``Physix*`` in client.py) finds the symbols
it expects without duplicating any implementation.

NOTE: Inside the deployed Space the package installed via
``pip install -e .`` is ``physix`` (see ``[tool.hatch.build.targets.wheel]``
in pyproject.toml). These root files are *only* loaded by the OpenEnv
CLI's local validator and by users who import the env-directory as a
package; they are never imported at runtime by the FastAPI server.
"""

from physix import (  # noqa: F401
    GRAMMAR_HINT,
    PhysiXAction,
    PhysiXEnv,
    PhysiXObservation,
    PhysiXState,
    RewardBreakdown,
    __version__,
)

__all__ = [
    "PhysiXEnv",
    "PhysiXAction",
    "PhysiXObservation",
    "PhysiXState",
    "RewardBreakdown",
    "GRAMMAR_HINT",
    "__version__",
]