Releases: maxmind/GeoIP2-python
Releases · maxmind/GeoIP2-python
4.1.0
4.0.2
4.0.1
4.0.0
- IMPORTANT: Python 2.7 and 3.5 support has been dropped. Python 3.6 or greater
is required. - Asyncio support has been added for web service requests. To make async
requests, usegeoip.webservice.AsyncClient
. geoip.webservice.Client
now provides aclose()
method and associated
context managers to be used inwith
statements.- Type hints have been added.
- The attributes
postal_code
andpostal_confidence
have been removed
fromgeoip2.record.Location
. These would previously always beNone
. user_id
is no longer supported as a named argument for the constructor
ongeoip2.webservice.Client
. Useaccount_id
or a positional
parameter instead.- For both
Client
andAsyncClient
requests, the default timeout is
now 60 seconds.
3.0.0
- BREAKING CHANGE: The
geoip2.record.*
classes have been refactored to
improve performance. This refactoring may break classes that inherit from
them. The public API should otherwise be compatible. - The
network
attribute was added togeoip2.record.Traits
,
geoip2.model.AnonymousIP
,geoip2.model.ASN
,
geoip2.model.ConnectionType
,geoip2.model.Domain
,
andgeoip2.model.ISP
. This is anipaddress.IPv4Network
or an
ipaddress.IPv6Network
. This is the largest network where all of the
fields besidesip_address
have the same value. GitHub #79. - Python 3.3 and 3.4 are no longer supported.
- Updated documentation of anonymizer attributes -
is_anonymous_vpn
and
is_hosting_provider
- to be more descriptive. - Added support for the
user_count
trait for the GeoIP2 Precision webservice. - Added the
static_ip_score
attribute togeoip2.record.Traits
for
GeoIP2 Precision Insights. This is a float which indicates how static or dynamic
an IP address is.