# epath

[[[Source]]](https://github.com/google/etils/tree/main/etils/epath/__init__.py)

```{code-block}
from etils import epath
```

```{eval-rst}
.. automodule:: etils.epath
  :no-members:
```

## All symbols


### Module

|  |  |
--- | ---
[epath](index) | Public API.
[epath.testing](testing/index) | Test utils for epath.

### Class

|  |  |
--- | ---
[epath.Path](Path) | Abstract base class for pathlib.Path-like API.

### Function

|  |  |
--- | ---
[epath.DEFINE_path](DEFINE_path) | Defines a flag containing a epath.Path value.
[epath.register_path_cls](register_path_cls) | Register the pathlib-like class.
[epath.resource_path](resource_path) | Returns read-only root directory path of the module.
[epath.testing.mock_epath](testing/mock_epath) | Mock epath.
[epath.to_write_path](to_write_path) | Cast the `epath.resource_path` to a read-write Path.

### Attribute

|  |  |
--- | ---
[epath.PathLikeCls](PathLikeCls) | 

### Typing

|  |  |
--- | ---
[epath.PathLike](PathLike) | TODO(py310): os.PathLike is not subscriptable


```{toctree}
:hidden:

DEFINE_path
Path
PathLike
PathLikeCls
register_path_cls
resource_path
testing/index
to_write_path
```