treyhunner, to python
@treyhunner@mastodon.social avatar

I made a decorator that immediately calls the function it decorates within a loop.

I do not regret my decision.

https://treyhunner.com/2024/06/a-beautiful-python-monstrosity/

#Python

o76923, to python
@o76923@kitty.social avatar

I still think it's nuts that #Python's best solutions for rendering #SVG are a bunch of wrappers around CairoSVG with the two next best solutions being use Inkscape from the command line and wand, a wrapper around ImageMagick.

CyrilBrulebois, to python
@CyrilBrulebois@mamot.fr avatar

Just reminded that #Python's considerations to anything packaging-related is a trashfire: deprecating distutils, including distutils.version, pointing to an external module that provides “Reusable core utilities for various Python Packaging interoperability specifications.”

ramikrispin, to python
@ramikrispin@mstdn.social avatar

(1/5) 𝐇𝐚𝐩𝐩𝐲 𝐒𝐚𝐭𝐮𝐫𝐝𝐚𝐲! ☀️
Here are a few steps you can take to reduce your Python 🐍 image size 👇🏼

TLDR - Using slim image and multi-stage build

#mlops #python #datascience #docker

glyph, (edited ) to random
@glyph@mastodon.social avatar

Python 3.12.3 came out a few days ago, and that means it's time for my favorite infrequently-run shell command: https://pypi.org/project/MOPUp/

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

@treyhunner does a deep dive of #Python's many command-line utilities. 🙏 🔥

First of all it's good to know that you can use -m to run a Python module as if it were a script 💡

There are some nifty ones like inspect / json.tool / zipapp. You'll surely pick up new ones ... 💪

ThePSF, to python
@ThePSF@fosstodon.org avatar

There are still a few days left to take advantage of the latest package from @nostarch: Dive into DevOps!
You can pick up 5 great titles for just $1, or go up to $35 for all 22 items in this "indispensable IT library".
Either way, be sure to use "Adjust Donation" to choose how much of your purchase goes to the PSF🐍❤️

https://www.humblebundle.com/books/dive-into-dev-ops-no-starch-books

https://www.humblebundle.com/books/dive-into-dev-ops-no-starch-books

underdarkGIS, to windows
@underdarkGIS@fosstodon.org avatar

Note to self: Between #QGIS versions 3.34.5 and 3.34.6, the packaging for the #Windows version of QGIS changed from #Python 3.9 to Python 3.12.

Will have to test if/how #Trajectools is affected

HT: https://gitlab.com/Oslandia/qgis/qduckdb by @oslandia

pyOpenSci, to KindActions
@pyOpenSci@fosstodon.org avatar

💜 We would love nothing more than to have you join our ever-growing community of volunteers! We're currently expanding our editorial board, and could use your help.

Volunteer editors:
🔍 find reviewers
👷‍♀️ oversee the review process
🌸 support submitters
✅ determine package acceptance

Questions? Drop 'em in the comments below!

Learn more: https://www.pyopensci.org/blog/pyos-call-for-editors-may-2024.html

leahawasser, to python
@leahawasser@fosstodon.org avatar

i wrote another blog post on my personal experiences with packaging as a teacher, a user and a maintainer. And how giving a tech talk on a big stage felt! (hint: scary!)

i'm curious if others have experienced imposter syndrome and/or challenges navigating our packaging ecosystem / data science ecosystem! let me know what you think. 💗

https://www.pyopensci.org/blog/python-packaging-friends-dont-let-friends-package-alone.html

retiolus, to python
@retiolus@mamot.fr avatar
ThePSF, to python
@ThePSF@fosstodon.org avatar

We want your vote! Every voting-eligible PSF Member (Supporting, Managing, Contributing, and Fellow) needs to affirm their membership to vote in this year’s Board election to ensure that we meet quorum as required by our bylaws 🗳️ #python
https://pyfound.blogspot.com/2024/06/affirm-your-psf-membership-voting-status.html

