Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flatten_utils-0.1.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for flatten_utils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2a05ba5f928246b38a9112c7bdeb855b583ab348b459ba0392c982c920ec1c1f
MD5 def2be855fef87ad69f4cb97dd311968
BLAKE2b-256 8799dbf7fee8b6bbc7af61ccb33a116e8c748751aa5778f9378238378d573516

See more details on using hashes here.

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

Hashes for flatten_utils-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a036f403bfbe6edfb5b0a412a6f026cd680c501fd851e3e98b05c66721b16f35
MD5 47cca075753c846d5ff1fdd003f48521
BLAKE2b-256 708284cd22361b8b7d349cf1a39568491a01e3dbca314f3a36ad10cf34fcfd9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page