Closed MMquant closed 5 years ago
Hmm, it seems that entire package has gone missing. That's a fair bit of broken code: https://github.com/search?l=Python&q=ipgetter&type=Code
I need to spend some time cleaning this project up, and this will be one of the things to do. I'm not sure how to work around this, because I don't have the source for ipgetter
and the repo seems to have been deleted!
So here is the original code for ipgetter https://github.com/Moshe-Malka/BabyKeeper_Project-Python-/blob/master/ipgetter.py
However I would go more elegant way. That is removing ipgetter completely and use following code to fetch public IP address
import urllib.request
import re
with urllib.request.urlopen('https://api.ipify.org') as content:
public_ip = re.search( r'[0-9]+(?:\.[0-9]+){3}', str(content.read())).group(0)
print(public_ip)
It uses builtin python3 libraries and the url is taken from https://stackoverflow.com/questions/2311510/getting-a-machines-external-ip-address-with-python
I'm aware of this and I'm working on it. I've redesigned the internals, current master is working-ish but still needs work (OOB and shell).
Hello,
I've just released xcat
1.0 on pypi 🎉 . I've redesigned the CLI and it now all works. Please see the updated README for information.
I'm working on the documentation now. Please open an issue if you run into trouble.
It seems like there isn't any
ipgetter
distribution in pypi anymore. See followingpip3
output when trying to installipgetter
:It would be probably sufficient to bundle
ipgetter.py
with the xcat package and remove it frominstall_requires
directive insetup.py
.