> Every page of the ganymede website is listed in https://eugo.io/docs/ganymede/llms.txt.

# Multidict

> Multidict: Dict-like collection of key-value pairs where key might occur more than once in the container.

Web page: https://eugo.io/docs/ganymede/demo_notebooks/data_structures/multidict/
Notebook: https://eugo.io/docs/ganymede/demo_notebooks/data_structures/multidict/multidict.ipynb (source: https://github.com/eugo-inc/ganymede/blob/main/demo_notebooks/data_structures/multidict.ipynb)

Description:
- Dict-like collection of key-value pairs where key might occur more than once in the container. It behaves mostly like a regular dict but it may have several values for the same key and preserves insertion ordering.

Resources:
- [GitHub] https://github.com/aio-libs/multidict
- [Docs] https://multidict.aio-libs.org/en/latest/

## Example 1

Create a mutable mapping

```python
from multidict import CIMultiDict

dct = CIMultiDict(key='val')

'Key' in dct
```

## Example 2

Create a dict with repeating key values

```python
from multidict import MultiDict

new_dct = MultiDict([('a', 1), ('b', 2), ('b', 3), 
                         ('c', 5), ('d', 4), ('c', 7)]) 

new_dct
```
