@@ -243,38 +243,38 @@ class AsyncClient(BaseClient):
243
243
The following keyword arguments are also accepted:
244
244
245
245
:param host: The hostname to make a request against. This defaults to
246
- "geoip.maxmind.com". In most cases, you should not need to set this
247
- explicitly.
246
+ "geoip.maxmind.com". In most cases, you should not need to set this
247
+ explicitly.
248
248
:param locales: This is list of locale codes. This argument will be
249
- passed on to record classes to use when their name properties are
250
- called. The default value is ['en'].
249
+ passed on to record classes to use when their name properties are
250
+ called. The default value is ['en'].
251
251
252
- The order of the locales is significant. When a record class has
253
- multiple names (country, city, etc.), its name property will return
254
- the name in the first locale that has one.
252
+ The order of the locales is significant. When a record class has
253
+ multiple names (country, city, etc.), its name property will return
254
+ the name in the first locale that has one.
255
255
256
- Note that the only locale which is always present in the GeoIP2
257
- data is "en". If you do not include this locale, the name property
258
- may end up returning None even when the record has an English name.
256
+ Note that the only locale which is always present in the GeoIP2
257
+ data is "en". If you do not include this locale, the name property
258
+ may end up returning None even when the record has an English name.
259
259
260
- Currently, the valid locale codes are:
260
+ Currently, the valid locale codes are:
261
261
262
- * de -- German
263
- * en -- English names may still include accented characters if that is
262
+ * de -- German
263
+ * en -- English names may still include accented characters if that is
264
264
the accepted spelling in English. In other words, English does not
265
265
mean ASCII.
266
- * es -- Spanish
267
- * fr -- French
268
- * ja -- Japanese
269
- * pt-BR -- Brazilian Portuguese
270
- * ru -- Russian
271
- * zh-CN -- Simplified Chinese.
266
+ * es -- Spanish
267
+ * fr -- French
268
+ * ja -- Japanese
269
+ * pt-BR -- Brazilian Portuguese
270
+ * ru -- Russian
271
+ * zh-CN -- Simplified Chinese.
272
272
:param timeout: The timeout in seconds to use when waiting on the request.
273
- This sets both the connect timeout and the read timeout. The default is
274
- 60.
273
+ This sets both the connect timeout and the read timeout. The default is
274
+ 60.
275
275
:param proxy: The URL of an HTTP proxy to use. It may optionally include
276
- a basic auth username and password, e.g.,
277
- ``http://username:password@host:port``.
276
+ a basic auth username and password, e.g.,
277
+ ``http://username:password@host:port``.
278
278
279
279
"""
280
280
@@ -303,8 +303,8 @@ async def city(self, ip_address: IPAddress = "me") -> City:
303
303
"""Call GeoIP2 Precision City endpoint with the specified IP.
304
304
305
305
:param ip_address: IPv4 or IPv6 address as a string. If no
306
- address is provided, the address that the web service is
307
- called from will be used.
306
+ address is provided, the address that the web service is
307
+ called from will be used.
308
308
309
309
:returns: :py:class:`geoip2.models.City` object
310
310
@@ -332,8 +332,8 @@ async def insights(self, ip_address: IPAddress = "me") -> Insights:
332
332
"""Call the GeoIP2 Precision: Insights endpoint with the specified IP.
333
333
334
334
:param ip_address: IPv4 or IPv6 address as a string. If no address
335
- is provided, the address that the web service is called from will
336
- be used.
335
+ is provided, the address that the web service is called from will
336
+ be used.
337
337
338
338
:returns: :py:class:`geoip2.models.Insights` object
339
339
@@ -399,38 +399,38 @@ class Client(BaseClient):
399
399
The following keyword arguments are also accepted:
400
400
401
401
:param host: The hostname to make a request against. This defaults to
402
- "geoip.maxmind.com". In most cases, you should not need to set this
403
- explicitly.
402
+ "geoip.maxmind.com". In most cases, you should not need to set this
403
+ explicitly.
404
404
:param locales: This is list of locale codes. This argument will be
405
- passed on to record classes to use when their name properties are
406
- called. The default value is ['en'].
405
+ passed on to record classes to use when their name properties are
406
+ called. The default value is ['en'].
407
407
408
- The order of the locales is significant. When a record class has
409
- multiple names (country, city, etc.), its name property will return
410
- the name in the first locale that has one.
408
+ The order of the locales is significant. When a record class has
409
+ multiple names (country, city, etc.), its name property will return
410
+ the name in the first locale that has one.
411
411
412
- Note that the only locale which is always present in the GeoIP2
413
- data is "en". If you do not include this locale, the name property
414
- may end up returning None even when the record has an English name.
412
+ Note that the only locale which is always present in the GeoIP2
413
+ data is "en". If you do not include this locale, the name property
414
+ may end up returning None even when the record has an English name.
415
415
416
- Currently, the valid locale codes are:
416
+ Currently, the valid locale codes are:
417
417
418
- * de -- German
419
- * en -- English names may still include accented characters if that is
418
+ * de -- German
419
+ * en -- English names may still include accented characters if that is
420
420
the accepted spelling in English. In other words, English does not
421
421
mean ASCII.
422
- * es -- Spanish
423
- * fr -- French
424
- * ja -- Japanese
425
- * pt-BR -- Brazilian Portuguese
426
- * ru -- Russian
427
- * zh-CN -- Simplified Chinese.
422
+ * es -- Spanish
423
+ * fr -- French
424
+ * ja -- Japanese
425
+ * pt-BR -- Brazilian Portuguese
426
+ * ru -- Russian
427
+ * zh-CN -- Simplified Chinese.
428
428
:param timeout: The timeout in seconds to use when waiting on the request.
429
- This sets both the connect timeout and the read timeout. The default is
430
- 60.
429
+ This sets both the connect timeout and the read timeout. The default is
430
+ 60.
431
431
:param proxy: The URL of an HTTP proxy to use. It may optionally include
432
- a basic auth username and password, e.g.,
433
- ``http://username:password@host:port``.
432
+ a basic auth username and password, e.g.,
433
+ ``http://username:password@host:port``.
434
434
435
435
436
436
"""
@@ -461,8 +461,8 @@ def city(self, ip_address: IPAddress = "me") -> City:
461
461
"""Call GeoIP2 Precision City endpoint with the specified IP.
462
462
463
463
:param ip_address: IPv4 or IPv6 address as a string. If no
464
- address is provided, the address that the web service is
465
- called from will be used.
464
+ address is provided, the address that the web service is
465
+ called from will be used.
466
466
467
467
:returns: :py:class:`geoip2.models.City` object
468
468
@@ -473,8 +473,8 @@ def country(self, ip_address: IPAddress = "me") -> Country:
473
473
"""Call the GeoIP2 Country endpoint with the specified IP.
474
474
475
475
:param ip_address: IPv4 or IPv6 address as a string. If no address
476
- is provided, the address that the web service is called from will
477
- be used.
476
+ is provided, the address that the web service is called from will
477
+ be used.
478
478
479
479
:returns: :py:class:`geoip2.models.Country` object
480
480
@@ -487,8 +487,8 @@ def insights(self, ip_address: IPAddress = "me") -> Insights:
487
487
"""Call the GeoIP2 Precision: Insights endpoint with the specified IP.
488
488
489
489
:param ip_address: IPv4 or IPv6 address as a string. If no address
490
- is provided, the address that the web service is called from will
491
- be used.
490
+ is provided, the address that the web service is called from will
491
+ be used.
492
492
493
493
:returns: :py:class:`geoip2.models.Insights` object
494
494
0 commit comments