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

linuxmagazine, to RaspberryPi
@linuxmagazine@fosstodon.org avatar

Have you heard about @makerspace
Check out projects on smart homes, retro gaming, laser cutting, and more! Join now at https://makerspace-online.com

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/

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! ✨

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.

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/

villares, to genart Portuguese
@villares@pynews.com.br avatar
ramikrispin, to python
@ramikrispin@mstdn.social avatar

This looks like a really cool course 👇🏼

College Precalculus – Full Course with Python Code by Ed Pratowski and freeCodeCamp focus on the foundation of calculus with Python implementation. This 12 hours course covers the following topics:
✅ Core trigonometry
✅ Matrix operation
✅ Working with complex numbers
✅ Probability

https://www.youtube.com/watch?v=Y8oZtFYweTY

#python #DataScience #MachineLearning #math

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.

nedbat, to random
@nedbat@hachyderm.io avatar

@andreasjung It seems like you started this poll in bad faith. You have a clear opinion on the subject. You were not looking for opinions from people, you were trying to start arguments.

hugovk,
@hugovk@mastodon.social avatar

@treyhunner @nedbat @andreasjung Certainly looks bad faith when the Mastodon poll is deleted (79% yes, 66 votes) but not the one on Twitter (33% yes, 3 votes)

Twitter: Pinned Andreas Jung @_andreas_jung 8h #PyCon #PyConUS @pycon 2025 should/must have a masking mandate (if the situation is comparable to 2024)? @thepsf #Python Yes 33% No 67% 3 votes. 6 days 15 hours left

paulrickards, to retrocomputing
@paulrickards@mastodon.social avatar

maintenance today. My HP 7585B stopped responding over RS-232. Diagnostics revealed a problem with the interface card. Luckily I have a spare machine that can donate a new working card!

paulrickards,
@paulrickards@mastodon.social avatar
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!

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

leanpub, to python
@leanpub@mastodon.social 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.

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/

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.

Posit, to python
@Posit@fosstodon.org avatar

The April 2024 release of Posit Package Manager brings support for air-gapped PyPI repositories, more flexible curated CRAN repositories, performance improvements and more!

Learn about it in the blog post: https://posit.co/blog/posit-package-manager-2024-04-0/

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.

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 😬)

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