kamokamo · 鴨かも¶
maybe a value. definitely a duck.¶
kamokamo brings Rust’s Option, Result, and iterator vocabulary to Python. it requires Python 3.14+ and has no runtime dependencies.
Option holds a value or represents absence.
Result holds a successful value or an expected error.
Iter builds lazy pipelines, and
Peekable adds one item of lookahead.
find your way¶
tutorials: build a small program, step by step.
how-to guides: handle missing values, errors, and streams.
API reference: look up a type, signature, or behavior.
explanation: understand the choices behind the API.
a duck, perhaps¶
鴨 (kamo) means “duck”; かも expresses “maybe.” 鴨かも brings them together:
Python’s duck typing meets Maybe types. sometimes there is
Some. sometimes there is Nothing.