And back to green!
#Python #Python314

#memes #datascience #python #coding #programming #memes

So cool to stumble on an episode of @pythonbytes where they talk about my tool Yore ☺️
https://www.youtube.com/live/HCRfjkbSbmE?si=Ydiuz_vxxHX5Cih6
https://github.com/pawamoy/yore
Yore supports marking legacy code for Python versions but also for the current project version. I plan to support dependencies versions too (and more ecosystems, like Rust).
Starting out with geographic data in Python? 🌍🐍
Chapter 1 of Geocomputation with Python introduces vector & raster models + core tools (geopandas, shapely, rasterio).
👉 https://py.geocompx.org/01-spatial-data

Am I taking crazy pills? I count 3+ drop in replacements for `random` on pypi.* But the #python standard library `secrets` is not a drop in replacement for `random` except for a subset of function signatures. i.e. you can't generally write `import secrets as random`
Do I need to publish a drop in replacement for `random` that has all the signatures and repoints everything to SystemRandom?
* these events might be statistically independent
Wasted half my Saturday free time on that.
Then ran into issues with #python C API reference counts. In the end I think I’m going to have to yolo this one. There’s not enough time to VERIFY THE ENTIRE MEMORY MANAGEMENT OF EVERY FILE. Yeah, not going to happen.
Next up, 100% of the GitHub builds are broken for various reasons and need attention. From GitHub runners that were retired to breaking changes in various dependencies.
But first a few Sunday chores and #coffee
Aprender Django https://myblog.clonbg.es/aprender-django/ #Programación #Python https://clonbg.es

BREAKING NEWS : 20% TARIFFS ON JS IMPORTS
I don't remember who sent me this, but is it gold.
And works for #python too!

freqAI-LSTM トレーディングモデル完全ガイド
https://qiita.com/tikeda123/items/eeeaf29932b2d8817fd7?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
freqAI-LSTM トレーディングモデル徹底解説
https://qiita.com/tikeda123/items/1923859e6af12e93a9fe?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
In case you want to ship your software as #APT/#Debian package, you can find a number of examples here:
https://github.com/starwit-trainings/debian-package-examples
So far there are some #Python examples, but I consider doing also some with #Rust. Stay tuned - #FOSS rulez!
EvoDevo Papers: full archive and search functionality
I’ve released a major update to EvoDevo Papers. The database now has all the papers posted since 2015 and a new search form for swiftly exploring the contents.
Full archive
In the previous update, I improved the website by creating separate pages for feeds, posts and individual papers to make the database contents accessible to anyone wanting to discover recent papers in the field of evo-devo. However, the archive was incomplete. None of the papers posted during the Twitter era (2015–2023) were present because the website only had the papers posted after the big refactoring. But, now, this is solved. I imported all the legacy tweets to the database. EvoDevo Papers now has about 1.8k papers.
Search
With this many papers, browsing and finding relevant posts becomes harder. To improve this I implemented a basic search functionality and, I have to say, I’m quite pleased with the results:
Screencast of new search form in EvoDevo Papers.Searching is fast and unobtrusive and works great for a quick check using your favorite keywords. But note, however, that only the papers’ titles are indexed. This is a limitation from the original feeds which don’t add other information reliably, like the abstract or the authors; the only field guaranteed to be there is the title.
On the technical side, implementing a search like this was new to me. The website is based on Django but it’s rendered to static files using django-distill. Therefore, I couldn’t use a standard SearchVector, for example, as the website is made of static HTML files. After some searching and testing, I eventually settled on a JavaScript library called FlexSearch. It can index and perform the search entirely on the client-side, and it’s fast. And after a couple of iterations, I even got the autocomplete and the word highlighting to work. I hope these features improve the search experience for the evo-devo enthusiasts using the website.
Outlook
The full archive and search functionality mark a milestone for EvoDevo Papers. I consider the project more or less feature-complete. Maybe I’ll do improvements here and there, but I likely won’t implement major new features. Using RSS feeds as a source of content has its limitations, which I plan to overcome in another project (still in development). Now, for EvoDevo Papers, I will focus on adding more sources, like other journals and preprint repositories, and on improving the filters of search-based feeds to increase the representation of evo-devo papers collected by the app.
—
URL: https://brunovellutini.com/posts/evodevo-papers-search/
#bibliography #django #evoDevo #evodevoPapers #javascript #python #webDevelopment
