# Python Viewer Samples

Sample Python source files (classes, dataclasses, async/await) for the in-browser Python Viewer

> Canonical page: https://test.elysiatools.com/en/samples/py-viewer-samples

- **Category:** Development

- **Keywords:** python, py, script, viewer

## Examples

- **Classes & List Comprehension**: A Python example with a typed class and a list comprehension filter
- **Dataclasses & Decorators**: Python dataclasses, field defaults, and an lru_cache decorator
- **Async / Await**: Async/await with an async context manager and asyncio.gather

## Related tools

- [Game Save Viewer](https://test.elysiatools.com/en/tools/game-save-viewer): Drop any game save file — Minecraft NBT, Unreal Engine GVAS, Palworld containers, JSON/XML/INI/Lua text saves, SQLite profiles — and get the detected format, engine versions, key progress fields and a bounded structural tree.
- [Hex Editor (File Viewer)](https://test.elysiatools.com/en/tools/hex-editor): Upload any binary file and inspect it as a classic hex dump with offset, hex bytes, and ASCII columns (read-only)
- [Python Regex Tester (re module)](https://test.elysiatools.com/en/tools/python-regex-tester): Test Python re patterns online: (?P…) named groups, (?P=name) backreferences, VERBOSE patterns, findall behavior, and \\g replace templates — plus ready-to-paste Python code.
- [3D Model Viewer & Inspector](https://test.elysiatools.com/en/tools/3d-model-viewer): Upload an STL, OBJ, GLB or glTF model: exact vertex/triangle counts, bounding-box dimensions, materials, animations and node tree, plus an interactive Three.js viewer (rotate, zoom, shaded/wireframe/normals).
- [cURL to Python (requests) Converter](https://test.elysiatools.com/en/tools/curl-to-python): Convert a cURL command into a Python requests code snippet with headers, data, and method
- [Batch Image Info Viewer](https://test.elysiatools.com/en/tools/image-batch-info): View basic information for multiple images at once - dimensions, format, file size, and metadata presence
- [Batch EXIF Viewer](https://test.elysiatools.com/en/tools/image-exif-batch-view): View EXIF metadata from multiple images at once
- [Audio Metadata Viewer](https://test.elysiatools.com/en/tools/audio-metadata-viewer): View all metadata tags of an audio file

## Related content

- [Code Documentation Samples](https://test.elysiatools.com/en/samples/docstring-extractor): Code samples with various documentation styles including JSDoc, JavaDoc, Python docstrings, and TypeScript annotations
- [HTML Viewer Samples](https://test.elysiatools.com/en/samples/html-viewer-samples): Sample HTML files (semantic page, form, landing page) for the in-browser HTML Viewer
- [XML Viewer Samples](https://test.elysiatools.com/en/samples/xml-viewer-samples): Sample XML files (bookstore, RSS feed, SVG) for the in-browser XML Viewer
- [Hardhat Development Framework Samples](https://test.elysiatools.com/en/samples/hardhat-samples): Hardhat Ethereum development environment examples including smart contracts, testing, deployment, scripts, plugins, and development workflows
- [Copyright-Free MP3 Audio Samples](https://test.elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [PDF Samples](https://test.elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10
