Registry / data / kitchen

kitchen

JSON →
library1.2.6pypypi✓ verified 85d ago

Kitchen is a Python library containing a cornucopia of useful code, including utilities for text handling, iterables, data structures, and Python version compatibility. Current version 1.2.6 has no active development; the library is in maintenance mode. Release cadence: sporadic, last release 2016.

pip install kitchen
INSTALL
IMPORT
SIG · KITCHEN
K
kitchen
datapythonv1.2.6
Install
2.5s avg
Import
131ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.136s · 19.7MB
glibc
py 3.103.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)
Debug
Known issues
deprecatedkitchen has not been updated since 2016 and is in maintenance mode. Many utilities have been superseded by standard library features (e.g., six, functools). Consider migrating to actively maintained alternatives.
fix
Replace with modern equivalents: use six for compatibility, or native Python 3 features.
affects: >=1.2.0
gotchaThe `kitchen.text` module uses old-style unicode handling. In Python 3, avoid using `kitchen.text.text_converters.to_unicode` on native strings as it may raise errors.
fix
Use Python 3's built-in `str` method or `codecs.decode` instead.
affects: 1.2.x
gotchaImport paths are not always intuitive. Many users mistakenly import `iterate` from `kitchen.text` instead of `kitchen.iterutils`.
fix
Correct import: `from kitchen.iterutils import iterate`
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'kitchen.text.converters'
Incorrect import path; the module is `kitchen.text.text_converters`.
fix
Use `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.
fix
Use 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
Agent activity
4 hits · last 30 days
node
4
Resources
kitchen — pip install kitchen · libregistry