Macrofab Engineering Podcast
MEP EP#350: Estimating Effort
- Autor: Vários
- Narrador: Vários
- Editora: Podcast
- Duração: 1:00:46
- Mais informações
Informações:
Sinopse
MEP EP#350: Estimating EffortPython Demo for Extra Life API Stream Date: November 5th, 2022 Functionality so far Check Extralife API for donations This is done with the requests module This endpoint seems to return old and new donations There isn't a “new donation” end point it seems Get the donation IDs and compare them to a local file Local file is made with the pickle module Pickle allows you to take any data structure in python and “package it” into a binary file for storage. If there is a new donation ID that isn’t in the local file Queue up a random audio clip Record the donation ID to the local file Audio is placed through the playsound module Weird “bug” that short audio clips get cut off Add a little sleep after the call to get around it Auto parses the audio folder for the files Looks into audio file Gets all the file names Adding a new audio clip is as simple as dropping it into the folder Preventing truly random files Made a rotating buffer Used the