Skip to content

Commit

Permalink
Initial commit - v1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jlopez committed Jul 13, 2011
0 parents commit 4ec7259
Show file tree
Hide file tree
Showing 12 changed files with 1,155 additions and 0 deletions.
45 changes: 45 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
1.2.4 2008-12-16
* Add charset and set_charset methods , as well as
the new attributes GeoIP.GEOIP_CHARSET_ISO_8859_1 and
GeoIP.GEOIP_CHARSET_UTF8 ( Boris Zentner )
* Add test_city_charset.py script showing howto use
charset and set_charset ( Boris Zentner )
* Add last_netmask ( Boris Zentner )
* Fix compile warnings ( Boris Zentner )
* fix small memoryleak in database_info, org_by_name and org_by_addr ( Boris Zentner )
* fix version number in setup.py ( Boris Zentner )
* remove dma_code from test_city.py example ( Boris Zentner )
1.2.3 2008-09-11
* update test.py - replace www.government.de with www.bundestag.de.
Add range_by_ip example. ( Boris Zentner )
* Add range_by_ip - returns largest start and stop ip for any ip.
Remember to use a IP not a name ( Boris Zentner )
* Add metro_code as a alias for the depreciated dma_code ( Boris Zentner )
1.2.2 2008-08-13
* Update test_city.py and test_region.py ( Boris Zentner )
* Add region_name to GeoIPRegion ( Boris Zentner )
* Add database_info and database_edition attributes to GeoIP object
(James Henstridge)
* Add region_name and time_zone keys to GeoIPRecord wrapper (James
Henstridge).
* Export the country list, country code -> country name mapping, and
country->continent mapping ( Ignacio Vazquez-Abrams )
* Raise country code counter from 251 to 253 ( Boris Zentner )
!! record_by_addr and record_by_name return None instead of throwing a
exception. See test_city.py ( Boris Zentner )
* Add a py_geoip.error Exception object. (Boris Zentner)
* Export the country list, country code -> country name mapping, and country->continent
mapping ( Ignacio Vazquez-Abrams )
* Changed license to LGPL from GPL

1.2.1 2005-06-28
* Added support for GeoIP Region

1.2.0 2003-05-08
* Added support for GeoIP City

1.1.0 2003-03-18
* Added support for GeoIP ISP and Organization

0.2.0 2002-06-25
* Initial Release
504 changes: 504 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ChangeLog
README
py_GeoIP.c
setup.py
test.py
test_org.py
test_city.py
test_region.py
26 changes: 26 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Requirements:
Python 2.0 or greater
GeoIP C Library 1.4.5 or greater

To Install:
python setup.py build
python setup.py install

Usage:
See test.py for example usage with GeoIP Country
See test_org.py for example usage with GeoIP ISP and Organization
See test_city.py for example usage with GeoIP City
See test_region.py for example usage with GeoIP Region

Troubleshooting:

If you get a "libGeoIP.so.1: cannot open shared object No such file or
directory" error, add /usr/local/lib to /etc/ld.so.conf then run
/sbin/ldconfig /etc/ld.so.conf

License:

Copyright (c) 2008 MaxMind LLC

All rights reserved. This package is free software; it is licensed
under the LGPL.
5 changes: 5 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(py_GeoIP.c)
AC_LANG_C

AC_OUTPUT(Makefile)
Loading

0 comments on commit 4ec7259

Please sign in to comment.