lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

69
active users

#Python

115 posts93 participants1 post today

I'm trying out Qobuz currently, and thought it'd be nice to have my old Spotify playlist backups from way back when I still had Spotify so I wrote a quick and dirty Python script to read the JSON and push it to Qobuz using minim, an API wrapper for various streaming services available in the cheese shop.

Works well enough, now listening to my old New Wave playlist.

cvs.sonologic.net/gmc/qobuz-sp…

codeberg.org/gmc/qobuz-spotify…

GitLabKoen Martens / qobuz-spotify-import · GitLabGitLab Community Edition

I have struggled with many IDEs with their lack of good integration of interactive #Python.

VSCode and its derivatives are nice, but they do not play ball with my workflow. I can get what I want to work only partially, and it is much slower than my current workflow. Running one line at a time in an interactive window is excruciating.

Isn't it common in #DataScience and #GIScience to have an interactive workflow with a lot of back and forth reiterations with multiple line executions?

New episode of #TalkingPostgres #podcast 🎙️ (we're up to Ep25!)

Dawn Wages @BajoranEngineer: #Django dev, Python Software Foundation board chair, & author of upcoming book "Domain-driven Django"—joined the pod to chat about why so many Python developers Just Use Postgres

Give it a listen wherever you get your podcasts. And give it a boost 🚀!

Dawn is a gem & this conversation was FUN. #PostgreSQL #OpenSource #Python #Postgres

🎧 talkingpostgres.com/episodes/w

📺 youtu.be/leir3xJ4Klo?feature=s

Calculate #pi with #python for #piday

#!/usr/bin/python3

from decimal import *
import sys

getcontext().prec = 40

c = 0
s = Decimal(1);
pi = Decimal(3);

n = int(sys.argv[1])

for i in range(2, n * 2, 2):
pi = pi + s * (Decimal(4) / (Decimal(i) * (Decimal(i) + Decimal(1)) * (Decimal(i) + Decimal(2))))
s = -1 * s
c = c + 1
print (c, (pi))

@thecarpentries Curriculum Team opened a pull request on generative AI for coding in the Software Carpentry Plotting and Programming with #Python lesson! We want your feedback, as this will be the foundation for similar updates across Data Carpentry, Library Carpentry, and Software Carpentry lessons. Let’s shape this together!

🔗 github.com/swcarpentry/python-

[This repeats the changes made in #695 (then reverted in #696). I am sorry for the confusion! 😅 The pull request will stay open for at least a week, to give community members time to provide feedba...
GitHub(Re-)Add content on generative AI by tobyhodges · Pull Request #697 · swcarpentry/python-novice-gapminderBy tobyhodges

PersistDict

A persistent dictionary implementation backed by an #LMDB database. PersistDict looks and acts like a #Python dictionary but persists data to disk, making it ideal for caching and persistent storage needs.

PersistDict makes it simple to add persistent caching to any Python application. While earlier versions (before 2.0.0) used #SQLite, the current version leverages LMDB for better performance and reliability in concurrent environments.

pypi.org/project/PersistDict/

pypi.orgClient Challenge