Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22476

Python Bytes: #292 Thursday, it's always a Thursday

$
0
0
<p><strong>Watch the live stream:</strong></p> <a href='https://www.youtube.com/watch?v=fErspGiTLCM' style='font-weight: bold;'>Watch on YouTube</a><br> <br> <p><strong>About the show</strong></p> <p>Sponsored by <a href="https://pythonbytes.fm/foundershub2022"><strong>Microsoft for Startups Founders Hub</strong></a>.</p> <p><strong>Brian #1:</strong> <a href="https://ewels.github.io/rich-codex/"><strong>rich-codex</strong></a></p> <ul> <li>by Phil Ewels</li> <li><a href="https://twitter.com/willmcgugan/status/1545052601649020928?s=20&amp;t=AQxTIX8SCz95bN2_ZnWqDg">suggested by Will McGugan</a></li> <li>“A GitHub Action / command-line tool which generates screen grab images of a terminal window, containing <em>command outputs</em> or <em>code snippets</em>.”</li> <li>Generate images from commands embedded in markdown files, like README.md, for example. <ul> <li>Searches through markdown files for stuff like: ![<code>cat cat.txt | lolcat -S 1</code>](img/cat.svg)</li> <li>then runs the command, and generates the image.</li> </ul></li> <li>Can be done within a GitHub action</li> <li>Can also send code snippets or json to rich-cli, then generate an image.</li> <li>You can also have commands in a config file, </li> <li>Very easy to use, makes very professional looking images for documentation, that’s always up to date.</li> </ul> <p><strong>Michael #2:</strong> <a href="https://twitter.com/iamramiawar/status/1523370586629877760"><strong>Pydastic</strong></a></p> <ul> <li>via Roman Right, by <a href="https://twitter.com/iamramiawar">Rami Awar</a></li> <li>Pydastic is an elasticsearch python ORM based on Pydantic.</li> <li>Core Features <ul> <li>Simple CRUD operations supported</li> <li>Sessions for simplifying bulk operations (a la SQLAlchemy)</li> <li>Dynamic index support when committing operations</li> </ul></li> <li>More on <a href="https://www.elastic.co/elasticsearch/"><strong>Elasticsearch here</strong></a></li> </ul> <p><strong>Brian #3:</strong> <a href="https://towardsdatascience.com/3-things-you-must-know-before-building-with-pyscript-245a0a82f2c3"><strong>3 Things to Know Before Building with PyScript</strong></a></p> <ul> <li>by Braden Riggs</li> <li>Package indentation matters</li> <li><p>Local file access is possible.</p> <pre><code> [HTML_REMOVED] - numpy - pandas - paths: - /views.csv [HTML_REMOVED] </code></pre></li> <li><ul> <li>DOM manipulation has interesting conventions</li> <li>For buttons, you can include <em>pys-onClick=”your_function”</em> parameter to trigger python functions when clicked.</li> <li>For retrieving user input from within the <em>[HTML_REMOVED]</em> tag <em>document.getElementById(‘input_obj_id’).value</em> can retrieve the input value.</li> <li>And Finally <em>pyscript.write(“output_obj_id”, data)</em> can write output to a tag from within the <em>[HTML_REMOVED]</em> tag.</li> </ul></li> <li>Michael's Pyscript videos <ul> <li><a href="https://www.youtube.com/watch?v=lC2jUeDKv-s">Python + pyscript + WebAssembly: Python Web Apps, Running Locally with pyscript</a></li> <li><a href="https://www.youtube.com/watch?v=Nct0usblj64">Python iOS Web App with pyscript and offline PWAs</a></li> </ul></li> </ul> <p><strong>Michael #4:</strong> <a href="https://twitter.com/datacascadia/status/1542043036586082304"><strong>disnake</strong></a></p> <ul> <li>via Sean Koenig</li> <li>disnake is a modern, easy to use, feature-rich, and async-ready API wrapper for Discord.</li> <li><strong>Features:</strong> <ul> <li>Modern Pythonic API using <code>async</code>/<code>await</code> syntax</li> <li>Sane rate limit handling that prevents 429 errors</li> <li>Command extension to aid with bot creation</li> <li>Easy to use with an object oriented design</li> <li>Optimized for both speed and memory</li> <li><a href="https://docs.disnake.dev/en/latest/quickstart.html"><strong>Quickstart</strong></a></li> <li><a href="https://docs.disnake.dev/en/latest/ext/commands/commands.html"><strong>Commands API</strong></a></li> </ul></li> </ul> <p><strong>Extras</strong> </p> <p>Michael:</p> <ul> <li><a href="https://forms.gle/ZXHJCH1LuVdr6UUr8"><strong>Scholarships</strong></a> for upcoming FastAPI + MongoDB live course</li> <li><a href="https://www.humblebundle.com/operation-python-2022-software"><strong>Humble Bundle for Python 2022</strong></a></li> <li><a href="https://custom.ultimateears.com/products/ue-fits"><strong>Michael's crazy earbuds (UE Fits)</strong></a></li> </ul> <p><strong>Joke:</strong> <a href="https://twitter.com/PR0GRAMMERHUM0R/status/1542976365485596672"><strong>Better than a wage increase</strong></a></p>

Viewing all articles
Browse latest Browse all 22476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>