engiqueering, to python
@engiqueering@gaygeek.social avatar

trying to implement some functionality in I'm mentally calling an "echo" but that's probably got an actual name already. the idea is basically wrapping the setters of properties of one object so they store their values in an "echo" object as regular attributes.

this allows for objects that only stores property values (i.e. data only, no callables). these will be easier to persist to an object database, and with a reversal tool should function as a form of universal-ish storage

phildini, to python
@phildini@wandering.shop avatar

Hi folks! Former chair of @ThePSF Conduct Working Group with a message that might be timely!

If you see a member of the community behaving against the spirit or the letter of the CoC, especially if the comments are in public about an official event, especially if using a hashtag, please report to conduct-wg@python.org as you are comfortable.

The WG might not be able to take action due to the CoC’s scope, but its useful background for the inevitable next incident.

Thanks! ✨

iqbalabd, to python
@iqbalabd@mtd.pythonasia.org avatar

First thoughts coming back from #PyConUS #pyconus2024: Do you know anyone who works hard but is unrecognized in your #Python community? Nominate them for stuff at the @thepsf ! Don't know what or how? I've written a README here:
https://iqbalabdullah.net/en/posts/2024/05/nominating-pythonistas-at-the-psf/

CarstenPfeffer, to gamedev
@CarstenPfeffer@mastodon.gamedev.place avatar

Yesterday, I wrote a update for my after four years of working on other projects. It feels good to return to the unfinished update 1.0.2 for my game "The Fire of Ardor".

I have a made couple of improvements lately and plan to release the update this summer:

https://cpfr.gitlab.io/the-fire-of-ardor/blog/2024-05-22-a-late-but-massive-update/

SpeechToTextCloud, to python
@SpeechToTextCloud@techhub.social avatar

Search vulnerabilities in Python packages:

$ curl -sX POST -d '{"version": "2.4.1", "package": {"name": "jinja2", "ecosystem": "PyPI"}}' 'https://api.osv.dev/v1/query' | jq '.vulns[].summary | select( . != null )'

=== Begin ===
"Jinja2 sandbox escape via string formatting"
"Incorrect Privilege Assignment in Jinja2"
"Insecure Temporary File in Jinja2"
"Regular Expression Denial of Service (ReDoS) in Jinja2"
"Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter"
"Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter"
"High severity vulnerability that affects Jinja2"
=== End ===

Useful jq query strings:
summary, details, aliases

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

🚀 Speed up your code 🐍 with caching ... 💡

You can use the functools.cache() decorator to cache expensive function results easily boosting performance. 😍📈

Simple example below:

anders, to ai
@anders@thoresson.social avatar

If I want to transcribe every new audio file that appears in a folder on my Mac using (Mac)Whisper and then run the transcription through a LLM using Ollama to clean it up, what are my best options? Do I have to write some Python code myself or is the readymade tools for this?

doctormo, to python
@doctormo@floss.social avatar

I'm slowly making my way through a 8 thousand line python addition to 's library for parsing text and font elements in properly. It's important and useful, but it's also a lot.

I'm not sure how to say "please run pylint over your code because my eyes hurt trying to read this". without sounding like an ungrateful jerk. 😅

ZesteDeSavoir, to python French
@ZesteDeSavoir@framapiaf.org avatar

La PyConFR, la convention #python francophone, c’est pour bientôt ! Si vous souhaitez proposer une conférence, un atelier, ou un sprint de #programmation c’est le moment

https://zestedesavoir.com/billets/4677/pyconfr-2024-strasbourg/

xgranade, to python
@xgranade@wandering.shop avatar

Welp, @andreasjung blocked me for asking him to not use his platform to spread COVID denialism. That's his right to do so, of course, but it really makes me sad that someone in the community would do this.

To everyone who supported and went along with the mask policies at PyCon this year, thank you so much.

villares, to genart Portuguese
@villares@pynews.com.br avatar
chrisjrn, to python
@chrisjrn@social.coop avatar

Now that #PyConUS is over, why not attend and support a regional #Python conference?

PyCon US sold out this year, and it will probably continue to do so. Smaller, regional events are going to be a more important part of how we support the growth of our community, but we need your support -- attendance and sponsorship -- to fulfil that role.

