toolsed is a lightweight library that provides practical, reusable functions for everyday Python programming. It eliminates common boilerplate and makes code more readable.
No magic. No dependencies. Just useful tools you'd write yourself — but already tested and ready to use.
You've probably written these helpers dozens of times:
- Get the first item from a list (or return
None) - Safely access nested dicts
- Flatten a list of lists
- Truncate long strings
- Handle optional values gracefully
toolsed collects them into one clean, reliable package.
pip install toolsedOr install locally for development:
pip install -e .from toolsed import Functions
# init
ft = Functions()
ft.first([1, 2, 3]) # → 1
ft.last([1, 2, 3]) # → 3See detailed docs for each module:
dicttools.md— Dictionary utilitiesfunctions.md— Core utilitieslisttools.md— List and iterable toolsstringtools.md— String formatting
To contribute:
git clone https://github.com/your-username/toolsed
cd toolsed
pip install -e .
pytestMIT
---