CLi + module to deeply flatten nested structures like a pro
Project description
flatten-utils
🔧 A lightweight utility to deeply flatten nested Python structure like 'lists', 'tuples', 'sets','dicts' and more -- without breaking a sweat.
🚀 Features
- 🌀 Deep flattening of arbitrarily nested structures
- 🔂 Control flatten depth with '--depth'
- ➖ Stop flattening at specific types like 'str', 'bytes', 'dict' with '--stop_at'
- 📦 Use as both an Python module and a CLI tool
- 📁 Read Input from files or strings
- 🎨 Pretty-printing support with '--pretty'
📦 Installation
✅ From PYPI (recommended)
pip install flatten-utils
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flatten_utils-0.1.2.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flatten_utils-0.1.2.tar.gz.
File metadata
- Download URL: flatten_utils-0.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a05ba5f928246b38a9112c7bdeb855b583ab348b459ba0392c982c920ec1c1f
|
|
| MD5 |
def2be855fef87ad69f4cb97dd311968
|
|
| BLAKE2b-256 |
8799dbf7fee8b6bbc7af61ccb33a116e8c748751aa5778f9378238378d573516
|
File details
Details for the file flatten_utils-0.1.2-py3-none-any.whl.
File metadata
- Download URL: flatten_utils-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a036f403bfbe6edfb5b0a412a6f026cd680c501fd851e3e98b05c66721b16f35
|
|
| MD5 |
47cca075753c846d5ff1fdd003f48521
|
|
| BLAKE2b-256 |
708284cd22361b8b7d349cf1a39568491a01e3dbca314f3a36ad10cf34fcfd9e
|