# datamonger.cache\_info

Datamonger for Python · 0.4.0

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_cache_management.py>)

```python
cache_info(*, cache_dir: Pathish | None = None) -> datamonger.CacheInfo
```

Report cached registries and artifacts without accessing the network.

<a id="examples"></a>

## Examples

Inspect an empty private cache without changing the user’s cache:

```python
>>> from tempfile import TemporaryDirectory
>>> from datamonger import cache_info
>>> with TemporaryDirectory() as directory:
...     info = cache_info(cache_dir=directory)
...     print(info.total_size, len(info.entries))
0 0
```

## Same API in

- [Datamonger for Julia: `Datamonger.cache_info`](<../../julia/reference/a01fe540f09dc965734444391bb2e935a326afc0320920fe87ac9ef6f227721b>)
- [Datamonger for R: `cache_info`](<../../r/reference/cache_info>)
