Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 5ee128f

Browse files
committed
Add netspeedcell example
1 parent 64341d8 commit 5ee128f

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ChangeLog

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
1.2.7 2011-08-23
2+
* Add example test_netspeedcell.py ( Boris Zentner )
13
1.2.6 2011-06-06
24
* Add new methods record_by_name_v6 and record_by_addr_v6 to support
35
GeoIPCityv6 databases. ( Boris Zentner )

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
include_dirs = ['/usr/local/include'])
88

99
setup (name = 'GeoIP-Python',
10-
version = '1.2.6',
10+
version = '1.2.7',
1111
description = 'This is a python wrapper to GeoIP',
1212
ext_modules = [module1])

test_netspeedcell.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/python
2+
3+
import GeoIP
4+
5+
gi = GeoIP.open("/usr/local/share/GeoIP/GeoIPNetSpeedCell.dat",GeoIP.GEOIP_STANDARD)
6+
7+
print gi.org_by_name("yahoo.com")
8+
print gi.org_by_name("www.google.com")
9+
print gi.org_by_addr("24.24.24.24")

0 commit comments

Comments
 (0)