Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update geoip2 to 4.8.1 #1478

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

pyup-bot
Copy link
Collaborator

This PR updates geoip2 from 2.7.0 to 4.8.1.

Changelog

4.8.0

++++++++++++++++++

* IMPORTANT: Python 3.8 or greater is required. If you are using an older
version, please use an earlier release.
* The ``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.

4.7.0

++++++++++++++++++

* IMPORTANT: Python 3.7 or greater is required. If you are using an older
version, please use an earlier release.

4.6.0

++++++++++++++++++

* The ``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.

4.5.0

++++++++++++++++++

* Support for mobile country code (MCC) and mobile network codes (MNC) was
added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2
City and Insights web services. ``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.

4.4.0

++++++++++++++++++

* The public API on ``geoip2.database`` is now explicitly defined by
setting ``__all__``.
* The return type of the ``metadata()`` method on ``Reader`` is now
``maxminddb.reader.Metadata`` rather than a union type.

4.3.0

++++++++++++++++++

* Previously, the ``py.typed`` file was not being added to the source
distribution. It is now explicitly specified in the manifest.
* The type hints for the database file in the ``Reader`` constructor have
been expanded to match those specified by ``maxmindb.open_database``. In
particular, ``os.PathLike`` and ``IO`` have been added.
* Corrected the type hint for the ``metadata()`` method on ``Reader``. It
will return a ``maxminddb.extension.Metadata`` if the C extension is being
used.

4.2.0

++++++++++++++++++

* You may now set a proxy to use when making web service requests by passing
the ``proxy`` parameter to the ``AsyncClient`` or ``Client`` constructor.

4.1.0

++++++++++++++++++

* Added the ``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.

4.0.2

++++++++++++++++++

* Added ``py.typed`` file per PEP 561. Reported by Árni Már Jónsson.

4.0.1

++++++++++++++++++

* Re-release to fix bad reStructuredText in ``README.md``. No substantive
changes.

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, use ``geoip.webservice.AsyncClient``.
* ``geoip.webservice.Client`` now provides a ``close()`` method and associated
context managers to be used in ``with`` statements.
* Type hints have been added.
* The attributes ``postal_code`` and ``postal_confidence`` have been removed
from ``geoip2.record.Location``. These would previously always be ``None``.
* ``user_id`` is no longer supported as a named argument for the constructor
on ``geoip2.webservice.Client``. Use ``account_id`` or a positional
parameter instead.
* For both ``Client`` and ``AsyncClient`` 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 to ``geoip2.record.Traits``,
``geoip2.model.AnonymousIP``, ``geoip2.model.ASN``,
``geoip2.model.ConnectionType``, ``geoip2.model.Domain``,
and ``geoip2.model.ISP``. This is an ``ipaddress.IPv4Network`` or an
``ipaddress.IPv6Network``. This is the largest network where all of the
fields besides ``ip_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 to ``geoip2.record.Traits`` for
GeoIP2 Precision Insights. This is a float which indicates how static or dynamic
an IP address is.

2.9.0

++++++++++++++++++

* You may now pass in the database via a file descriptor rather than a file
name when creating a new ``geoip2.database.Reader`` object using ``MODE_FD``.
This will read the database from the file descriptor into memory. Pull
request by nkinkade. GitHub 53.

2.8.0

++++++++++++++++++

* Python 2.6 support has been dropped. Python 2.7+ or 3.3+ is now required.
* Renamed user ID to account ID in the code and added support for the new
``ACCOUNT_ID_REQUIRED`` AND ``ACCOUNT_ID_UNKNOWN`` error codes.
Links

@pyup-bot pyup-bot mentioned this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant