scy,
@scy@chaos.social avatar

Since sometimes I'm eagerly waiting for to update to a new version, I now have a small command to check it for me.

https://codeberg.org/scy/dotfiles/src/commit/5679998191b7c6f76058050b26976b94c35e1e52/bin/codeberg-version.py

(Made it a goal to not require third-party libraries or tools for such a small task, but damn I totally get why nobody is using 's builtin HTTP client directly 😬)

fogti,
@fogti@chaos.social avatar

@scy huh it's not much worse than requests, at least at first glance from this screenshot...

scy,
@scy@chaos.social avatar

@fogti Yes it is.

• You have to split the URL into scheme, host, and path yourself.
• You have to choose whether to create an HTTPConnection or HTTPSConnection based on the scheme.
• You have to supply the Host header manually.
• Instead of .request() returning the response object, you have to get it using an additional .getresponse() call.
• There's no convenience method like requests' .raise_for_status().

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