elmiko,
@elmiko@fosstodon.org avatar

you know hacking kubernetes manifests is so much more comfortable in python... is there any drive to get a yaml processor into the python standard lib?

#python #yaml #kubernetes

tristanC,
@tristanC@functional.cafe avatar

@elmiko Why not using JSON at that point?

deshipu,
@deshipu@fosstodon.org avatar

@elmiko There is a general push against including anything in the python standard library, and some stuff has even been removed. The reason for it is that the "batteries included" really tend to go stale after a while, and you can't really replace them.

elmiko,
@elmiko@fosstodon.org avatar

@deshipu that makes sense, but the "batteries included" is a big part of what makes python so useful. oh well, i'll just keep juggling venvs lol

deshipu,
@deshipu@fosstodon.org avatar

@elmiko To be honest, if I were to include a yaml parser in a standard library of anything, I would first wait for the format to be formally standardized...

elmiko,
@elmiko@fosstodon.org avatar

@deshipu all these reasonable suggestions.... what am i supposed to do! XD

deshipu,
@deshipu@fosstodon.org avatar

@elmiko there is always xml...

elmiko,
@elmiko@fosstodon.org avatar

@deshipu this is not helping!

deshipu,
@deshipu@fosstodon.org avatar

@elmiko I'm sorry. You can also install the python library system-wide, perhaps? Or include it with your code.

elmiko,
@elmiko@fosstodon.org avatar

@deshipu appreciate it ❤️ , i'm just using a venv for now. it's just a pain, because all i want to do is write some small scripts to help with debugging, and if the source data were in json that would be wonderful, but it's not...

i probably should install a system-wide version, but i seem to developer an aversion to installing dev packages into my root filesystem lol

deshipu,
@deshipu@fosstodon.org avatar

@elmiko I mean, there is probably a yaml parsing library packaged already?

elmiko,
@elmiko@fosstodon.org avatar

@deshipu yeah actually... i think fedora 39 installs python3-pyyaml by default perhaps lol

elmiko,
@elmiko@fosstodon.org avatar

@deshipu i just tried to install it, but it says it's already there and i just installed this machine less than a month ago, and i know i didn't install it. maybe some dependency needed it.

deshipu,
@deshipu@fosstodon.org avatar

@elmiko possibly ansible

elmiko,
@elmiko@fosstodon.org avatar

@deshipu yeah, good call

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines