registry#

Functions#

_discover_entry_points

Load installed entry points one time into _REGISTRY.

_load_callable

Import and return the callable referenced by "module:attr".

make

Create an instance by string ID.

register

Register at runtime (e.g., in tests or plugins): register("JHU/MyEnv-v0", "my_pkg.my_mod:MyEnvClass")

specs

List all registered specs, optionally filtered by ID prefix.

prt_sim.jhu.registry._discover_entry_points(group: str = 'jhu.envs') None[source]#

Load installed entry points one time into _REGISTRY.

prt_sim.jhu.registry._load_callable(spec: str) Callable[[...], Any][source]#

Import and return the callable referenced by “module:attr”.

prt_sim.jhu.registry.make(id: str, /, **kwargs: Any) Any[source]#

Create an instance by string ID. Works with classes or factory functions. Example: env = jhu.make(“JHU/ImagePipeline-v0”, width=64, height=64)

prt_sim.jhu.registry.register(id: str, entry_point: str) None[source]#

Register at runtime (e.g., in tests or plugins): register(“JHU/MyEnv-v0”, “my_pkg.my_mod:MyEnvClass”)

prt_sim.jhu.registry.specs(prefix: str | None = None) Dict[str, Spec][source]#

List all registered specs, optionally filtered by ID prefix.

Classes#

class prt_sim.jhu.registry.Spec(id: 'str', entry_point: 'str')[source]#