Elysia Tools
Navigation
Development
Python Viewer Samples
Sample Python source files (classes, dataclasses, async/await) for the in-browser Python Viewer
Samples
Entries inside this sample collection
Classes & List Comprehension
A Python example with a typed class and a list comprehension filter
Difficulty
1/10
Tags
python, class, basic
simple.py
PY · 523 B
- fileSize
- 523 B
- format
- Python
- extension
- .py
Dataclasses & Decorators
Python dataclasses, field defaults, and an lru_cache decorator
Difficulty
2/10
Tags
python, dataclass, decorator
dataclasses.py
PY · 650 B
- fileSize
- 650 B
- format
- Python
- extension
- .py
Async / Await
Async/await with an async context manager and asyncio.gather
Difficulty
2/10
Tags
python, async, asyncio
async-http.py
PY · 682 B
- fileSize
- 682 B
- format
- Python
- extension
- .py
Tools
Tools frequently paired with this sample
Related