Changelog
### 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.
```
Links
- PyPI: https://pypi.org/project/geoip2
- Changelog: https://pyup.io/changelogs/geoip2/
- Homepage: http://www.maxmind.com/
- Docs: https://pythonhosted.org/geoip2/
This PR updates geoip2 from 3.0.0 to 4.3.0.
Changelog
### 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. ```Links
- PyPI: https://pypi.org/project/geoip2 - Changelog: https://pyup.io/changelogs/geoip2/ - Homepage: http://www.maxmind.com/ - Docs: https://pythonhosted.org/geoip2/