shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

266
active users

#pythonprogramming

0 posts0 participants0 posts today
Boas Pucker<p>🎓 Our <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> course concludes with student project presentations covering topics like genomic feature extraction, sequence analysis, and large-scale data wrangling.<br>👉 See the course materials on GitHub: <a href="https://github.com/bpucker/PyBo" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/bpucker/PyBo</span><span class="invisible"></span></a><br><a href="https://mastodon.social/tags/OpenScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenScience</span></a> <a href="https://mastodon.social/tags/Bioinformatics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bioinformatics</span></a> <a href="https://mastodon.social/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <br><span class="h-card" translate="no"><a href="https://genomic.social/@PuckerLab" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>PuckerLab</span></a></span></p>
Letterform Archive<p><span class="h-card" translate="no"><a href="https://typo.social/@MauriceMeilleur" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>MauriceMeilleur</span></a></span> is back for another online workshop: Typographic Patterns and Animations with Python and DrawBot. </p><p>For designers who code and love type, pattern, and motion, and want to incorporate them all in their work.</p><p>Dec 7–15, 10am–1pm PT (18:00–21:00 GMT)</p><p><a href="https://letterformarchive.org/shop/typographic-patterns-and-animations-with-python-and-drawbot/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">letterformarchive.org/shop/typ</span><span class="invisible">ographic-patterns-and-animations-with-python-and-drawbot/</span></a></p><p><a href="https://typo.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://typo.social/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://typo.social/tags/Animation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Animation</span></a> <a href="https://typo.social/tags/DrawBot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DrawBot</span></a> <a href="https://typo.social/tags/Typography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Typography</span></a> <a href="https://typo.social/tags/Ad" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ad</span></a></p>
WetHat💦<p>Modern Good Practices for Python Development </p><p>An outline of best practices for <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> development, including using tools like <a href="https://fosstodon.org/tags/pyenv" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyenv</span></a>, <a href="https://fosstodon.org/tags/pipx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pipx</span></a> or Development Containers for managing Python versions. It also recommends using pyproject.toml for project configuration, virtual environments for package management, and tools like Black, <a href="https://fosstodon.org/tags/Ruff" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ruff</span></a>, and <a href="https://fosstodon.org/tags/pytest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pytest</span></a> for code formatting, linting, and testing.</p><p><a href="https://fosstodon.org/tags/PythonBestPractices" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonBestPractices</span></a> <a href="https://fosstodon.org/tags/PythonDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonDevelopment</span></a> <a href="https://fosstodon.org/tags/PythonTools" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTools</span></a> <a href="https://fosstodon.org/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a></p><p><a href="https://www.stuartellis.name/articles/python-modern-practices/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">stuartellis.name/articles/pyth</span><span class="invisible">on-modern-practices/</span></a></p>
Eric the half-a-bee<p>Hi, I’m trying to teach myself Python, and I’m currently having problems with using three single quote marks to form a multi line comment in a program, like everybody else seems to be able to do without much problem.</p><p>But every time I type something on multiple lines, finishing with another triple single quote it always echoes what I’ve typed, on one line complete with all the necessary \n<br>characters. </p><p>See photo of printout page below. </p><p>What am I doing wrong? Obviously, I am suffering from some very basic lack of understanding of what I am actually doing.😂😩😳😢</p><p><a href="https://mastodon.au/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.au/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://mastodon.au/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.au/tags/LearningPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearningPython</span></a></p>
Pybites<p>New article:</p><p>⚠️Why you should avoid import * in Python 🐍<br><a href="https://pybit.es/articles/why-you-should-avoid-import-in-python/" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pybit.es/articles/why-you-shou</span><span class="invisible">ld-avoid-import-in-python/</span></a></p><p>Covering:<br>- Why modules are great and namespacing explained<br>- Why import * is a problem<br>- A practical example where a function gets overriden<br>- The recommended way to do imports<br>- What PEP8 has to say about this<br>- Protection workaround, use __all__ to define your module's public interface</p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a> <a href="https://fosstodon.org/tags/modules" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>modules</span></a> <a href="https://fosstodon.org/tags/encapsulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encapsulation</span></a> <a href="https://fosstodon.org/tags/namespacing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>namespacing</span></a> <a href="https://fosstodon.org/tags/zenofpython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zenofpython</span></a> <a href="https://fosstodon.org/tags/bestpractices" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bestpractices</span></a> <a href="https://fosstodon.org/tags/pitfalls" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pitfalls</span></a> <a href="https://fosstodon.org/tags/imports" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>imports</span></a> <a href="https://fosstodon.org/tags/dundermethods" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dundermethods</span></a></p>
Christoffer S.<p><a href="https://ioc.exchange/tags/Fediverse" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fediverse</span></a> request for advice. I want to build a mini real time display, like 2-4", for my daughters' blood glucose (sha has diabetes type 1).</p><p>Ideally a battery driven eink (colour perhaps?) display, with some python programming support and wifi.</p><p>This whole hardware thing is new to me, programming is not.</p><p>What would you use?</p><p><a href="https://ioc.exchange/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://ioc.exchange/tags/T1D" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>T1D</span></a> <a href="https://ioc.exchange/tags/RealTime" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RealTime</span></a> <a href="https://ioc.exchange/tags/BloodGlucose" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BloodGlucose</span></a> <a href="https://ioc.exchange/tags/WeAreNotWaiting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WeAreNotWaiting</span></a></p>
Joey de Villa 🪗<p>After seeing the article about using Swift’s NumberFormatter to convert numbers into their word form, someone asked if there’s something similar for Python. There is — inflect.py — and I’ll show you how to use it!</p><p><a href="https://mastodon.cloud/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.cloud/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.cloud/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.cloud/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a></p><p><a href="https://www.globalnerdy.com/2023/03/02/converting-a-number-into-words-this-time-with-python-and-inflect-py/" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">globalnerdy.com/2023/03/02/con</span><span class="invisible">verting-a-number-into-words-this-time-with-python-and-inflect-py/</span></a></p>
RecursiveNeuron :verified:<p><a href="https://techhub.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://techhub.social/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a> <a href="https://techhub.social/tags/python3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python3</span></a> <a href="https://techhub.social/tags/java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>java</span></a></p>
RecursiveNeuron :verified:<p>🐍 Single <a href="https://techhub.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> cmd,find what is max number of lines of code in a single file of your project</p><p>▶️ Let's know what is max no.of lines in your project</p><p>python3 -c "import pathlib; print(max(len(p.read_text().splitlines()) for p in pathlib.Path().rglob('*.py')))"</p><p>*There are easier ways than this in <a href="https://techhub.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> though </p><p><a href="https://techhub.social/tags/python3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python3</span></a> <a href="https://techhub.social/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a></p>