Install & Compatibility
Where this runs
tested against v1.2.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.136s · 19.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.126s · 20MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
iterutils
✓ from kitchen.iterutils import iterate
✗ from kitchen.text import iterate
iterate is in iterutils, not text
text_converters
✓ from kitchen.text import text_converters
✗ from kitchen.text.converters import to_unicode
Correct import path uses full module path
Import and use basic utilities from kitchen.
from kitchen.iterutils import iterate
from kitchen.text import text_converters
# Example: iterate over nested lists
for item in iterate([1, [2, 3], 4]):
print(item)
# Example: convert bytes to unicode
unicode_str = text_converters.to_unicode(b'hello', encoding='utf-8')
print(unicode_str)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'kitchen.text.converters'
Incorrect import path; the module is `kitchen.text.text_converters`.
fixUse `from kitchen.text import text_converters`
TypeError: to_unicode() got an unexpected keyword argument 'encoding'
Function signature differs between versions; in 1.2.6, `to_unicode` expects `encoding` as second positional argument, not keyword.
fixUse positional call: `text_converters.to_unicode(b'hello', 'utf-8')`
Upgrade
Version history
1.2.6latest on PyPI · released May 14, 2019
Audit
Dependencies
sixrequiredFor Python 2/3 compatibility utilities