For zypp Head openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/zypp:TW/zypp_Head_openSUSE_Tumbleweed/zypp:TW.repo
zypper refresh
zypper install yast2-pkg-bindings
For zypp Head openSUSE Factory run the following as root:
zypper addrepo https://download.opensuse.org/repositories/zypp:TW/zypp_Head_openSUSE_Factory/zypp:TW.repo
zypper refresh
zypper install yast2-pkg-bindings
For openSUSE Factory Staging I run the following as root:
zypper addrepo https://download.opensuse.org/repositories/zypp:TW/openSUSE_Factory_Staging_I/zypp:TW.repo
zypper refresh
zypper install yast2-pkg-bindings