I run @NorthBayPython (#NBPy), but there's plenty of others in the US, including fellow @ThePSF events @pycascades and @pyohio off the top of my head.

doctormo, to python
@doctormo@floss.social avatar

Are there any videos for ? I saw a bunch of comments about the keynote and other talks about they seemed really interesting, but I can't find anything after the fact.

treyhunner, to python
@treyhunner@mastodon.social avatar

With Python's slicing syntax, the first item is the start index, and the second item is the stop index.

Read more 👉 https://trey.io/ZEuawA

niccokunzmann, to python
@niccokunzmann@toot.wales avatar

I just found #Flet - which allows you to build #Python apps for the browser, Mac, Windows, Linux, Android and iOS! https://flet.dev/ 😍 I am excited!

pyOpenSci, to opensource
@pyOpenSci@fosstodon.org avatar

We’re closing out our Editor Spotlight with a focus on Bane Sullivan, from KoBold Metals!

AND we’re looking for additional volunteer editors to join our team, especially if you have expertise in climate and/or energy!

pyOpenSci Editors:

🔍 find reviewers
👷 oversee the entire review process for a
💜 support submitting authors and reviewers
✅ determine if package is in scope

Questions? Drop ‘em below!

djangonews, to django
@djangonews@socialhome.network avatar

Django 5.1 alpha 1 released

Django 5.1 alpha 1 is now available. It represents the first stage in the 5.1 release cycle and is an opportunity for you to try out the changes coming in Django 5.1.

Django 5.1 brings a kaleidoscope of improvements which you can read about in the in-development 5.1 release notes.

This alpha milestone marks the feature freeze. The current release schedulecalls for a beta release in about a month and a release candidate about a month from then. We'll only be able to keep this schedule if we get early and often testing from the community. Updates on the release schedule are available on the Django forum.

As with all alpha and beta packages, this is not for production use. But if you'd like to take some of the new features for a spin, or to help find and fix bugs (which should be reported to the issue tracker), you can grab a copy of the alpha package from our downloads page or on PyPI.

The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E.

https://www.djangoproject.com/weblog/2024/may/22/django-51-alpha-1-released/

nixCraft, to python
@nixCraft@mastodon.social avatar

Python has for loop syntax with else clause. They also have a while-else construct too. Would you use it?

moiss, to python Spanish
@moiss@mastodon.social avatar

Una recomendación de libro de un poco mas "avanzado". Python Distilled.

Llevo la mitad mas o menos y estoy aprendiendo un montón de cosas últiles.

scy, to python
@scy@chaos.social avatar

Since sometimes I'm eagerly waiting for to update to a new version, I now have a small command to check it for me.

https://codeberg.org/scy/dotfiles/src/commit/5679998191b7c6f76058050b26976b94c35e1e52/bin/codeberg-version.py

(Made it a goal to not require third-party libraries or tools for such a small task, but damn I totally get why nobody is using 's builtin HTTP client directly 😬)

adamchainz, to python
@adamchainz@fosstodon.org avatar

🐍♦️ Use Git to pass pytest a list of all modified test files:

pytest $(git diff --name-only '/test_.py')

Adjust the pathspec (Git’s “glob” syntax) if you have a different test file naming convention.

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

🐼📊 Skip unnecessary rows & columns when loading Excel data with

🔍 In the example below we skip 7 rows and load only cols C & D.

villares, to python Portuguese
@villares@pynews.com.br avatar
miketheman, to python
@miketheman@hachyderm.io avatar

Well, another is done (for me - continue for another couple of days!)

It was excellent catching up with old friends and meeting tons of new ones. Pittsburgh was definitely a super cool vibe, 2025 should be fun too.

I'm looking forward to recharging my depleted physical batteries, so I can jump into all the important work we have ahead of us to continue to support this amazing community.

See you online somewhere!!

codeandsupply, to Pittsburgh
@codeandsupply@hachyderm.io avatar

Hey folks, one last entreaty before the hashtag trails off.

We could really use your financial support. Our non-profit is the travel sponsor for US 2024.

We've recouped only 4% of what we gave. We're here to serve & happy to do it but could really use some boosts across the fediverse to drive donors so we can do it again.

Pls donate to help more people experience through tech conference travel:

https://codeandsupply.fund/donate

And then boost!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • magazineikmin
  • InstantRegret
  • thenastyranch
  • cubers
  • Youngstown
  • ethstaker
  • slotface
  • mdbf
  • rosin
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • khanakhh
  • tacticalgear
  • ngwrru68w68
  • cisconetworking
  • modclub
  • everett
  • osvaldo12
  • normalnudes
  • provamag3
  • anitta
  • tester
  • Leos
  • lostlight
  • All magazines