This is a simple script to help build up a load of subnets in quick order!
Add your subnets to the list starting at line 76 called "make_subnets", run
pip3 install -r requirements.txt
and then python3 phpipam_bulk_add_subnets.py
Your result should be like this:
{'code': 201, 'success': True, 'message': 'Subnet created', 'id': '2', 'data': '192.0.2.0/24', 'time': 0.031}
If you have any errors, they will be presented like this:
{'code': 409, 'success': False, 'message': 'Subnet overlaps with 198.51.100.0/24', 'time': 0.009}
Enjoy!