]>
git.ipfire.org Git - location/libloc.git/blob - examples/python/read-database.py
6 d
= location
.Database("test.db")
9 # Try to get information about AS123
13 # Try to get information about AS204867
17 # Search for an IP address in the database
18 n
= d
.lookup("8.8.8.8")
21 n
= d
.lookup("2a07:1c44:5800:1234:1234:1234:1234:1234")