python

Back Open Paginator
04.10.2025 02:51
villares (@villares@ciberlandia.pt)

Sábados de manhã em outubro e novembro no #SescAvPaulista: Grupo de estudos em #Python

sescsp.org.br/programacao/grup

#SescSP #SãoPaulo




Show Original Post


04.10.2025 01:45
leanpub (@leanpub@mastodon.social)

New 📚 Release! Practical Pydantic: The Missing Guide to Data Validation in Python by Nuno Bispo

Bad data breaks good code.

Enter Pydantic.

Find it on Leanpub!

Link: leanpub.com/practical-pydantic





Show Original Post


04.10.2025 01:00
lobsters (@lobsters@mastodon.social)

PEP 810 – Explicit lazy imports | peps.python.org lobste.rs/s/efuao3
peps.python.org/pep-0810/




Show Original Post


04.10.2025 00:05
RodStephens (@RodStephens@hachyderm.io)

Make a skinned form in Python, Part 1
rodstephensbooks.com/skinned_f
#Python #SkinnedForms #UserInterface #UI





Show Original Post


03.10.2025 23:58
miketheman (@miketheman@hachyderm.io)

One method to understand some non-trivial #Python modules is to try to add high-precision type hints to help you build up a mental model of how things connect




Show Original Post


03.10.2025 22:28
mariatta (@mariatta@fosstodon.org)

At #DjangoCon US, I shared my own personal QR Code Generator app, never expecting anyone to try to create an account there.

I appreciate your enthusiasm, but I don't actually want to collect your personal information 😅 You can generate QR code using my site without creating an account!

Anyway, I needed to figure out how to disable account creation on my site using django-allauth. If you have a similar problem, check my blog on how to do it.

mariatta.ca/posts/disabling-si

#Python #Django




Show Original Post


03.10.2025 22:22
c_dan4th (@c_dan4th@mstdn.social)

Y'all, I've just made a #python coding breakthrough! The intermediate state between "True" and "False" is not, apparently "Frue". It took me an embarrassing amount of time to learn this.
#amcoding




Show Original Post


03.10.2025 22:20
lobsters (@lobsters@mastodon.social)

PEP 810: Explicit lazy imports lobste.rs/s/bqecne
discuss.python.org/t/pep-810-e




Show Original Post


03.10.2025 22:04
grobi (@grobi@defcon.social)

nazgul is a joint effort by:

* J. Michael Burgess
* Ewan Cameron
* Dmitry Svinkin

Nazgul is a framework for performing GRB localization via fitting non-parametric models to their data time-series and computing the the time delay between them. It is currentrly built upon the magic of Stan and implements a parallel version of non-stationary Random Fourier Features. The idea is get away from heuristic methods such as cross-correlation which do not have a self-consistent statitical model.

The idea is that satellites throughout the Sol system observe gamma-ray bursts at different times due to the finite speed of light. This creates a time delay in their observed light curves which can be used to triangulate the gamma-ray burst position on the sky. These triangulation create annuli or rings on the sky which Nazgul searchs for so that it, in the darkness, it can bind them to a location on the sky.

Left image:
The heriarchical model is shown below and details can be found in here arxiv.org/abs/2009.08350. If you find the method and/or code useful in your research we ask that you please cite the paper.

Right image:
The sister program to simulate time-delayed light curves is pyIPN and can be used to generate time-delayed light curves for algorithm testing.
github.com/grburgess/pyipn

#space #code #python #science #astronomy #astrophysics #tech #NASA





Show Original Post


03.10.2025 21:30
gtronix (@gtronix@infosec.exchange)

Learning #python
I want to experiment with datas and api this weekend. Any fun little project ideas with #pandas, #numpy or #beautifulsoup ?




Show Original Post


03.10.2025 21:20
rasterweb (@rasterweb@mastodon.social)

I learned about PsychoPy which is an open-source package for running experiments in Python (a real and free alternative to Matlab).

Anyone using it?

psychopy.org/




Show Original Post


03.10.2025 21:17
GripNews (@GripNews@mastodon.social)

🌗 Python PEP 810 – 明確的延遲匯入
➤ 透過明確語法,提升 Python 程式啟動效能與資源使用效率
pep-previews--4622.org.readthe
這份 Python Enhancement Proposal (PEP) 提出了「明確的延遲匯入」作為一項語言級別的新功能。此提案旨在解決 Python 模組載入時即時執行的問題,允許開發者明確標記個別匯入為「延遲」。如此一來,模組的載入與執行將延遲到第一次使用該匯入名稱時才進行,進而顯著降低程式啟動時間、記憶體使用量,並減少不必要的計算。這對於命令列工具、測試套件以及依賴圖龐大的應用程式尤其有益,同時保持了對舊版 Python 的完全向後相容性。
+ 這項提議太棒了!特別是對於那些需要快速啟動的命令列工具,可以省去很多載入不必要模組的時間。
+ 我一直在尋找一種更清晰、更標準化的方式來處理那些僅用於型別提示的匯入,延遲匯入聽起來是個絕佳的解決方案。




Show Original Post


1 ...1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 ...1558
UP