How would I use python to convert an IP address that comes as a str to a decimal number and vice versa?
For example, for the IP 186.99.109.000 <type'str'>, I would like to have a decimal or binary form that is easy to store in a database, and then retrieve it.
converting an IP string to long integer:
the other way around: