- Updated documentation to clarify what the accuracy radius refers to.
- This module now uses
ipaddresson Python 2 rather thanipaddrto validate IP addresses before sending them to the web service. - Added handling of additional error codes that the web service may return.
- PEP 257 documentation fixes.
- Updated documentation to reflect that the accuracy radius is now included in City.
- Previously, the source distribution was missing some tests and test databases. This has been corrected. Reported by Lumir Balhar.
- Added support for the GeoIP2 Enterprise database.
geoip2.database.Readernow supports being used in awithstatement (PEP 343). (PR from Nguyễn Hồng Quân. GitHub #29)
- The
geoip2.records.Location` class has been updated to add attributes for the ``average_incomeandpopulation_densityfields provided by the Insights web service. - The
is_anonymous_proxyandis_satellite_providerproperties ongeoip2.records.Traitshave been deprecated. Please use our GeoIP2 Anonymous IP database to determine whether an IP address is used by an anonymizing service.
- The reader now supports pure Python file and memory modes. If you are not
using the C extension and your Python does not provide the
mmapmodule, the file mode will be used by default. You can explicitly set the mode using themodekeyword argument with theMODE_AUTO,MODE_MMAP,MODE_MMAP_EXT,MODE_FILE, andMODE_MEMORYconstants exported bygeoip2.database.
- Added support for the GeoIP2 Anonymous IP database. The
geoip2.database.Readerclass now has ananonymous_ip()method which returns ageoip2.models.AnonymousIPobject. - Added
__repr__and__eq__methods to the model and record classes to aid in debugging and using the library from a REPL.
- The constructor for
geoip2.webservice.Clientnow takes an optionaltimeoutparameter. (PR from arturro. GitHub #15)
- First production release.
BREAKING CHANGES: - The deprecated
city_isp_org()andomni()methodshave been removed.
- The
geoip2.database.Readerlookup methods (e.g.,city(),isp()) now raise aTypeErrorif they are used with a database that does not match the method. In particular, doing acity()lookup on a GeoIP2 Country database will result in an error and vice versa.
- The
A
metadata()method has been added to thegeoip2.database.Readerclass. This returns amaxminddb.reader.Metadataobject with information about the database.
- The web service client API has been updated for the v2.1 release of the web
service. In particular, the
city_isp_organdomnimethods ongeoip2.webservice.Clientshould be considered deprecated. Thecitymethod now provides all of the data formerly provided bycity_isp_org, and theomnimethod has been replaced by theinsightsmethod. Note: In v2.1 of the web service,accuracy_radius,autonomous_system_number, and all of theconfidencevalues were changed from unicode to integers. This may affect how you use these values from this API. - Support was added for the GeoIP2 Connection Type, Domain, and ISP databases.
- Switched to Apache 2.0 license.
- Fixed missing import statements for geoip2.errors and geoip2.models. (Gustavo J. A. M. Carneiro)
- Minor documentation and code cleanup
- Added requirement for maxminddb v0.3.0, which includes a pure Python
database reader. Removed the
extras_requirefor maxminddb.
- Added missing geoip2.models import to geoip.database.
- Documentation updates.
- Read in
README.rstas UTF-8 insetup.py.
- API CHANGE: Changed the
languageskeyword argument tolocaleson the constructors forgeoip.webservice.Clientandgeoip.database.Reader.
- Fixed packaging issue with extras_require.
- IMPORTANT:
geoip.webserviceswas renamedgeoip.webserviceas it contains only one class. - Added GeoIP2 database reader using
maxminddb. This does not work with PyPy as it relies on a C extension. - Added more specific exceptions for web service client.
- Fixed a bug in the model objects that prevented
longitudeandmetro_codefrom being used.
- First official beta release.
- Documentation updates and corrections.
- Support for Python 3.2 was dropped.
- The methods to call the web service on the
Clientobject now validate the IP addresses before calling the web service. This requires theipaddrmodule on Python 2.x. - We now support more languages. The new languages are de, es, fr, and pt-BR.
- The REST API now returns a record with data about your account. There is a new geoip.records.MaxMind class for this data.
- Rename model.continent.continent_code to model.continent.code.
- Documentation updates.
- Documentation and packaging updates
- Initial release