@@ -7,7 +7,7 @@ Description
77
88This package provides an API for the GeoIP2 and GeoLite2 `web services
99<https://dev.maxmind.com/geoip/docs/web-services?lang=en> `_ and `databases
10- <https://dev.maxmind.com/geoip/docs/databases?lang=en> `_.
10+ <https://dev.maxmind.com/geoip/docs/databases?lang=en> `_.
1111
1212Installation
1313------------
@@ -47,7 +47,9 @@ To use this API, you first construct either a ``geoip2.webservice.Client`` or
4747``geoip2.webservice.AsyncClient ``, passing your MaxMind ``account_id `` and
4848``license_key `` to the constructor. To use the GeoLite2 web service instead of
4949the GeoIP2 web service, set the optional ``host `` keyword argument to
50- ``geolite.info ``.
50+ ``geolite.info ``. To use the Sandbox GeoIP2 web service instead of the
51+ production GeoIP2 web service, set the optional ``host `` keyword argument to
52+ ``sandbox.maxmind.com ``.
5153
5254After doing this, you may call the method corresponding to request type
5355(e.g., ``city `` or ``country ``), passing it the IP address you want to look up.
@@ -68,7 +70,9 @@ Sync Web Service Example
6870 >>> # This creates a Client object that can be reused across requests.
6971 >>> # Replace "42" with your account ID and "license_key" with your license
7072 >>> # key. Set the "host" keyword argument to "geolite.info" to use the
71- >>> # GeoLite2 web service instead of the GeoIP2 web service.
73+ >>> # GeoLite2 web service instead of the GeoIP2 web service. Set the
74+ >>> # "host" keyword argument to "sandbox.maxmind.com" to use the Sandbox
75+ >>> # GeoIP2 web service instead of the production GeoIP2 web service.
7276 >>> with geoip2.webservice.Client(42, 'license_key') as client:
7377 >>>
7478 >>> # Replace "city" with the method corresponding to the web service
@@ -118,7 +122,9 @@ Async Web Service Example
118122 >>> #
119123 >>> # Replace "42" with your account ID and "license_key" with your license
120124 >>> # key. Set the "host" keyword argument to "geolite.info" to use the
121- >>> # GeoLite2 web service instead of the GeoIP2 web service.
125+ >>> # GeoLite2 web service instead of the GeoIP2 web service. Set the
126+ >>> # "host" keyword argument to "sandbox.maxmind.com" to use the Sandbox
127+ >>> # GeoIP2 web service instead of the production GeoIP2 web service.
122128 >>> async with geoip2.webservice.AsyncClient(42, 'license_key') as client:
123129 >>>
124130 >>> # Replace "city" with the method corresponding to the web service
@@ -456,7 +462,7 @@ attribute in the ``geoip2.records.Traits`` record.
456462Integration with GeoNames
457463-------------------------
458464
459- `GeoNames <http ://www.geonames.org/ >`_ offers web services and downloadable
465+ `GeoNames <https ://www.geonames.org/ >`_ offers web services and downloadable
460466databases with data on geographical features around the world, including
461467populated places. They offer both free and paid premium data. Each feature is
462468uniquely identified by a ``geoname_id ``, which is an integer.
@@ -473,31 +479,31 @@ Reporting Data Problems
473479-----------------------
474480
475481If the problem you find is that an IP address is incorrectly mapped, please
476- `submit your correction to MaxMind <http ://www.maxmind.com/en/correction >`_.
482+ `submit your correction to MaxMind <https ://www.maxmind.com/en/correction >`_.
477483
478484If you find some other sort of mistake, like an incorrect spelling, please
479- check the `GeoNames site <http ://www.geonames.org/ >`_ first. Once you've
485+ check the `GeoNames site <https ://www.geonames.org/ >`_ first. Once you've
480486searched for a place and found it on the GeoNames map view, there are a
481487number of links you can use to correct data ("move", "edit", "alternate
482488names", etc.). Once the correction is part of the GeoNames data set, it
483489will be automatically incorporated into future MaxMind releases.
484490
485491If you are a paying MaxMind customer and you're not sure where to submit a
486492correction, please `contact MaxMind support
487- <http ://www.maxmind.com/en/support> `_ for help.
493+ <https ://www.maxmind.com/en/support> `_ for help.
488494
489495Requirements
490496------------
491497
492498Python 3.7 or greater is required. Older versions are not supported.
493499
494500The Requests HTTP library is also required. See
495- <http ://python-requests .org> for details.
501+ <https ://pypi .org/project/requests/ > for details.
496502
497503Versioning
498504----------
499505
500- The GeoIP2 Python API uses `Semantic Versioning <http ://semver.org/ >`_.
506+ The GeoIP2 Python API uses `Semantic Versioning <https ://semver.org/ >`_.
501507
502508Support
503509-------
@@ -507,4 +513,4 @@ Please report all issues with this code using the `GitHub issue tracker
507513
508514If you are having an issue with a MaxMind service that is not specific to the
509515client API, please contact `MaxMind support
510- <http ://www.maxmind.com/en/support> `_ for assistance.
516+ <https ://www.maxmind.com/en/support> `_ for assistance.
0 commit comments