Python code for GeoIP2 webservice client and database reader
is_anycast
attribute was added to geoip2.record.Traits
.
This returns True
if the IP address belongs to an
anycast network <https://en.wikipedia.org/wiki/Anycast>
_.
This is available for the GeoIP2 Country, City Plus, and Insights web services
and the GeoIP2 Country, City, and Enterprise databases.AddressNotFoundError
class now has an ip_address
attribute
with the lookup address and network
property for the empty network
in the database containing the IP address. These are only available
when using a database, not the web service. Pull request by illes.
GitHub #130.mobile_country_code
and
mobile_network_code
attributes were added to geoip2.model.ISP
for the GeoIP2 ISP database and geoip2.record.Traits
for the
Enterprise database and the GeoIP2 City and Insights web services.
We expect this data to be available by late January, 2022.geoip2.database
is now explicitly defined by
setting __all__
.metadata()
method on Reader
is now
maxminddb.reader.Metadata
rather than a union type.py.typed
file was not being added to the source
distribution. It is now explicitly specified in the manifest.Reader
constructor have
been expanded to match those specified by maxmindb.open_database
. In
particular, os.PathLike
and IO
have been added.metadata()
method on Reader
. It
will return a maxminddb.extension.Metadata
if the C extension is being
used.proxy
parameter to the AsyncClient
or Client
constructor.is_residential_proxy
attribute to geoip2.model.AnonymousIP
and geoip2.record.Traits
.HTTPError
now provides the decoded response content in the
decoded_content
attribute. Requested by Oleg Serbokryl. GitHub #95.py.typed
file per PEP 561. Reported by Árni Már Jónsson.README.md
. No substantive
changes.