Skip to content

zdelv/python-examples

Repository files navigation

Python Examples

A collection of small snippets of Python code. Mainly just a place for me to dump interesting experiments I performed.

Examples

Name Description
no-asyncio-coroutines An example of writing coroutines in Python without using asyncio.
contextvars-coroutines An extension of no-asyncio-coroutines to use contextvars for context-specific global storage.
process-logging An example of using QueueListener and QueueHandler to log from another process into the main process.
sum-types-dataclass An example of using dataclasses and Union to create a sum type, like Rust's Enum

About

A collection of small snippets of Python code.

Resources

Stars

Watchers

Forks

Languages