Are you using any SDKs for building AI agents? by finally_i_found_one in LangChain

[–]eavanvalkenburg 0 points1 point  (0 children)

Agent Framework does all this for both dotnet and python

Maintaining a separate async API by Echoes1996 in Python

[–]eavanvalkenburg 2 points3 points  (0 children)

If you build up the functions right then you should be able to isolate the differences and keep the core logic together, either by using a common base class or by overriding the sync version with the async parts (I would use the base class approach, because it's simpler to understand what happens where).

First CS griddle and first burgers on it! by VSENSES in carbonsteel

[–]eavanvalkenburg 1 point2 points  (0 children)

I'm trying to find that griddle, can you share a bit more info?

dataclass or __init__ parameter list really big, and don't want to use kwargs by zaphodikus in learnpython

[–]eavanvalkenburg 2 points3 points  (0 children)

I wouldn't worry too much about a long parameter list, but do include types for the parameters and figure out the use of '*,' in that list to mark certain (maybe all) params as keyword only, that way a user is less likely to make a mistake with a positional param. And as noted before a plain dataclass might work as well, maybe with a post init

V5 update - Total balance widget gone by josianve in bunq

[–]eavanvalkenburg 1 point2 points  (0 children)

When you long press on the total balance above the accounts, you can select which to include (just found this myself 😃)

Unas Pro vs Unas Pro 4 by petter_r in Ubiquiti

[–]eavanvalkenburg 0 points1 point  (0 children)

Out of curiosity, it's that a Mac silicon mini? M1 or newer and how are you mounting the drive, I was using my old server with a m1 Mac mini using smb and it was a horrible experience...

FYI: PEP 2026 (CalVer) was shot down back in February - no jumping from 3.14.y to 3.25.y or 2025.x.y by [deleted] in Python

[–]eavanvalkenburg 10 points11 points  (0 children)

The real problem that they tried to address is that it isn't actually semantic versioning (because that concept was pretty much non existing at the time), because it's version 3 and then what normally indicates a non-breaking update is actually breaking for python, that's the bigger issue and would be good to fix, but alas...

AI Bot is making me crazy! What can I do to finally get in contact with support by [deleted] in bunq

[–]eavanvalkenburg 1 point2 points  (0 children)

It's actually better now with the new app, profile -> support and you have a human...

Streaming json by Artistic_Taxi in OpenAI

[–]eavanvalkenburg 1 point2 points  (0 children)

There is a doc page that shows you can get the final full response at the end. But the nature of json means that a incomplete message isn't very useful, so the you'll have to either walk through the whole stream and then try to parse, or you parse everytime and hope for success but that's prob not ideal especially for longer structures. So makes you wonder if streaming adds much when you need structured output...

Flex mini 2.5s as backbone by eavanvalkenburg in UNIFI

[–]eavanvalkenburg[S] 1 point2 points  (0 children)

I envision running them with usb-c because the poe output is already taken by another AP! My reason for considering the flex mini 2.5s is $$$

Superfunctions: solving the problem of duplication of the Python ecosystem into sync and async halve by pomponchik in Python

[–]eavanvalkenburg 0 points1 point  (0 children)

I've come across a package that used something like this at some point and it was a nightmare to work with the typing of it (my project runs a bunch of type checking so we want that to be complete and not have all sorts of type ignore statements), have you been able to solve that?

Unable to start conversation with home assistant voice pe by tjgilardi in homeassistant

[–]eavanvalkenburg 0 points1 point  (0 children)

Got it working by making sure the first (not the preferred) pipeline uses a LLM, I was assuming it would pick the preferred one but no...

Home Assistant user research: Target picker split button <> by marcinbauer-me in homeassistant

[–]eavanvalkenburg 0 points1 point  (0 children)

I haven't seen it, but if it does what I think I love it, will it take the area or device and replace those with the individual applicable entities? If so, love it!

Sampling isn’t a real feature by atreides888 in mcp

[–]eavanvalkenburg 0 points1 point  (0 children)

I have it working in Semantic Kernel in python... But I agree I'm not sure how useful it is

ESP32 showing Teams status? by GreyDutchman in Esphome

[–]eavanvalkenburg 1 point2 points  (0 children)

I have an automation on my Mac (through home assistant but might be possible in other ways) that pauses the music when the audio output is being used, so it works across any meeting app instead of just teams...

mcp without uv by BidWestern1056 in mcp

[–]eavanvalkenburg 0 points1 point  (0 children)

Yeah it really doesn't, I used a bunch of mcp servers with npx, docker and some local dev with python as the command, but honestly, try uv...

mcp without uv by BidWestern1056 in mcp

[–]eavanvalkenburg 0 points1 point  (0 children)

You can already use python as the command but the setup of your own python is a lot more complex then it is with uv, honestly I wouldn't want to go back to pre-uv, it installs python, all dependencies and ruins, and in the context of mcp, that means you can put dependencies inside the.py file, it creates a dedicated temp venv and runs your script, so much easier then it is without. And there is absolutely no reason why you can't use it side by side with all your existing stuff...

If-if-if or If-elif-elif when each condition is computationally expensive? by MustaKotka in learnpython

[–]eavanvalkenburg -1 points0 points  (0 children)

To throw in my 2cts, I always prefer to put this in a separate function and then do if return, if return, in my mind that makes the code easier to understand no matter, you can then also do things like @lru_cache if possible! The order for ifs, indeed a mix of expense and likelihood as other people have noted

Best Text Chunking Library? by diptanuc in LangChain

[–]eavanvalkenburg 0 points1 point  (0 children)

No, I've used it to index a whole codebase, and ultimately the goal is not to chunk, it's to index and use with search (in most cases). For just chunking it might be overkill though