How do I replicate this vertex weight setting from the sidebar?



As the title says, there is one setting I intend to recreate with python in order to use it in my own script / in a different interface spot:
The vertex weights on the sidebar that you can adjust if one or more vertex groups are assigned to the active vertex. (Edit mode)

Specifically, I want to have it without those “set active”, “paste weight” and “delete weight” buttons and just see the value window.

I dont know what the codelines are since “Edit Source” (right click) isnt assisted for this setting which is my go-to option right now when it comes to remaking the interface. So I am a bit lost here.

Can anyone help me go through with this?