The new registry protection rule endpoint was released into python-gitlab==5.3.0. Perhaps this can be leveraged.
python-gitlab==5.3.0
Support the new registry protection rule endpoint (40af1c8)
40af1c8
cc: @nmcd