Skip to content

Commit

Permalink
Sort attrs of Traits and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marselester committed Dec 4, 2023
1 parent 945b6d6 commit 5eead36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
18 changes: 0 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -514,21 +514,3 @@ Please report all issues with this code using the `GitHub issue tracker
If you are having an issue with a MaxMind service that is not specific to the
client API, please contact `MaxMind support
<https://www.maxmind.com/en/support>`_ for assistance.

Testing
-------

Get the repository and its submodule.

.. code-block:: bash
$ git clone https://github.com/maxmind/GeoIP2-python.git
$ cd ./GeoIP2-python/
$ git submodule update --init --recursive
Install and run ``tox``.

.. code-block:: bash
$ pip install tox
$ tox
21 changes: 11 additions & 10 deletions geoip2/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,14 +634,6 @@ class Traits(Record):
:type: str
.. attribute:: is_anycast
This is true if the IP address is anycast.
This attribute is available from the Country, City Plus, Insights
web services and the Country, City, Enterprise databases.
:type: bool
.. attribute:: is_anonymous
This is true if the IP address belongs to any sort of anonymous network.
Expand Down Expand Up @@ -673,6 +665,15 @@ class Traits(Record):
:type: bool
.. attribute:: is_anycast
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.
:type: bool
.. attribute:: is_hosting_provider
This is true if the IP address belongs to a hosting or VPN provider
Expand Down Expand Up @@ -823,18 +824,18 @@ class Traits(Record):
autonomous_system_organization: Optional[str]
connection_type: Optional[str]
domain: Optional[str]
is_anycast: bool
ip_address: Optional[str]
is_anonymous: bool
is_anonymous_proxy: bool
is_anonymous_vpn: bool
is_anycast: bool
is_hosting_provider: bool
is_legitimate_proxy: bool
is_public_proxy: bool
is_residential_proxy: bool
is_satellite_provider: bool
is_tor_exit_node: bool
isp: Optional[str]
ip_address: Optional[str]
mobile_country_code: Optional[str]
mobile_network_code: Optional[str]
organization: Optional[str]
Expand Down

0 comments on commit 5eead36

Please sign in to comment.