> For the complete documentation index, see [llms.txt](https://pyot.iann838.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyot.iann838.com/limiters/memory.md).

# MemoryLimiter

* Description: In-Memory rate limiter that lives for the lifetime of the project runtime.

Pros:

* Fastest rate limiter since it lives in Python memory.
* No extra dependencies.

Cons:

* It makes the project stateful, meaning the rate limiter internal state is unique for each process running the project. If there are more than 1 process running the project, this rate limiter will fail.
* Rate limiter state is lost when the process is stopped or restarted.

## *class* `MemoryLimiter`

Backend: `pyot.limiters.memory.MemoryLimiter`

Definitions:

* `__init__`
  * `limiting_share`: `float = 1`
