Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Python play-by-cloud Projects
-
Civilization_VI_Play_By_Cloud_Webhook_with_FastAPI
Using Python FastAPI creates a webhook endpoint for Civilization VI's Play By Cloud or Play Your Damn Turn Webhooks. Also pushes notifications to Matrix.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I have a project where I have used FastAPI to provide a webhook for Sid Meier's Civilization VI's multiplayer mode. Its main purpose is to send a message to a Matrix server when it's someone's turn, but I also have a main page where you can go and see all the games currently being played. (see: https://github.com/djotaku/Civilization_VI_Play_By_Cloud_Webhook_with_FastAPI/blob/d893555a70a8e2445ed73c2c68f17406004cfd10/screenshots/index.png ) Right now I'm using HTMX and having it reload the current games every 15 seconds (https://github.com/djotaku/Civilization_VI_Play_By_Cloud_Webhook_with_FastAPI/blob/main/civ_vi_webhook/templates/partials/current_games_table.html) . But that's pretty wasteful in a situation where a turn might be done anywhere between 15 minutes and days later. I just have it set to 15s because, coincidentally, someone might finish a game right after you load up a page. It would be more efficient to use Server-Side Events.
Python play-by-cloud related posts
-
Server-Side events with FastAPI and Webhooks
-
Help: HTMX not replacing the div
-
Struggling to get my triggers right
-
Flask makes you a better developer
-
Basic FastAPI webhook receiver
-
Sunday Daily Thread: What's everyone working on this week?
-
Why is my logging not coming through?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 2 May 2024
Index
Project | Stars | |
---|---|---|
1 | Civilization_VI_Play_By_Cloud_Webhook_with_FastAPI | 4 |
Sponsored