# \#code-sample

**URL:** https://community.tempest.earth/tag/code-sample/191.md

[Latest](https://community.tempest.earth/latest.md) · [Categories](https://community.tempest.earth/categories.md) · [Tags](https://community.tempest.earth/tags.md)

---

## [Basic Python websockets example to retrieve current Tempest data](https://community.tempest.earth/t/basic-python-websockets-example-to-retrieve-current-tempest-data/9310)

<div class="topic-metadata">

**Author:** [@dwburger](https://community.tempest.earth/u/dwburger)\
**Replies:** 12\
**Last updated:** [March 6, 2026, 8:24pm UTC](https://community.tempest.earth/t/basic-python-websockets-example-to-retrieve-current-tempest-data/9310 "2026-03-06T20:24:53Z")

</div>

I’m relatively new to Python and wondered whether anyone could point me to a very basic example of retrieving current data from my Tempest using Python websockets. To get started, all I want to do is open a socket, get …
