semvec/pypi-packages huggingface dataset:
mkdocs-data-plugin 0.2.0
MkDocs plugin that allows to read data from markup files
License: MIT
Requires Python: >=3.8

# mkdocs-data-plugin
__MkDocs Data Plugin__ is a plugin for [MkDocs](https://www.mkdocs.org/) that allows
reading data from markup files and use it in your Markdown pages.

Currently supported formats:

- JSON: `.json`
- YAML: `.yml`, `.yaml`

## Documentation
This plugin documentation can be found here: https://joapuiib.github.io/mkdocs-data-plugin/

## Installation
This plugin can be installed via pip:

```bash
pip install mkdocs-data-plugin
```

## Configuration
Activate the plugin in your `mkdocs.yml`:

```yaml
plugins:
  - macros
  - data
```

## Overview
When using this plugin, you can define data in YAML or JSON files
in a separate directory and reference them in your Markdown files.

```txt
root/
├── docs/
│   └── ...
├── data/
│   └── fruits.yml
└── mkdocs.yml
```

```yaml title="fruits.yml"
- Apple
- Banana
- Strawberry
```

Files in this directory can be referenced in your Markdown files using the `data` variable.

```markdown
{% for fruit in data.fruits -%}
- {{ fruit }}
{% endfor %}
```
flatten-nested 0.1.1
A Python package to flatten nested data structures
License: MIT
Requires Python: <4.0,>=3.8
Keywords: flatten, nested, list, dict, tuple, set

# Flatten Nested

A Python package for flattening nested data structures including lists, tuples, dictionaries, and sets.

## Installation

```bash
pip install flatten-nested
```

## Usage

```python
from flatten_nested import flatten

# Flatten a nested list
nested_list = [1, [2, 3, [4, 5]], 6]
flattened = flatten(nested_list)
print(flattened)  # [1, 2, 3, 4, 5, 6]

# Flatten a nested dictionary
nested_dict = {'a': 1, 'b': {'c': 2, 'd': {'e': 3}}}
flattened = flatten(nested_dict)
print(flattened)  # [('a', 1), ('b.c', 2), ('b.d.e', 3)]

# Flatten with depth limit
nested = [1, [2, [3, [4]]]]
flattened = flatten(nested, depth=1)
print(flattened)  # [1, 2, [3, [4]]]
```

## Features

- Supports lists, tuples, dictionaries, and sets
- Optional depth limit for partial flattening
- Customizable dictionary key handling
- Configurable separator for nested dictionary keys
- Type hints for better IDE support
- Comprehensive test suite
- Exception handling for unsupported types

## License

This project is licensed under the MIT License.