ramikrispin, to datascience
@ramikrispin@mstdn.social avatar

Building a GPT-2 from scratch 🚀

Andrej Karpathy released today a tutorial for reproducing GPT-2 from scratch. OpenAI released GPT -2 in 2019, and it is a 124M parameters model. This four-hour tutorial covers setting up the GTP-2 network and then training and optimizing its parameters.

It looks like a really cool tutorial; I hope to get the bandwidth to watch it in the coming weeks!

📽️ https://www.youtube.com/watch?v=l8pRSuU81PU

mblayman, to python
@mblayman@mastodon.social avatar

You already know about 🐍 Snakes on a Plane, but how about Planes on a Serverless? At @pythonfrederick, @pierson_pat showed off the openly available plane data from 1090MHz and how he maps those flights on the web with a #Python lambda. https://www.youtube.com/watch?v=dMFWMTIyEgU

nedbat, to python
@nedbat@hachyderm.io avatar

I guess the time has come. I think I have to finally figure out what #Python's sys.meta_path does...
https://docs.python.org/3/library/sys.html#sys.meta_path

talkpython, to ai

The latest episode of @talkpython with @ines and @mkennedy is out! #ai #python

#465: The AI Revolution Won't Be Monopolized

https://talkpython.fm/episodes/show/465/the-ai-revolution-wont-be-monopolized

leanpub, to devops
@leanpub@mastodon.social avatar

Learn Kubernetes & Docker - .NET Core, Java, Node.JS, PHP or Python by Arnaud Weil is free with a Leanpub Reader membership! Or you can buy it for $11.99! http://leanpub.com/k8s

frankel, to python
@frankel@mastodon.top avatar

's many command-line utilities

https://www.pythonmorsels.com/cli-tools/

dwarmstrong, to python
@dwarmstrong@fosstodon.org avatar

Sometimes photo files are created with prefix "IMG_*", or saved in uppercase, or with suffix ".jpeg", or something else entirely. So I created a python script to rename photo(s) using the datetime_original attribute from EXIF metadata in format YYYYMMDD_HHMMSS.jpg.

Setting this up with a daily cronjob will automatically locate and rename new photos to the desired format:

https://www.dwarmstrong.org/rename-photos/

#Python #Programming #Linux

mblayman, to python
@mblayman@mastodon.social avatar

🐍 On this Building SaaS with #Python and #Django, I'm building a new feature that allows users to do bulk deletion on tasks that they create for their students' courses. https://www.youtube.com/watch?v=heWgYkMh1bw

treyhunner, to python
@treyhunner@mastodon.social avatar

Well, if you're trying to delete a block of code but you don't want to lose it, and you're using Git (or a similar version control system) I would commit that code to Git and then delete it.

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

#Python

phildini, to fediverse
@phildini@wandering.shop avatar

I wonder if @devs keynote is going to end up being relevant to my @NorthBayPython talk about building an #ActivityPub server in #python 🤔
https://fosstodon.org/@haubles/112575770024394167

leanpub, to gpt
@leanpub@mastodon.social avatar

The Generative AI Mastery Bundle https://leanpub.com/b/the-generative-ai-mastery-bundle by Aymen El Amri is the featured bundle on the Leanpub homepage! https://leanpub.com #ebooks #GPT #WritingAndPublishing #Marketing #ComputerProgramming #Python #SoftwareEngineering

kjaymiller, to python

A live stream with AI, testing, and OpenTelemetry! A little something for everyone!

Lot's of #python as well.

Also ask questions and chill as well.

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

mblayman, to python
@mblayman@mastodon.social avatar

🐍 On this Building SaaS with and , I started a new feature to add a PDF report bundle to my homeschool app. This will be useful when a user completes their school year and needs records of all the year's activities. https://www.youtube.com/watch?v=cM2sA1AP3fM

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