I'm still not having a great time with #Python. Seemingly simple things require poking around and searching on StackOverflow to an extent C# and PHP avoid by having better docs. I recently made a parser with BeautifulSoup. Now I wanted to extent the code to make another parser but this time the response is JSON, not HTML. It took me like 15 min to figure out which method I need because urlopen() returns Any so my IDE can't help and HTTPRequest, which is what it really returns, is undocumented.
@diazona there's also beartype for runtime type checking https://github.com/beartype/beartype
"Beartype is an open-source pure-Python PEP-compliant near-real-time hybrid runtime-static third-generation type checker emphasizing efficiency, usability, unsubstantiated jargon we just made up, and thrilling puns."
#python #typechecking #beartype
@EMR @TomSwirly @stuartl @felix Huh, interesting idea. I haven't heard of such a thing but I wouldn't be surprised if the big wrapper frameworks are attempting to do it, or at least have thought about it.
Steam is a good tool for #gamingonlinux #linuxgaming but people have games on other storefronts.
There are partial and unfinished tools that can support #EA, #Ubi and #Battlenet written in #Rust, #typescript and #python, that would make #Heathstone, #wow / #worldofwarcraft, #TheDivision and others more accessible on Linux. Can we find some #fedihelp to get these over the finish line?
I am sure there are people out there that play games on these platforms, can write code and maybe want to get there hands dirty with a little bit of #reverseengineering
Senior Psychometrician
Gap International
Gap International, a leading global management consulting firm, is looking for an experienced and innovative Senior Psychometrician.
See the full job description on jobRxiv: https://jobrxiv.org/job/gap-international-27778-senior-psychometrician/
#phd #psychometrics #Python #r #sas #spss #ScienceJobs #hiring #research
https://jobrxiv.org/job/gap-international-27778-senior-psychometrician/?fsp_sid=3490
Gympass is hiring Senior Software Engineer
🔧 #python #api #aws #kafka #nosql #postgresql #sql #seniorengineer
🌎 Remote; Brazil
⏰ Full-time
🏢 Gympass
Job details https://jobsfordevelopers.com/jobs/senior-software-engineer-at-gympass-com-dec-30-2024-2dd137?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring
Dear colleagues,
I just finished implementing my fancy government making procedure in #python. Here it is:
1: def make_french_government():
2: past_governments = []
3: current_government = Government(will_fail=True)
4:
5: while current_government.will_fail:
6: past_government.append(current_government)
7: current_government = past_government[-1]
8: print("cocorico!")
Everything seems fine to me but #ruff is complaining about a possible infinite loop on line 5. And about a superfluous assignment on line 7. I don't get it.
Please help,
Sincerely,
E. #Macron
P.S. Please someone hit ctrl-c.
Übungscode #Python
import numpy
import numpy as np
Z = np.zeros((2, 4))
print(Z)
Z = np.zeros((2, 4), dtype=int)
print(Z)
@EMR @TomSwirly @stuartl @felix Well what I was saying is that mypy in strict mode (or an equivalent) plus Pydantic gets you most of the way toward solving the type consistency problem, but it's not always enough. Particularly when you have untyped dependencies.
@TomSwirly @stuartl @felix Pydantic isn't the kind of thing I was thinking of. It does runtime type checking for its own data types, whereas I'm thinking of a package that does some AST hacking or something on that level to validate type hints at runtime *everywhere* in the program. Or at least, that's the idea.
Personally I've found it pretty effective to use strict type enforcement (like mypy --strict), along with validating the type of all external data coming into the program (which Pydantic can help with), and a few strategically placed assertions to shore up the gaps. With that combination I don't generally miss a strict type system.
🎉 Django PostgreSQL Anonymizer v0.1.0b1 (Beta) is live!
Database anonymization for Django + PostgreSQL with role-based access, context managers, pre-built presets & comprehensive docs.
📦 pip install django-postgres-anonymizer==0.1.0b1
📚 https://django-postgres-anonymizer.readthedocs.io/
🐙 https://github.com/CuriousLearner/django-postgres-anonymizer
Looking for beta testers!
#Django #PostgreSQL #Python #DataPrivacy
🌖 pyscn:智慧型 Python 程式碼品質分析工具
➤ 提升 Python 程式碼品質與可維護性的利器
✤ https://github.com/ludo-technologies/pyscn
pyscn 是一款專為 Python 開發者設計的智慧型程式碼品質分析工具。它能進行結構化分析,幫助開發者維護程式碼的可維護性。pyscn 支援多種分析功能,包括偵測死碼、複製程式碼、耦合度以及循環複雜度,並能以極高的速度(每秒超過十萬行程式碼)完成分析。該工具使用 Go 語言和 tree-sitter 建構,並提供多種指令以供分析、檢查品質以及生成設定檔。此外,pyscn 也整合了 CI/CD 流程,方便自動化品質控管。
+ 這個工具聽起來很強大,尤其是在處理大型專案時,偵測死碼和複製程式碼的功能能省下不少時間。我會嘗試在我的專案中使用看看。
+ Go 語言與 tree-sitter 的組合讓 pyscn 的效能非常出色。自動生成報告和 CI/CD 整合也為開發流程帶來了極大的便利。期待未來的更新!
#程式碼分析 #Python #開發工具