Skip to content

Commit 4fda81a

Browse files
committed
Merge pull request #26 from maxmind/greg/deprecate-anon-proxy
Deprecate is_anonymous_proxy and is_satellite_provider
2 parents 90b205a + 5d066ad commit 4fda81a

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ History
99
* The ``geoip2.records.Location` class has been updated to add attributes for
1010
the ``average_income`` and ``population_density`` fields provided by the
1111
Insights web service.
12+
* The ``is_anonymous_proxy`` and ``is_satellite_provider`` properties on
13+
``geoip2.records.Traits`` have been deprecated. Please use our `GeoIP2
14+
Anonymous IP database
15+
<https://www.maxmind.com/en/geoip2-anonymous-ip-database>`_
16+
to determine whether an IP address is used by an anonymizing service.
17+
1218

1319
2.1.0 (2014-12-09)
1420
++++++++++++++++++

geoip2/database.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ class Reader(object):
2323
Instances of this class provide a reader for the GeoIP2 database format.
2424
IP addresses can be looked up using the ``country`` and ``city`` methods.
2525
26-
Usage
27-
-----
28-
2926
The basic API for this class is the same for every database. First, you
3027
create a reader object, specifying a file name. You then call the method
3128
corresponding to the specific database, passing it the IP address you want

geoip2/records.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,23 @@ class Traits(Record):
500500
501501
:type: bool
502502
503+
.. deprecated:: 2.2.0
504+
Use our our `GeoIP2 Anonymous IP database
505+
<https://www.maxmind.com/en/geoip2-anonymous-ip-database GeoIP2>`_
506+
instead.
507+
503508
.. attribute:: is_satellite_provider
504509
505510
This is true if the IP address is from a satellite provider that
506511
provides service to multiple countries.
507512
508513
:type: bool
509514
515+
.. deprecated:: 2.2.0
516+
Use our our `GeoIP2 Anonymous IP database
517+
<https://www.maxmind.com/en/geoip2-anonymous-ip-database GeoIP2>`_
518+
instead.
519+
510520
.. attribute:: isp
511521
512522
The name of the ISP associated with the IP address. This attribute is

0 commit comments

Comments
 (0)