A while ago I wrote a Python library for interfacing Open5GS HSS to Python.
The Open5GS HSS uses a MongoDB backend, so the library is just running formatted Mongo queries.
You can create, edit and delete subscribers in the HSS, along with modifying any parameters you can from the WebUI.
Take a look:
https://github.com/open5gs/open5gs/tree/master/misc/db/python
I get a 404 when I hot that link
I’ve updated the link – There were some directory changes on the repo.