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

vpicavet,
@vpicavet@mastodon.social avatar

@underdarkGIS @oslandia Yes, and that should definitely not have happened ! Changing a major version of critical Python dependency in a minor QGIS release, without any warning, is totally nuts. There should have been a QEP for that, and at least clear communication to plugin developers.

underdarkGIS,
@underdarkGIS@fosstodon.org avatar

@vpicavet yes, bit strange, but I might have missed messages. There's still this open issue, for example, https://github.com/qgis/QGIS/issues/54491

pawamoy, to python
@pawamoy@fosstodon.org avatar

I've been working on a tool to visualize code flows. It's understanding-oriented, meant to include interactive graphs in your docs for users to see interactions between different parts of your code base.

It records the execution of a Python function/program, then generates a call graph with and replays all function calls/returns.

For example, here is Griffe visiting modules (high speed for the dopamine):

A function call graph with a dot moving between nodes, representing function calls and function returns.

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

hugovk, to python
@hugovk@mastodon.social avatar

🎉 We just had 3 successful core dev votes in parallel!

Each dev focuses on different yet important areas, reflecting the size & breadth of the CPython project.

Please give a big welcome to:

🍏 @freakboy3742 added iOS support ()
https://discuss.python.org/t/vote-to-promote-russell-keith-magee/53821

🐛 Tian Gao works on the pdb debugger
https://discuss.python.org/t/vote-to-promote-tian-gao/53895

🏎️ @mdboom works on benchmarking in the Faster CPython team
https://discuss.python.org/t/vote-to-promote-michael-droettboom/54227

That's 5 new so far this year, same as last year 🚀
https://hugovk.github.io/python-core-devs/by-year.html

thebishopgame, to python
@thebishopgame@wandering.shop avatar

Working in #Python is weird because sometimes I have to google something like "unable to import pandas" and I'm pretty sure I'm on a government list now.

nedbat, to python
@nedbat@hachyderm.io avatar

Mostly you shouldn't subclass built-in types. But if you do, dict subclasses can define missing: it's called when a key is missing. Instead of hiding a dict in a function as a cache, how about hiding a function in a dict!? A Fibonacci dictionary:

mblayman, to python
@mblayman@mastodon.social avatar

🐍 On this Building SaaS with and stream, I changed a critical API to the scheduling portion of my homeschool app, and we worked through all the fallout of that change. https://www.youtube.com/watch?v=R2KW0apkRYA

ben, to Blog
@ben@mastodon.bentasker.co.uk avatar

New #blog: Building a self-hosted meta-data only #search engine

I've long used search to help find things in amongst my notes, websites etc.

But, full-text search was starting to get a bit counter-productive, so I used #python to write myself a search engine that only indexes metadata.

This post talks about why, how it performs and how the underlying storage engine works.

https://www.bentasker.co.uk/posts/blog/software-development/building-a-self-hosted-url-and-tags-search-engine.html

conansysadmin, to opensource
@conansysadmin@mstdn.social avatar

I now hunt the great hairy mammoth. Learn to enchant a great snake to send messages here: https://cromwell-intl.com/open-source/python-mastodon-twitter-automation/?s=mc

djangonews, to django
@djangonews@socialhome.network avatar

PyCharm & Django Campaign 2024

The Django Software Foundation's biggest fundraising event of the year is here!

Get 30% off PyCharm, Support Django

Each year, our friends at JetBrains, the creators of PyCharm, run an incredible deal. You get a 30% discounted year of PyCharm, AND the DSF gets 100% of the money. Yes, 100%! It's making a donation and directly getting a great product in return!

The fundraiser will be split this year, and the first half runs until June 15th! Buy PyCharm and support Django!

In the past, JetBrains through the PyCharm fundraiser has provided approximately one quarter of the Django Software Foundation's budget!

Donations like this fundraiser allow the DSF to function. Our two wonderful Fellows, Natalia Bidart and Sarah Boyce keep Django running smoothly, picking up pieces that would otherwise not happen.

The other side of the DSF is our support for Django groups across the globe. We supported every DjangoCon, particularly with donating funding towards opportunity grants for more people to be able to attend these conferences. The DSF also supports smaller events around the world, including DjangoGirls events.

Finally, I want to tell you about PyCharm itself.

PyCharm is an integrated development environment (IDE) that helps professional Python web developers be more productive, be more confident, and write better code. It supports the full Python web workflow out of the box, including popular Python web frameworks, such as Django, frontend technologies, and databases.

Here are the main benefits of using PyCharm in your Django development:

  • The built-in Django run/debug configuration type makes it easy to configure and start the Django server.
  • First-in-class code assistance for Django and Django templates, including navigation between views and templates, the ability to debug templates visually.
  • Code assistance for the Django REST Framework.
  • Refactoring and navigation for endpoints across your project in the Endpoints tool window.
  • Built-in HTTP Client.
  • Database integration, including PostgreSQL, SQLite, Redis and more!
  • Support for your frontend stack: JavaScript, React, Node.js, Tailwind CSS, and more.

Get Django work done with PyCharm, a powerful IDE tailored for Django web development!

Consider this the easiest charitable donation you will ever make, when you get such a great product in return!

Get 30% off PyCharm, Support Django

Other ways to donate

If you would like to donate in another way, especially if you are already a PyCharm customer, here are other ways to donate to the DSF:

Thank you,

Catherine Holmes

DSF Assistant

https://www.djangoproject.com/weblog/2024/jun/06/pycharm-django-campaign-2024/

treyhunner, to python
@treyhunner@mastodon.social avatar

Recursion happens when a function calls itself.

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

ramikrispin, to python
@ramikrispin@mstdn.social avatar

Posit recently released a new Shiny extension for VScode, supporting both Shiny for R and Python 🚀

More details on the release post 👇🏼
https://shiny.posit.co/blog/posts/shiny-vscode-1.0.0/

Extension 🔗: https://marketplace.visualstudio.com/items?itemName=Posit.shiny

phildini, to python
@phildini@wandering.shop avatar

Oh this is extremely handy... someone on the core team seems to be really focusing on CLI utilities and I love this
https://mastodon.social/@treyhunner/112554261035770847

treyhunner, to python
@treyhunner@mastodon.social avatar

The exclusivity of the stop index actually has a nice side effect: if you slice up to index 3 and then start slicing again from 3 onward, those two slices won't overlap.

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

#Python

ehmatthes, to python
@ehmatthes@fosstodon.org avatar

I updated simple_deploy's test suite to use uv if it's available, and fall back to pip if uv isn't available.

A uv-enabled run takes about 17.5s on my main system. A pip-based run takes about 45s.

On my Windows VM, a uv-enabled run takes about 55s. A pip-based run takes 175s.

webology,
@webology@mastodon.social avatar

@ehmatthes it's about 2x to 3x faster for me too. Switching from "pip-tools compile" to "uv pip compile" is a made-up 10x faster.

I also noticed a huge speed-up when re-installing via uv over pip. Same with the --upgrade flag.

  • 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